5063 lines
664 KiB
MySQL
5063 lines
664 KiB
MySQL
|
|
-- MySQL dump 10.13 Distrib 8.0.34, for Linux (x86_64)
|
|||
|
|
--
|
|||
|
|
-- Host: localhost Database: dagdan_bagisto
|
|||
|
|
-- ------------------------------------------------------
|
|||
|
|
-- Server version 8.0.34-0ubuntu0.22.04.1
|
|||
|
|
|
|||
|
|
/*!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 */;
|
|||
|
|
/*!50503 SET NAMES utf8mb4 */;
|
|||
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|||
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|||
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|||
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|||
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|||
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `addresses`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `addresses`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `addresses` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`address_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL COMMENT 'null if guest checkout',
|
|||
|
|
`cart_id` int unsigned DEFAULT NULL COMMENT 'only for cart_addresses',
|
|||
|
|
`order_id` int unsigned DEFAULT NULL COMMENT 'only for order_addresses',
|
|||
|
|
`first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`gender` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`address1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`address2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`postcode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`city` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`vat_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`default_address` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'only for customer_addresses',
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `addresses_customer_id_foreign` (`customer_id`),
|
|||
|
|
KEY `addresses_cart_id_foreign` (`cart_id`),
|
|||
|
|
KEY `addresses_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `addresses_cart_id_foreign` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `addresses_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `addresses_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `addresses`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `addresses` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `addresses` VALUES (1,'recipient',4,NULL,NULL,'Shohrat','Annamyradow',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65809786',NULL,0,NULL,'2023-06-27 06:56:05','2023-06-27 06:56:05'),(2,'customer',4,NULL,NULL,'Shohrat','Annamyradow',NULL,'','sdf',NULL,'744000','Ashgabat','ASH','TM',NULL,'99363124772','',1,NULL,'2023-06-27 18:07:26','2023-06-27 18:07:26'),(3,'cart_billing',4,2,NULL,'Shohrat','Annamyradow',NULL,NULL,'sdf',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-06-27 18:54:35','2023-06-27 18:54:35'),(4,'cart_shipping',4,2,NULL,'Shohrat','Annamyradow',NULL,NULL,'sdf',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-06-27 18:54:35','2023-06-27 18:54:35'),(5,'order_shipping',4,NULL,1,'Shohrat','Annamyradow',NULL,NULL,'sdf',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(6,'order_billing',4,NULL,1,'Shohrat','Annamyradow',NULL,NULL,'sdf',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(7,'recipient',5,NULL,NULL,'sdfsdf','sdfsdf',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65656565',NULL,0,NULL,'2023-08-23 00:25:56','2023-08-23 00:25:56'),(8,'cart_billing',5,4,NULL,'sdfsdf','sdfsdf',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 17:15:02','2023-08-25 17:15:02'),(9,'cart_shipping',5,4,NULL,'sdfsdf','sdfsdf',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 17:15:02','2023-08-25 17:15:02'),(10,'recipient',6,NULL,NULL,'test','test',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65656564',NULL,0,NULL,'2023-08-25 20:26:44','2023-08-25 20:26:44'),(11,'cart_billing',6,5,NULL,'test','test',NULL,NULL,'asdasdasd',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 21:08:06','2023-08-25 23:08:17'),(12,'cart_shipping',6,5,NULL,'test','test',NULL,NULL,'asdadad',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 21:08:06','2023-08-25 23:08:17'),(13,'order_shipping',6,NULL,2,'test','test',NULL,NULL,'asdadad',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(14,'order_billing',6,NULL,2,'test','test',NULL,NULL,'asdasdasd',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(15,'recipient',9,NULL,NULL,'Aman','Aman',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65021734',NULL,0,NULL,'2023-09-15 18:29:27','2023-09-15 18:29:27'),(16,'customer',9,NULL,NULL,'Aman','Aman',NULL,NULL,'6hbyyb',NULL,NULL,'Ashgabat',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 18:50:40','2023-09-15 18:50:40'),(17,'customer',9,NULL,NULL,'Aman','Aman',NULL,NULL,'6hbyyb',NULL,NULL,'Ashgabat',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 18:50:49','2023-09-15 18:50:49'),(18,'customer',9,NULL,NULL,'Aman','Aman',NULL,NULL,'yrxuxfc7r',NULL,NULL,'Ashgabat',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 18:50:58','2023-09-15 18:50:58'),(19,'customer',9,NULL,NULL,'Aman','Aman',NULL,NULL,'68v8tc8tc',NULL,NULL,'Ashgabat',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 18:51:07','2023-09-15 18:51:07'),(20,'cart_billing',9,6,NULL,'Aman','Aman',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 22:50:48','2023-09-15 22:50:48'),(21,'cart_shipping',9,6,NULL,'Aman','Aman',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 22:50:48','2023-09-15 22:50:48'),(22,'order_shipping',9,NULL,3,'Aman','Aman',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 22:50:57','2023-09-15 22:50:57'),(23,'order_billing',9,NULL,3,'Aman','Aman',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-15 22:50:57','2023-09-15 22:50:57'),(24,'recipient',10,NULL,NULL,'isa','isa',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'61748758',NULL,0,NULL,'2023-09-20 21:16:54','2023-09-20 21:16:54'),(25,'cart_billing',10,7,NULL,'isa','isa',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-20 21:19:54','2023-09-20 21:19:54'),(26,'cart_shipping',10,7,NULL,'isa','isa',NULL,NULL,'',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-20 21:19:54','
|
|||
|
|
/*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `admin_password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `admin_password_resets`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `admin_password_resets` (
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
KEY `admin_password_resets_email_index` (`email`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `admin_password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `admin_password_resets` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `admin_password_resets` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `admin_password_resets` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `admins`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `admins`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `admins` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`api_token` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`role_id` int unsigned NOT NULL,
|
|||
|
|
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `admins_email_unique` (`email`),
|
|||
|
|
UNIQUE KEY `admins_api_token_unique` (`api_token`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `admins`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `admins` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `admins` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `admins` VALUES (1,'Example','admin@example.com','$2y$10$G11CxPKCPZTNhna132t1/uOG5eSzSilti1QmXEFkF5BfILl5RC7Pu','FId1MKaUBjcmkI37WvFx7aGuin45HL9mTnSTwR1HHyI1R27QYgjCcfnV34Rg47wwx3Iamyn9X8ISy9nD',1,1,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `admins` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_families`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_families`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_families` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_user_defined` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_families`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_families` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_families` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_families` VALUES (1,'default','Default',0,1);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_families` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_group_mappings`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_group_mappings`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_group_mappings` (
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
`attribute_group_id` int unsigned NOT NULL,
|
|||
|
|
`position` int DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`attribute_id`,`attribute_group_id`),
|
|||
|
|
KEY `attribute_group_mappings_attribute_group_id_foreign` (`attribute_group_id`),
|
|||
|
|
CONSTRAINT `attribute_group_mappings_attribute_group_id_foreign` FOREIGN KEY (`attribute_group_id`) REFERENCES `attribute_groups` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `attribute_group_mappings_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_group_mappings`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_group_mappings` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_group_mappings` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_group_mappings` VALUES (1,1,1),(2,1,3),(3,1,4),(4,1,5),(5,1,6),(6,1,7),(7,1,8),(8,1,10),(9,2,1),(10,2,2),(11,4,1),(12,4,2),(13,4,3),(14,4,4),(15,4,5),(16,3,1),(17,3,2),(18,3,3),(19,5,1),(20,5,2),(21,5,3),(22,5,4),(26,1,9),(27,1,2);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_group_mappings` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_groups`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_groups` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`position` int NOT NULL,
|
|||
|
|
`is_user_defined` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`attribute_family_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `attribute_groups_attribute_family_id_name_unique` (`attribute_family_id`,`name`),
|
|||
|
|
CONSTRAINT `attribute_groups_attribute_family_id_foreign` FOREIGN KEY (`attribute_family_id`) REFERENCES `attribute_families` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_groups` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_groups` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_groups` VALUES (1,'General',1,0,1),(2,'Description',2,0,1),(3,'Meta Description',3,0,1),(4,'Price',4,0,1),(5,'Shipping',5,0,1);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_groups` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_option_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_option_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_option_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`attribute_option_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `attribute_option_translations_attribute_option_id_locale_unique` (`attribute_option_id`,`locale`),
|
|||
|
|
CONSTRAINT `attribute_option_translations_attribute_option_id_foreign` FOREIGN KEY (`attribute_option_id`) REFERENCES `attribute_options` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_option_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_option_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_option_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_option_translations` VALUES (1,'en','Red',1),(2,'en','Green',2),(3,'en','Yellow',3),(4,'en','Black',4),(5,'en','White',5),(6,'en','S',6),(7,'en','M',7),(8,'en','L',8),(9,'en','XL',9);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_option_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_options`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_options`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_options` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`admin_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
`swatch_value` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `attribute_options_attribute_id_foreign` (`attribute_id`),
|
|||
|
|
CONSTRAINT `attribute_options_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_options`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_options` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_options` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_options` VALUES (1,'Red',1,23,NULL),(2,'Green',2,23,NULL),(3,'Yellow',3,23,NULL),(4,'Black',4,23,NULL),(5,'White',5,23,NULL),(6,'S',1,24,NULL),(7,'M',2,24,NULL),(8,'L',3,24,NULL),(9,'XL',4,24,NULL);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_options` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attribute_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attribute_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attribute_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `attribute_translations_attribute_id_locale_unique` (`attribute_id`,`locale`),
|
|||
|
|
CONSTRAINT `attribute_translations_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attribute_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attribute_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attribute_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attribute_translations` VALUES (1,'en','SKU',1),(2,'en','Name',2),(3,'en','URL Key',3),(4,'en','Tax Category',4),(5,'en','New',5),(6,'en','Featured',6),(7,'en','Visible Individually',7),(8,'en','Status',8),(9,'en','Short Description',9),(10,'en','Description',10),(11,'en','Price',11),(12,'en','Cost',12),(13,'en','Special Price',13),(14,'en','Special Price From',14),(15,'en','Special Price To',15),(16,'en','Meta Description',16),(17,'en','Meta Keywords',17),(18,'en','Meta Description',18),(19,'en','Width',19),(20,'en','Height',20),(21,'en','Depth',21),(22,'en','Weight',22),(23,'en','Color',23),(24,'en','Size',24),(26,'en','Allow Guest Checkout',26),(27,'en','Product Number',27);
|
|||
|
|
/*!40000 ALTER TABLE `attribute_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `attributes`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `attributes` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`admin_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`validation` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`position` int DEFAULT NULL,
|
|||
|
|
`is_required` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_unique` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`value_per_locale` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`value_per_channel` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_filterable` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_configurable` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_user_defined` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`is_visible_on_front` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`swatch_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`use_in_flat` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`is_comparable` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`enable_wysiwyg` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `attributes_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `attributes` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `attributes` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `attributes` VALUES (1,'sku','SKU','text',NULL,1,1,1,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(2,'name','Name','text',NULL,3,1,0,1,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,1,0),(3,'url_key','URL Key','text',NULL,4,1,1,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(4,'tax_category_id','Tax Category','select',NULL,5,0,0,0,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(5,'new','New','boolean',NULL,6,0,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(6,'featured','Featured','boolean',NULL,7,0,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(7,'visible_individually','Visible Individually','boolean',NULL,9,1,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(8,'status','Status','boolean',NULL,10,1,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(9,'short_description','Short Description','textarea',NULL,11,1,0,1,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(10,'description','Description','textarea',NULL,12,1,0,1,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,1,0),(11,'price','Price','price','decimal',13,1,0,0,0,1,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,1,0),(12,'cost','Cost','price','decimal',14,0,0,0,1,0,0,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(13,'special_price','Special Price','price','decimal',15,0,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(14,'special_price_from','Special Price From','date',NULL,16,0,0,0,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(15,'special_price_to','Special Price To','date',NULL,17,0,0,0,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(16,'meta_title','Meta Title','textarea',NULL,18,0,0,1,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(17,'meta_keywords','Meta Keywords','textarea',NULL,20,0,0,1,1,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(18,'meta_description','Meta Description','textarea',NULL,21,0,0,1,1,0,0,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(19,'length','Length','text','decimal',22,0,0,0,0,0,0,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(20,'width','Width','text','decimal',23,0,0,0,0,0,0,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(21,'height','Height','text','decimal',24,0,0,0,0,0,0,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(22,'weight','Weight','text','decimal',25,1,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(23,'color','Color','select',NULL,26,0,0,0,0,1,1,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(24,'size','Size','select',NULL,27,0,0,0,0,1,1,1,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(26,'guest_checkout','Guest Checkout','boolean',NULL,8,1,0,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0),(27,'product_number','Product Number','text',NULL,2,0,1,0,0,0,0,0,0,'2023-06-23 23:58:59','2023-06-23 23:58:59',NULL,1,0,0);
|
|||
|
|
/*!40000 ALTER TABLE `attributes` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_appointment_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_appointment_slots`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_appointment_slots` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`duration` int DEFAULT NULL,
|
|||
|
|
`break_time` int DEFAULT NULL,
|
|||
|
|
`same_slot_all_days` tinyint(1) DEFAULT NULL,
|
|||
|
|
`slots` json DEFAULT NULL,
|
|||
|
|
`booking_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_product_appointment_slots_booking_product_id_foreign` (`booking_product_id`),
|
|||
|
|
CONSTRAINT `booking_product_appointment_slots_booking_product_id_foreign` FOREIGN KEY (`booking_product_id`) REFERENCES `booking_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_appointment_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_appointment_slots` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_appointment_slots` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_appointment_slots` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_default_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_default_slots`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_default_slots` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`booking_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`duration` int DEFAULT NULL,
|
|||
|
|
`break_time` int DEFAULT NULL,
|
|||
|
|
`slots` json DEFAULT NULL,
|
|||
|
|
`booking_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_product_default_slots_booking_product_id_foreign` (`booking_product_id`),
|
|||
|
|
CONSTRAINT `booking_product_default_slots_booking_product_id_foreign` FOREIGN KEY (`booking_product_id`) REFERENCES `booking_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_default_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_default_slots` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_default_slots` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_default_slots` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_event_ticket_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_event_ticket_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_event_ticket_translations` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`booking_product_event_ticket_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `booking_product_event_ticket_translations_locale_unique` (`booking_product_event_ticket_id`,`locale`),
|
|||
|
|
CONSTRAINT `booking_product_event_ticket_translations_locale_foreign` FOREIGN KEY (`booking_product_event_ticket_id`) REFERENCES `booking_product_event_tickets` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_event_ticket_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_event_ticket_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_event_ticket_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_event_ticket_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_event_tickets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_event_tickets`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_event_tickets` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`price` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`qty` int DEFAULT '0',
|
|||
|
|
`special_price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`special_price_from` datetime DEFAULT NULL,
|
|||
|
|
`special_price_to` datetime DEFAULT NULL,
|
|||
|
|
`booking_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_product_event_tickets_booking_product_id_foreign` (`booking_product_id`),
|
|||
|
|
CONSTRAINT `booking_product_event_tickets_booking_product_id_foreign` FOREIGN KEY (`booking_product_id`) REFERENCES `booking_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_event_tickets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_event_tickets` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_event_tickets` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_event_tickets` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_rental_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_rental_slots`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_rental_slots` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`renting_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`daily_price` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`hourly_price` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`same_slot_all_days` tinyint(1) DEFAULT NULL,
|
|||
|
|
`slots` json DEFAULT NULL,
|
|||
|
|
`booking_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_product_rental_slots_booking_product_id_foreign` (`booking_product_id`),
|
|||
|
|
CONSTRAINT `booking_product_rental_slots_booking_product_id_foreign` FOREIGN KEY (`booking_product_id`) REFERENCES `booking_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_rental_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_rental_slots` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_rental_slots` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_rental_slots` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_product_table_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_product_table_slots`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_product_table_slots` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`price_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`guest_limit` int NOT NULL DEFAULT '0',
|
|||
|
|
`duration` int NOT NULL,
|
|||
|
|
`break_time` int NOT NULL,
|
|||
|
|
`prevent_scheduling_before` int NOT NULL,
|
|||
|
|
`same_slot_all_days` tinyint(1) DEFAULT NULL,
|
|||
|
|
`slots` json DEFAULT NULL,
|
|||
|
|
`booking_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_product_table_slots_booking_product_id_foreign` (`booking_product_id`),
|
|||
|
|
CONSTRAINT `booking_product_table_slots_booking_product_id_foreign` FOREIGN KEY (`booking_product_id`) REFERENCES `booking_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_product_table_slots`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_product_table_slots` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_table_slots` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_product_table_slots` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `booking_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `booking_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `booking_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`qty` int DEFAULT '0',
|
|||
|
|
`location` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`show_location` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`available_every_week` tinyint(1) DEFAULT NULL,
|
|||
|
|
`available_from` datetime DEFAULT NULL,
|
|||
|
|
`available_to` datetime DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `booking_products_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `booking_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `booking_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `booking_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `booking_products` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `booking_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `bookings`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `bookings`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `bookings` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int DEFAULT '0',
|
|||
|
|
`from` int DEFAULT NULL,
|
|||
|
|
`to` int DEFAULT NULL,
|
|||
|
|
`order_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`booking_product_event_ticket_id` int unsigned DEFAULT NULL,
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `bookings_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `bookings_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `bookings_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `bookings_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `bookings`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `bookings` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `bookings` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `bookings` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `brands`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `brands` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`position` int NOT NULL DEFAULT '0',
|
|||
|
|
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `brands_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `brands` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `brands` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `brands` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`customer_email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_gift` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`items_count` int DEFAULT NULL,
|
|||
|
|
`items_qty` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`exchange_rate` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`global_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`cart_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`checkout_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_guest` tinyint(1) DEFAULT NULL,
|
|||
|
|
`is_active` tinyint(1) DEFAULT '1',
|
|||
|
|
`conversion_time` datetime DEFAULT NULL,
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`applied_cart_rule_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_customer_id_foreign` (`customer_id`),
|
|||
|
|
KEY `cart_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `cart_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart` VALUES (2,NULL,'Shohrat','Annamyradow','courier_courier',NULL,0,3,3.0000,NULL,'TMT','TMT','TMT','TMT',689.0000,689.0000,689.0000,689.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,4,1,'2023-06-27 08:12:41','2023-06-27 19:05:00',''),(3,NULL,'Shohrat','Annamyradow',NULL,NULL,0,2,2.0000,NULL,'TMT','TMT','TMT','TMT',25.0000,25.0000,25.0000,25.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,4,1,'2023-06-29 14:12:18','2023-06-29 14:12:24',''),(4,NULL,'sdfsdf','sdfsdf','courier_courier',NULL,0,1,4.0000,NULL,'TMT','TMT','TMT','TMT',24.0000,24.0000,24.0000,24.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,5,1,'2023-08-25 17:14:47','2023-08-25 17:15:02',''),(5,NULL,'test','test','courier_courier',NULL,0,8,8.0000,NULL,'TMT','TMT','TMT','TMT',1074.0000,1074.0000,1074.0000,1074.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,6,1,'2023-08-25 20:30:28','2023-08-25 23:08:35',''),(6,NULL,'Aman','Aman','pickup_pickup',NULL,0,1,2.0000,NULL,'TMT','TMT','TMT','TMT',36.0000,36.0000,36.0000,36.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,9,1,'2023-09-15 21:53:59','2023-09-15 22:50:57',''),(7,NULL,'isa','isa','pickup_pickup',NULL,0,2,2.0000,NULL,'TMT','TMT','TMT','TMT',880.0000,880.0000,480.0000,480.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,10,1,'2023-09-20 21:16:56','2023-09-20 21:20:18',''),(8,NULL,'isa','isa','courier_courier',NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',221.0000,221.0000,21.0000,21.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,10,1,'2023-09-20 21:58:25','2023-09-20 21:58:47',''),(9,NULL,'isa','isa','pickup_pickup',NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',510.0000,510.0000,110.0000,110.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,10,1,'2023-09-21 04:35:56','2023-09-23 03:03:02',''),(13,NULL,'isa','isa',NULL,NULL,0,2,2.0000,NULL,'TMT','TMT','TMT','TMT',26.0000,26.0000,26.0000,26.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,11,1,'2023-09-22 15:03:12','2023-09-22 15:03:16',''),(16,NULL,'Aman Tekemuradow','Aman Tekemuradow','pickup_pickup',NULL,0,2,2.0000,NULL,'TMT','TMT','TMT','TMT',414.0000,414.0000,14.0000,14.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,12,1,'2023-09-22 19:45:18','2023-09-25 15:38:07',''),(20,NULL,'test user','test user',NULL,NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',130.0000,130.0000,130.0000,130.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,13,1,'2023-10-03 19:12:32','2023-10-03 19:12:32',''),(21,NULL,'Aman','Aman','courier_courier',NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',208.0000,208.0000,8.0000,8.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,9,1,'2023-10-10 19:12:32','2023-10-10 19:13:16',''),(23,NULL,'isa','isa',NULL,NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',145.0000,145.0000,145.0000,145.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,10,1,'2023-10-17 11:37:33','2023-10-17 11:51:47',''),(24,NULL,'Alina','Alina',NULL,NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',90.0000,90.0000,90.0000,90.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,19,1,'2023-10-21 10:31:52','2023-10-21 10:31:53',''),(25,NULL,'Aman','Aman','courier_courier',NULL,0,1,1.0000,NULL,'TMT','TMT','TMT','TMT',730.0000,730.0000,130.0000,130.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,0,NULL,9,1,'2023-10-22 19:51:01','2023-10-22 19:51:52','');
|
|||
|
|
/*!40000 ALTER TABLE `cart` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_item_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_item_inventories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_item_inventories` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`inventory_source_id` int unsigned DEFAULT NULL,
|
|||
|
|
`cart_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_item_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_item_inventories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_item_inventories` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_item_inventories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`quantity` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`weight` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total_weight` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total_weight` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '1.0000',
|
|||
|
|
`base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`tax_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`cart_id` int unsigned NOT NULL,
|
|||
|
|
`tax_category_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`custom_price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`applied_cart_rule_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_items_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `cart_items_cart_id_foreign` (`cart_id`),
|
|||
|
|
KEY `cart_items_tax_category_id_foreign` (`tax_category_id`),
|
|||
|
|
KEY `cart_items_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `cart_items_cart_id_foreign` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_items_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `cart_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_items_tax_category_id_foreign` FOREIGN KEY (`tax_category_id`) REFERENCES `tax_categories` (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_items` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_items` VALUES (7,1,'prod7','simple','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,0.0000,0.0000,0.0000,300.0000,300.0000,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"8\", \"/api/customer/cart/add/8\": \"\"}',NULL,8,2,NULL,'2023-06-27 17:13:59','2023-06-27 19:05:00',NULL,''),(15,1,'prod7','simple','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,0.0000,0.0000,0.0000,300.0000,300.0000,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"8\", \"/api/customer/cart/add/8\": \"\"}',NULL,8,5,NULL,'2023-08-25 21:28:45','2023-08-25 23:08:34',NULL,''),(23,1,'allergiya12','simple','Зодак капли 20мл',NULL,10.0000,10.0000,10.0000,150.0000,150.0000,150.0000,150.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"94\", \"/api/customer/cart/add/94\": \"\"}',NULL,94,7,NULL,'2023-09-20 21:18:57','2023-09-20 21:20:17',NULL,''),(58,1,'infuziya55','simple','Метронидозол алтимет 100мл',NULL,10.0000,10.0000,10.0000,8.0000,8.0000,8.0000,8.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"102\", \"/api/customer/cart/add/102\": \"\"}',NULL,102,13,NULL,'2023-09-22 15:03:16','2023-09-22 15:03:16',NULL,''),(71,1,'medteh2','simple','Бинт',NULL,10.0000,10.0000,10.0000,6.0000,6.0000,6.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"108\", \"/api/customer/cart/add/108\": \"\"}',NULL,108,16,NULL,'2023-09-22 20:36:08','2023-09-25 15:38:07',NULL,''),(72,1,'infuziya55','simple','Метронидозол алтимет 100мл',NULL,10.0000,10.0000,10.0000,8.0000,8.0000,8.0000,8.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"102\", \"/api/customer/cart/add/102\": \"\"}',NULL,102,16,NULL,'2023-09-22 21:02:29','2023-09-25 15:38:07',NULL,''),(79,1,'akwadetrim7','simple','Аквадетрим ',NULL,20.0000,20.0000,20.0000,110.0000,110.0000,110.0000,110.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"121\", \"/api/customer/cart/add/121\": \"\"}',NULL,121,9,NULL,'2023-09-23 03:01:19','2023-09-23 03:03:01',NULL,''),(83,1,'wita-miski4','simple','Вита Мишки ',NULL,30.0000,30.0000,30.0000,130.0000,130.0000,130.0000,130.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"188\", \"/api/customer/cart/add/188\": \"\"}',NULL,188,20,NULL,'2023-10-03 19:12:32','2023-10-03 19:12:32',NULL,''),(84,1,'infuziya55','simple','Метронидозол алтимет 100мл',NULL,10.0000,10.0000,10.0000,8.0000,8.0000,8.0000,8.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"102\", \"/api/customer/cart/add/102\": \"\"}',NULL,102,21,NULL,'2023-10-10 19:12:32','2023-10-10 19:13:16',NULL,''),(86,1,'kompliwit3','simple','Компливит таблетки ',NULL,10.0000,10.0000,10.0000,145.0000,145.0000,145.0000,145.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"149\", \"/api/customer/cart/add/149\": \"\"}',NULL,149,23,NULL,'2023-10-17 11:37:33','2023-10-17 11:51:47',NULL,''),(88,1,'bepanten16','simple','Бепантен ',NULL,10.0000,10.0000,10.0000,90.0000,90.0000,90.0000,90.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"140\", \"/api/customer/cart/add/140\": \"\"}',NULL,140,24,NULL,'2023-10-21 10:31:52','2023-10-21 10:31:53',NULL,''),(89,1,'wita-miski4','simple','Вита Мишки ',NULL,30.0000,30.0000,30.0000,130.0000,130.0000,130.0000,130.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"188\", \"/api/customer/cart/add/188\": \"\"}',NULL,188,25,NULL,'2023-10-22 19:51:01','2023-10-22 19:51:52',NULL,'');
|
|||
|
|
/*!40000 ALTER TABLE `cart_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_payment`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_payment`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_payment` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`cart_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`order_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_payment_cart_id_foreign` (`cart_id`),
|
|||
|
|
CONSTRAINT `cart_payment_cart_id_foreign` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_payment`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_payment` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_payment` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_payment` VALUES (6,'terminal100',NULL,2,'2023-06-27 19:04:53','2023-06-27 19:04:53',NULL),(7,'cash100',NULL,4,'2023-08-25 17:14:57','2023-08-25 17:14:57',NULL),(10,'cash100',NULL,5,'2023-08-25 23:06:14','2023-08-25 23:06:14',NULL),(11,'cash100',NULL,6,'2023-09-15 22:50:47','2023-09-15 22:50:47',NULL),(13,'cash100',NULL,7,'2023-09-20 21:20:02','2023-09-20 21:20:02',NULL),(14,'cash100',NULL,8,'2023-09-20 21:58:41','2023-09-20 21:58:41',NULL),(15,'cash100',NULL,9,'2023-09-23 03:02:52','2023-09-23 03:02:52',NULL),(16,'cash100',NULL,16,'2023-09-25 15:38:04','2023-09-25 15:38:04',NULL),(22,'cash100',NULL,21,'2023-10-10 19:13:10','2023-10-10 19:13:10',NULL),(23,'terminal100',NULL,25,'2023-10-22 19:51:08','2023-10-22 19:51:08',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `cart_payment` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_channels`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_channels` (
|
|||
|
|
`cart_rule_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`cart_rule_id`,`channel_id`),
|
|||
|
|
KEY `cart_rule_channels_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `cart_rule_channels_cart_rule_id_foreign` FOREIGN KEY (`cart_rule_id`) REFERENCES `cart_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_rule_channels_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_channels` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_channels` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_channels` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_coupon_usage`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_coupon_usage`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_coupon_usage` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`times_used` int NOT NULL DEFAULT '0',
|
|||
|
|
`cart_rule_coupon_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_rule_coupon_usage_cart_rule_coupon_id_foreign` (`cart_rule_coupon_id`),
|
|||
|
|
KEY `cart_rule_coupon_usage_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `cart_rule_coupon_usage_cart_rule_coupon_id_foreign` FOREIGN KEY (`cart_rule_coupon_id`) REFERENCES `cart_rule_coupons` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_rule_coupon_usage_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_coupon_usage`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_coupon_usage` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupon_usage` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupon_usage` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_coupons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_coupons`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_coupons` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`usage_limit` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`usage_per_customer` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`times_used` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`type` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`is_primary` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`expired_at` date DEFAULT NULL,
|
|||
|
|
`cart_rule_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_rule_coupons_cart_rule_id_foreign` (`cart_rule_id`),
|
|||
|
|
CONSTRAINT `cart_rule_coupons_cart_rule_id_foreign` FOREIGN KEY (`cart_rule_id`) REFERENCES `cart_rules` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_coupons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_coupons` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupons` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupons` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_customer_groups`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_customer_groups` (
|
|||
|
|
`cart_rule_id` int unsigned NOT NULL,
|
|||
|
|
`customer_group_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`cart_rule_id`,`customer_group_id`),
|
|||
|
|
KEY `cart_rule_customer_groups_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
CONSTRAINT `cart_rule_customer_groups_cart_rule_id_foreign` FOREIGN KEY (`cart_rule_id`) REFERENCES `cart_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_rule_customer_groups_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_customer_groups` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_customer_groups` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_customer_groups` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_customers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_customers`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_customers` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`times_used` bigint unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`cart_rule_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_rule_customers_cart_rule_id_foreign` (`cart_rule_id`),
|
|||
|
|
KEY `cart_rule_customers_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `cart_rule_customers_cart_rule_id_foreign` FOREIGN KEY (`cart_rule_id`) REFERENCES `cart_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cart_rule_customers_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_customers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_customers` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_customers` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_customers` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rule_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rule_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rule_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`cart_rule_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `cart_rule_translations_cart_rule_id_locale_unique` (`cart_rule_id`,`locale`),
|
|||
|
|
CONSTRAINT `cart_rule_translations_cart_rule_id_foreign` FOREIGN KEY (`cart_rule_id`) REFERENCES `cart_rules` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rule_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_rules`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_rules`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_rules` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`starts_from` datetime DEFAULT NULL,
|
|||
|
|
`ends_till` datetime DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`coupon_type` int NOT NULL DEFAULT '1',
|
|||
|
|
`use_auto_generation` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`usage_per_customer` int NOT NULL DEFAULT '0',
|
|||
|
|
`uses_per_coupon` int NOT NULL DEFAULT '0',
|
|||
|
|
`times_used` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`condition_type` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`conditions` json DEFAULT NULL,
|
|||
|
|
`end_other_rules` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`uses_attribute_conditions` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`action_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`discount_quantity` int NOT NULL DEFAULT '1',
|
|||
|
|
`discount_step` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
|
|||
|
|
`apply_to_shipping` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`free_shipping` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`sort_order` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_rules`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rules` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rules` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rules` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cart_shipping_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cart_shipping_rates`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cart_shipping_rates` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`carrier` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`carrier_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`price` double DEFAULT '0',
|
|||
|
|
`base_price` double DEFAULT '0',
|
|||
|
|
`cart_address_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`is_calculate_tax` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `cart_shipping_rates_cart_address_id_foreign` (`cart_address_id`),
|
|||
|
|
CONSTRAINT `cart_shipping_rates_cart_address_id_foreign` FOREIGN KEY (`cart_address_id`) REFERENCES `addresses` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cart_shipping_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_shipping_rates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_shipping_rates` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_shipping_rates` VALUES (25,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',0,0,4,'2023-06-27 19:04:57','2023-06-27 19:04:57',0.0000,0.0000,0),(26,'courier','Courier','courier_courier','Courier','Courier Shipping',0,0,4,'2023-06-27 19:04:57','2023-06-27 19:05:00',0.0000,0.0000,0),(27,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',30,30,4,'2023-06-27 19:04:57','2023-06-27 19:04:57',0.0000,0.0000,1),(28,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,4,'2023-06-27 19:04:57','2023-06-27 19:04:57',0.0000,0.0000,1),(29,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',0,0,9,'2023-08-25 17:15:02','2023-08-25 17:15:02',0.0000,0.0000,0),(30,'courier','Courier','courier_courier','Courier','Courier Shipping',0,0,9,'2023-08-25 17:15:02','2023-08-25 17:15:02',0.0000,0.0000,0),(31,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',40,40,9,'2023-08-25 17:15:02','2023-08-25 17:15:02',0.0000,0.0000,1),(32,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,9,'2023-08-25 17:15:02','2023-08-25 17:15:02',0.0000,0.0000,1),(45,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',0,0,12,'2023-08-25 23:08:17','2023-08-25 23:08:17',0.0000,0.0000,0),(46,'courier','Courier','courier_courier','Courier','Courier Shipping',0,0,12,'2023-08-25 23:08:17','2023-08-25 23:08:34',0.0000,0.0000,0),(47,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',80,80,12,'2023-08-25 23:08:17','2023-08-25 23:08:17',0.0000,0.0000,1),(48,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,12,'2023-08-25 23:08:17','2023-08-25 23:08:17',0.0000,0.0000,1),(49,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',0,0,21,'2023-09-15 22:50:48','2023-09-15 22:50:57',0.0000,0.0000,0),(50,'courier','Courier','courier_courier','Courier','Courier Shipping',0,0,21,'2023-09-15 22:50:48','2023-09-15 22:50:48',0.0000,0.0000,0),(51,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',20,20,21,'2023-09-15 22:50:48','2023-09-15 22:50:48',0.0000,0.0000,1),(52,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,21,'2023-09-15 22:50:48','2023-09-15 22:50:48',0.0000,0.0000,1),(53,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',400,400,26,'2023-09-20 21:19:54','2023-09-20 21:20:17',0.0000,0.0000,0),(54,'courier','Courier','courier_courier','Courier','Courier Shipping',400,400,26,'2023-09-20 21:19:54','2023-09-20 21:19:54',0.0000,0.0000,0),(55,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',20,20,26,'2023-09-20 21:19:54','2023-09-20 21:19:54',0.0000,0.0000,1),(56,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,26,'2023-09-20 21:19:54','2023-09-20 21:19:54',0.0000,0.0000,1),(57,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',200,200,31,'2023-09-20 21:58:44','2023-09-20 21:58:44',0.0000,0.0000,0),(58,'courier','Courier','courier_courier','Courier','Courier Shipping',200,200,31,'2023-09-20 21:58:44','2023-09-20 21:58:47',0.0000,0.0000,0),(59,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',10,10,31,'2023-09-20 21:58:44','2023-09-20 21:58:44',0.0000,0.0000,1),(60,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,31,'2023-09-20 21:58:44','2023-09-20 21:58:44',0.0000,0.0000,1),(61,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',400,400,38,'2023-09-23 03:02:56','2023-09-23 03:03:01',0.0000,0.0000,0),(62,'courier','Courier','courier_courier','Courier','Courier Shipping',400,400,38,'2023-09-23 03:02:56','2023-09-23 03:02:56',0.0000,0.0000,0),(63,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',10,10,38,'2023-09-23 03:02:56','2023-09-23 03:02:56',0.0000,0.0000,1),(64,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,38,'2023-09-23 03:02:56','2023-09-23 03:02:56',0.0000,0.0000,1),(65,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',400,400,42,'20
|
|||
|
|
/*!40000 ALTER TABLE `cart_shipping_rates` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `catalog_rule_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `catalog_rule_channels`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `catalog_rule_channels` (
|
|||
|
|
`catalog_rule_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`catalog_rule_id`,`channel_id`),
|
|||
|
|
KEY `catalog_rule_channels_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `catalog_rule_channels_catalog_rule_id_foreign` FOREIGN KEY (`catalog_rule_id`) REFERENCES `catalog_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_channels_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `catalog_rule_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `catalog_rule_channels` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_channels` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_channels` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `catalog_rule_customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `catalog_rule_customer_groups`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `catalog_rule_customer_groups` (
|
|||
|
|
`catalog_rule_id` int unsigned NOT NULL,
|
|||
|
|
`customer_group_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`catalog_rule_id`,`customer_group_id`),
|
|||
|
|
KEY `catalog_rule_customer_groups_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
CONSTRAINT `catalog_rule_customer_groups_catalog_rule_id_foreign` FOREIGN KEY (`catalog_rule_id`) REFERENCES `catalog_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_customer_groups_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `catalog_rule_customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `catalog_rule_customer_groups` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_customer_groups` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_customer_groups` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `catalog_rule_product_prices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `catalog_rule_product_prices`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `catalog_rule_product_prices` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`rule_date` date NOT NULL,
|
|||
|
|
`starts_from` datetime DEFAULT NULL,
|
|||
|
|
`ends_till` datetime DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`customer_group_id` int unsigned NOT NULL,
|
|||
|
|
`catalog_rule_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `catalog_rule_product_prices_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `catalog_rule_product_prices_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
KEY `catalog_rule_product_prices_catalog_rule_id_foreign` (`catalog_rule_id`),
|
|||
|
|
KEY `catalog_rule_product_prices_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `catalog_rule_product_prices_catalog_rule_id_foreign` FOREIGN KEY (`catalog_rule_id`) REFERENCES `catalog_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_product_prices_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_product_prices_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_product_prices_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `catalog_rule_product_prices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `catalog_rule_product_prices` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_product_prices` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_product_prices` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `catalog_rule_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `catalog_rule_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `catalog_rule_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`starts_from` datetime DEFAULT NULL,
|
|||
|
|
`ends_till` datetime DEFAULT NULL,
|
|||
|
|
`end_other_rules` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`action_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sort_order` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`customer_group_id` int unsigned NOT NULL,
|
|||
|
|
`catalog_rule_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `catalog_rule_products_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `catalog_rule_products_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
KEY `catalog_rule_products_catalog_rule_id_foreign` (`catalog_rule_id`),
|
|||
|
|
KEY `catalog_rule_products_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `catalog_rule_products_catalog_rule_id_foreign` FOREIGN KEY (`catalog_rule_id`) REFERENCES `catalog_rules` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_products_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_products_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `catalog_rule_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `catalog_rule_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `catalog_rule_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_products` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rule_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `catalog_rules`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `catalog_rules`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `catalog_rules` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`starts_from` date DEFAULT NULL,
|
|||
|
|
`ends_till` date DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`condition_type` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`conditions` json DEFAULT NULL,
|
|||
|
|
`end_other_rules` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`action_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sort_order` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `catalog_rules`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `catalog_rules` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rules` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `catalog_rules` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `categories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `categories` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`position` int NOT NULL DEFAULT '0',
|
|||
|
|
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`_lft` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`_rgt` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`display_mode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'products_and_description',
|
|||
|
|
`category_icon_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `categories__lft__rgt_parent_id_index` (`_lft`,`_rgt`,`parent_id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `categories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `categories` VALUES (1,1,NULL,1,1,32,NULL,'2023-06-23 23:58:58','2023-06-23 23:58:58','products_and_description',NULL,NULL),(2,1,'category/2/MLohCPSogXudidsOKQvoxCQTH5XlEHrYcQXB8FAo.png',1,14,15,1,'2023-06-27 02:05:20','2023-10-03 14:44:32','products_and_description','velocity/category_icon_path/2/v2ZsrgtLU16xj7gGb4xyjZJG9uLC5tHNQzRt5Xxw.svg',NULL),(3,2,'category/3/Q9ttjMjpfQIEKTm5cklLSIq9Y6nb2E5A262JeWWK.png',1,16,17,1,'2023-06-27 02:22:49','2023-09-21 15:03:57','products_and_description','velocity/category_icon_path/3/1PkZGnu6d6Tr6hFrAumjOAHV7OhnojrIjGE8Efe9.svg',NULL),(4,3,'category/4/UpMz7niQ2sbrXLKJGVxSTu5ucnikZkVRuAmF0Aeg.png',1,18,19,1,'2023-06-27 02:38:23','2023-09-21 15:12:59','products_and_description','velocity/category_icon_path/4/zGXTKDQW7Q3ZzFmLpzAtgKipuXcPgX3kv8gnjIA5.svg',NULL),(6,5,'category/6/PEBx0WCGhnp2ZKwmVP3Ib2zpPUJDyujKEm88cPyD.png',1,22,23,1,'2023-09-15 01:55:42','2023-10-03 13:11:53','products_and_description','velocity/category_icon_path/6/JbqlJEiJW08qiDUgNE2EQbJ0MI9lS8kZBbJk3Jg0.svg',NULL),(7,6,'category/7/vqreY73noIHxMhT1RIwelZJeC9npmqmJFRE9nGUM.png',1,24,25,1,'2023-09-15 01:56:15','2023-10-03 14:43:51','products_and_description','velocity/category_icon_path/7/Cexrk7bXE7JibBY8d9B2g0vzZatTLMtaOLapQ8ux.svg',NULL),(8,7,'category/8/EldYdUNT1jEUpeNknEGjU9rionoHOIuyk9EeUYvy.png',1,26,27,1,'2023-09-15 01:56:39','2023-10-03 13:16:16','products_and_description','velocity/category_icon_path/8/g2MlJsm99WeWNFQ27aehSCTRruma478KNfipTMjB.svg',NULL),(9,9,'category/9/5SMt1Il0exhQ5CpWjOAoR1l9g1tK2EgWlrVpYr66.png',1,28,29,1,'2023-09-15 01:57:19','2023-10-03 13:12:50','products_and_description','velocity/category_icon_path/9/KTJubm0LIz1EN2N4RHTgxpi0GakFWKXJs1AJZgjW.svg',NULL),(10,10,'category/10/j4cdbswyjm005hVLTWPSPwZirwG1UwhwwyltgWW8.png',1,30,31,1,'2023-09-15 01:58:07','2023-10-03 14:43:14','products_and_description','velocity/category_icon_path/10/KQ00Af5yauALEieFIHy32vj1aFtW2QvFQx0euZ8d.svg',NULL),(11,11,'category/11/TBd9zyoz4nVpfWywZ6cNuTnwF7B4JEBjp9T8633f.png',1,20,21,1,'2023-09-15 01:58:30','2023-10-03 14:45:06','products_and_description','velocity/category_icon_path/11/hU4dlebhgm6EC7IRSdHu2Imm4X8abjlA81wmML3q.svg',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
|||
|
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
|||
|
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
|||
|
|
/*!50003 SET character_set_client = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET character_set_results = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
|
|||
|
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
|||
|
|
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
|||
|
|
DELIMITER ;;
|
|||
|
|
/*!50003 CREATE*/ /*!50017 DEFINER=`shohrat`@`localhost`*/ /*!50003 TRIGGER `trig_categories_insert` AFTER INSERT ON `categories` FOR EACH ROW BEGIN
|
|||
|
|
DECLARE urlPath VARCHAR(255);
|
|||
|
|
DECLARE localeCode VARCHAR(255);
|
|||
|
|
DECLARE done INT;
|
|||
|
|
DECLARE curs CURSOR FOR (SELECT category_translations.locale
|
|||
|
|
FROM category_translations
|
|||
|
|
WHERE category_id = NEW.id);
|
|||
|
|
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;
|
|||
|
|
|
|||
|
|
|
|||
|
|
IF EXISTS (
|
|||
|
|
SELECT *
|
|||
|
|
FROM category_translations
|
|||
|
|
WHERE category_id = NEW.id
|
|||
|
|
)
|
|||
|
|
THEN
|
|||
|
|
|
|||
|
|
OPEN curs;
|
|||
|
|
|
|||
|
|
SET done = 0;
|
|||
|
|
REPEAT
|
|||
|
|
FETCH curs INTO localeCode;
|
|||
|
|
|
|||
|
|
SELECT get_url_path_of_category(NEW.id, localeCode) INTO urlPath;
|
|||
|
|
|
|||
|
|
IF NEW.parent_id IS NULL
|
|||
|
|
THEN
|
|||
|
|
SET urlPath = '';
|
|||
|
|
END IF;
|
|||
|
|
|
|||
|
|
UPDATE category_translations
|
|||
|
|
SET url_path = urlPath
|
|||
|
|
WHERE
|
|||
|
|
category_translations.category_id = NEW.id
|
|||
|
|
AND category_translations.locale = localeCode;
|
|||
|
|
|
|||
|
|
UNTIL done END REPEAT;
|
|||
|
|
|
|||
|
|
CLOSE curs;
|
|||
|
|
|
|||
|
|
END IF;
|
|||
|
|
END */;;
|
|||
|
|
DELIMITER ;
|
|||
|
|
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
|||
|
|
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
|||
|
|
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
|||
|
|
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
|||
|
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
|||
|
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
|||
|
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
|||
|
|
/*!50003 SET character_set_client = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET character_set_results = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
|
|||
|
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
|||
|
|
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
|||
|
|
DELIMITER ;;
|
|||
|
|
/*!50003 CREATE*/ /*!50017 DEFINER=`shohrat`@`localhost`*/ /*!50003 TRIGGER `trig_categories_update` AFTER UPDATE ON `categories` FOR EACH ROW BEGIN
|
|||
|
|
DECLARE urlPath VARCHAR(255);
|
|||
|
|
DECLARE localeCode VARCHAR(255);
|
|||
|
|
DECLARE done INT;
|
|||
|
|
DECLARE curs CURSOR FOR (SELECT category_translations.locale
|
|||
|
|
FROM category_translations
|
|||
|
|
WHERE category_id = NEW.id);
|
|||
|
|
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;
|
|||
|
|
|
|||
|
|
|
|||
|
|
IF EXISTS (
|
|||
|
|
SELECT *
|
|||
|
|
FROM category_translations
|
|||
|
|
WHERE category_id = NEW.id
|
|||
|
|
)
|
|||
|
|
THEN
|
|||
|
|
|
|||
|
|
OPEN curs;
|
|||
|
|
|
|||
|
|
SET done = 0;
|
|||
|
|
REPEAT
|
|||
|
|
FETCH curs INTO localeCode;
|
|||
|
|
|
|||
|
|
SELECT get_url_path_of_category(NEW.id, localeCode) INTO urlPath;
|
|||
|
|
|
|||
|
|
IF NEW.parent_id IS NULL
|
|||
|
|
THEN
|
|||
|
|
SET urlPath = '';
|
|||
|
|
END IF;
|
|||
|
|
|
|||
|
|
UPDATE category_translations
|
|||
|
|
SET url_path = urlPath
|
|||
|
|
WHERE
|
|||
|
|
category_translations.category_id = NEW.id
|
|||
|
|
AND category_translations.locale = localeCode;
|
|||
|
|
|
|||
|
|
UNTIL done END REPEAT;
|
|||
|
|
|
|||
|
|
CLOSE curs;
|
|||
|
|
|
|||
|
|
END IF;
|
|||
|
|
END */;;
|
|||
|
|
DELIMITER ;
|
|||
|
|
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
|||
|
|
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
|||
|
|
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
|||
|
|
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `category_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `category_brands`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `category_brands` (
|
|||
|
|
`category_id` int unsigned NOT NULL,
|
|||
|
|
`brand_id` int unsigned NOT NULL,
|
|||
|
|
KEY `category_brands_category_id_foreign` (`category_id`),
|
|||
|
|
KEY `category_brands_brand_id_foreign` (`brand_id`),
|
|||
|
|
CONSTRAINT `category_brands_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `category_brands_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `category_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `category_brands` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `category_brands` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `category_brands` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `category_filterable_attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `category_filterable_attributes`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `category_filterable_attributes` (
|
|||
|
|
`category_id` int unsigned NOT NULL,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
KEY `category_filterable_attributes_category_id_foreign` (`category_id`),
|
|||
|
|
KEY `category_filterable_attributes_attribute_id_foreign` (`attribute_id`),
|
|||
|
|
CONSTRAINT `category_filterable_attributes_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `category_filterable_attributes_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `category_filterable_attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `category_filterable_attributes` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `category_filterable_attributes` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `category_filterable_attributes` VALUES (2,11),(3,11),(4,11),(2,23),(6,11),(7,11),(8,11),(9,11),(10,11),(11,11);
|
|||
|
|
/*!40000 ALTER TABLE `category_filterable_attributes` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `category_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `category_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `category_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`slug` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`category_id` int unsigned NOT NULL,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`locale_id` int unsigned DEFAULT NULL,
|
|||
|
|
`url_path` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'maintained by database triggers',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `category_translations_category_id_slug_locale_unique` (`category_id`,`slug`,`locale`),
|
|||
|
|
KEY `category_translations_locale_id_foreign` (`locale_id`),
|
|||
|
|
CONSTRAINT `category_translations_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `category_translations_locale_id_foreign` FOREIGN KEY (`locale_id`) REFERENCES `locales` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `category_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `category_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `category_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `category_translations` VALUES (1,'Root','root','Root','','','',1,'en',NULL,''),(2,'Raíz','root','Raíz','','','',1,'es',NULL,''),(3,'Racine','root','Racine','','','',1,'fr',NULL,''),(4,'Hoofdcategorie','root','Hoofdcategorie','','','',1,'nl',NULL,''),(5,'Kök','root','Kök','','','',1,'tr',NULL,''),(6,'Kömelejiklere garşy serişdeler','goz','<p><a class=\"\r\n flex-shrink-0\r\n lg:bg-transparent lg:px-0 lg:py-0 lg:rounded-none lg:shadow-none\r\n bg-white\r\n px-3.5\r\n py-0.5\r\n rounded-full\r\n shadow-sm\r\n nuxt-link-exact-active text-gray-600 font-semibold cursor-default text-black\" style=\"box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgba(229, 231, 235, var(--tw-border-opacity)); --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-border-opacity: 1; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-blur: var(--tw-empty, ); --tw-brightness: var(--tw-empty, ); --tw-contrast: var(--tw-empty, ); --tw-grayscale: var(--tw-empty, ); --tw-hue-rotate: var(--tw-empty, ); --tw-invert: var(--tw-empty, ); --tw-saturate: var(--tw-empty, ); --tw-sepia: var(--tw-empty, ); --tw-drop-shadow: var(--tw-empty, ); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-backdrop-blur: var(--tw-empty, ); --tw-backdrop-brightness: var(--tw-empty, ); --tw-backdrop-contrast: var(--tw-empty, ); --tw-backdrop-grayscale: var(--tw-empty, ); --tw-backdrop-hue-rotate: var(--tw-empty, ); --tw-backdrop-invert: var(--tw-empty, ); --tw-backdrop-opacity: var(--tw-empty, ); --tw-backdrop-saturate: var(--tw-empty, ); --tw-backdrop-sepia: var(--tw-empty, ); --tw-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); line-height: 1.35; text-decoration: inherit; background-color: #f3f4f6; font-family: Montserrat, Arial, sans-serif; white-space: nowrap; --tw-shadow: 0 0 #0000 !important; flex-shrink: 0 !important; cursor: default !important; border-radius: 0px !important; --tw-bg-opacity: 1 !important; padding: 0rem !important; font-weight: 600 !important; --tw-text-opacity: 1 !important; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\" href=\"https://store.ynamdar.com/tm/ag/category/335\" aria-current=\"page\">Kömelejiklere garşy serişdeler</a></p>',NULL,NULL,NULL,2,'tm',2,'goz'),(7,'Göz','goz','<p><a class=\"\r\n flex-shrink-0\r\n lg:bg-transparent lg:px-0 lg:py-0 lg:rounded-none lg:shadow-none\r\n bg-white\r\n px-3.5\r\n py-0.5\r\n rounded-full\r\n shadow-sm\r\n nuxt-link-exact-active text-gray-600 font-semibold cursor-default text-black\" style=\"box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgba(229, 231, 235, var(--tw-border-opacity)); --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-border-opacity: 1; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-blur:
|
|||
|
|
/*!40000 ALTER TABLE `category_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
|||
|
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
|||
|
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
|||
|
|
/*!50003 SET character_set_client = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET character_set_results = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
|
|||
|
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
|||
|
|
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
|||
|
|
DELIMITER ;;
|
|||
|
|
/*!50003 CREATE*/ /*!50017 DEFINER=`shohrat`@`localhost`*/ /*!50003 TRIGGER `trig_category_translations_insert` BEFORE INSERT ON `category_translations` FOR EACH ROW BEGIN
|
|||
|
|
DECLARE parentUrlPath varchar(255);
|
|||
|
|
DECLARE urlPath varchar(255);
|
|||
|
|
|
|||
|
|
IF NOT EXISTS (
|
|||
|
|
SELECT id
|
|||
|
|
FROM categories
|
|||
|
|
WHERE
|
|||
|
|
id = NEW.category_id
|
|||
|
|
AND parent_id IS NULL
|
|||
|
|
)
|
|||
|
|
THEN
|
|||
|
|
|
|||
|
|
SELECT
|
|||
|
|
GROUP_CONCAT(parent_translations.slug SEPARATOR '/') INTO parentUrlPath
|
|||
|
|
FROM
|
|||
|
|
categories AS node,
|
|||
|
|
categories AS parent
|
|||
|
|
JOIN category_translations AS parent_translations ON parent.id = parent_translations.category_id
|
|||
|
|
WHERE
|
|||
|
|
node._lft >= parent._lft
|
|||
|
|
AND node._rgt <= parent._rgt
|
|||
|
|
AND node.id = (SELECT parent_id FROM categories WHERE id = NEW.category_id)
|
|||
|
|
AND node.parent_id IS NOT NULL
|
|||
|
|
AND parent.parent_id IS NOT NULL
|
|||
|
|
AND parent_translations.locale = NEW.locale
|
|||
|
|
GROUP BY
|
|||
|
|
node.id;
|
|||
|
|
|
|||
|
|
IF parentUrlPath IS NULL
|
|||
|
|
THEN
|
|||
|
|
SET urlPath = NEW.slug;
|
|||
|
|
ELSE
|
|||
|
|
SET urlPath = concat(parentUrlPath, '/', NEW.slug);
|
|||
|
|
END IF;
|
|||
|
|
|
|||
|
|
SET NEW.url_path = urlPath;
|
|||
|
|
|
|||
|
|
END IF;
|
|||
|
|
END */;;
|
|||
|
|
DELIMITER ;
|
|||
|
|
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
|||
|
|
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
|||
|
|
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
|||
|
|
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
|||
|
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
|||
|
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
|||
|
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
|||
|
|
/*!50003 SET character_set_client = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET character_set_results = utf8mb4 */ ;
|
|||
|
|
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
|
|||
|
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
|||
|
|
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
|||
|
|
DELIMITER ;;
|
|||
|
|
/*!50003 CREATE*/ /*!50017 DEFINER=`shohrat`@`localhost`*/ /*!50003 TRIGGER `trig_category_translations_update` BEFORE UPDATE ON `category_translations` FOR EACH ROW BEGIN
|
|||
|
|
DECLARE parentUrlPath varchar(255);
|
|||
|
|
DECLARE urlPath varchar(255);
|
|||
|
|
|
|||
|
|
IF NOT EXISTS (
|
|||
|
|
SELECT id
|
|||
|
|
FROM categories
|
|||
|
|
WHERE
|
|||
|
|
id = NEW.category_id
|
|||
|
|
AND parent_id IS NULL
|
|||
|
|
)
|
|||
|
|
THEN
|
|||
|
|
|
|||
|
|
SELECT
|
|||
|
|
GROUP_CONCAT(parent_translations.slug SEPARATOR '/') INTO parentUrlPath
|
|||
|
|
FROM
|
|||
|
|
categories AS node,
|
|||
|
|
categories AS parent
|
|||
|
|
JOIN category_translations AS parent_translations ON parent.id = parent_translations.category_id
|
|||
|
|
WHERE
|
|||
|
|
node._lft >= parent._lft
|
|||
|
|
AND node._rgt <= parent._rgt
|
|||
|
|
AND node.id = (SELECT parent_id FROM categories WHERE id = NEW.category_id)
|
|||
|
|
AND node.parent_id IS NOT NULL
|
|||
|
|
AND parent.parent_id IS NOT NULL
|
|||
|
|
AND parent_translations.locale = NEW.locale
|
|||
|
|
GROUP BY
|
|||
|
|
node.id;
|
|||
|
|
|
|||
|
|
IF parentUrlPath IS NULL
|
|||
|
|
THEN
|
|||
|
|
SET urlPath = NEW.slug;
|
|||
|
|
ELSE
|
|||
|
|
SET urlPath = concat(parentUrlPath, '/', NEW.slug);
|
|||
|
|
END IF;
|
|||
|
|
|
|||
|
|
SET NEW.url_path = urlPath;
|
|||
|
|
|
|||
|
|
END IF;
|
|||
|
|
END */;;
|
|||
|
|
DELIMITER ;
|
|||
|
|
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
|||
|
|
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
|||
|
|
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
|||
|
|
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `channel_currencies`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `channel_currencies`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `channel_currencies` (
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`currency_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`channel_id`,`currency_id`),
|
|||
|
|
KEY `channel_currencies_currency_id_foreign` (`currency_id`),
|
|||
|
|
CONSTRAINT `channel_currencies_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `channel_currencies_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `channel_currencies`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `channel_currencies` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `channel_currencies` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `channel_currencies` VALUES (1,1),(2,1),(3,1),(1,2),(2,2),(3,2);
|
|||
|
|
/*!40000 ALTER TABLE `channel_currencies` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `channel_inventory_sources`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `channel_inventory_sources`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `channel_inventory_sources` (
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`inventory_source_id` int unsigned NOT NULL,
|
|||
|
|
UNIQUE KEY `channel_inventory_sources_channel_id_inventory_source_id_unique` (`channel_id`,`inventory_source_id`),
|
|||
|
|
KEY `channel_inventory_sources_inventory_source_id_foreign` (`inventory_source_id`),
|
|||
|
|
CONSTRAINT `channel_inventory_sources_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `channel_inventory_sources_inventory_source_id_foreign` FOREIGN KEY (`inventory_source_id`) REFERENCES `inventory_sources` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `channel_inventory_sources`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `channel_inventory_sources` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `channel_inventory_sources` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `channel_inventory_sources` VALUES (1,1),(2,1),(3,1);
|
|||
|
|
/*!40000 ALTER TABLE `channel_inventory_sources` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `channel_locales`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `channel_locales`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `channel_locales` (
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`locale_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`channel_id`,`locale_id`),
|
|||
|
|
KEY `channel_locales_locale_id_foreign` (`locale_id`),
|
|||
|
|
CONSTRAINT `channel_locales_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `channel_locales_locale_id_foreign` FOREIGN KEY (`locale_id`) REFERENCES `locales` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `channel_locales`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `channel_locales` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `channel_locales` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `channel_locales` VALUES (1,2),(1,3);
|
|||
|
|
/*!40000 ALTER TABLE `channel_locales` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `channel_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `channel_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `channel_translations` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`home_page_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`footer_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`maintenance_mode_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`home_seo` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `channel_translations_channel_id_locale_unique` (`channel_id`,`locale`),
|
|||
|
|
KEY `channel_translations_locale_index` (`locale`),
|
|||
|
|
CONSTRAINT `channel_translations_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `channel_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `channel_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `channel_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `channel_translations` VALUES (1,1,'tr','Derman',NULL,'\n <p>@include(\"shop::home.slider\") @include(\"shop::home.featured-products\") @include(\"shop::home.new-products\")</p>\n <div class=\"banner-container\">\n <div class=\"left-banner\">\n <img src=http://216.250.11.229/derman/app/themes/default/assets/images/1.webp data-src=http://216.250.11.229/derman/app/themes/default/assets/images/1.webp class=\"lazyload\" alt=\"test\" width=\"720\" height=\"720\" />\n </div>\n <div class=\"right-banner\">\n <img src=http://216.250.11.229/derman/app/themes/default/assets/images/2.webp data-src=http://216.250.11.229/derman/app/themes/default/assets/images/2.webp class=\"lazyload\" alt=\"test\" width=\"460\" height=\"330\" />\n <img src=http://216.250.11.229/derman/app/themes/default/assets/images/3.webp data-src=http://216.250.11.229/derman/app/themes/default/assets/images/3.webp class=\"lazyload\" alt=\"test\" width=\"460\" height=\"330\" />\n </div>\n </div>\n ','\n <div class=\"list-container\">\n <span class=\"list-heading\">Quick Links</span>\n <ul class=\"list-group\">\n <li><a href=\"@php echo route(\'shop.cms.page\', \'about-us\') @endphp\">About Us</a></li>\n <li><a href=\"@php echo route(\'shop.cms.page\', \'return-policy\') @endphp\">Return Policy</a></li>\n <li><a href=\"@php echo route(\'shop.cms.page\', \'refund-policy\') @endphp\">Refund Policy</a></li>\n <li><a href=\"@php echo route(\'shop.cms.page\', \'terms-conditions\') @endphp\">Terms and conditions</a></li>\n <li><a href=\"@php echo route(\'shop.cms.page\', \'terms-of-use\') @endphp\">Terms of Use</a></li><li><a href=\"@php echo route(\'shop.cms.page\', \'contact-us\') @endphp\">Contact Us</a></li>\n </ul>\n </div>\n <div class=\"list-container\">\n <span class=\"list-heading\">Connect With Us</span>\n <ul class=\"list-group\">\n <li><a href=\"#\"><span class=\"icon icon-facebook\"></span>Facebook </a></li>\n <li><a href=\"#\"><span class=\"icon icon-twitter\"></span> Twitter </a></li>\n <li><a href=\"#\"><span class=\"icon icon-instagram\"></span> Instagram </a></li>\n <li><a href=\"#\"> <span class=\"icon icon-google-plus\"></span>Google+ </a></li>\n <li><a href=\"#\"> <span class=\"icon icon-linkedin\"></span>LinkedIn </a></li>\n </ul>\n </div>\n ',NULL,'{\"meta_title\": \"Derman store\", \"meta_keywords\": \"Derman store meta keyword\", \"meta_description\": \"Derman store meta description\"}',NULL,NULL),(4,1,'tm','Derman','','<p>@include(\"shop::home.slider\") @include(\"shop::home.featured-products\") @include(\"shop::home.new-products\")</p>\r\n<div class=\"banner-container\">\r\n<div class=\"left-banner\"><img src=\"http://216.250.11.229/derman/app/themes/default/assets/images/1.webp\" data-src=\"http://216.250.11.229/derman/app/themes/default/assets/images/1.webp\" class=\"lazyload\" alt=\"test\" width=\"720\" height=\"720\" /></div>\r\n<div class=\"right-banner\"><img src=\"http://216.250.11.229/derman/app/themes/default/assets/images/2.webp\" data-src=\"http://216.250.11.229/derman/app/themes/default/assets/images/2.webp\" class=\"lazyload\" alt=\"test\" width=\"460\" height=\"330\" /> <img src=\"http://216.250.11.229/derman/app/themes/default/assets/images/3.webp\" data-src=\"http://216.250.11.229/derman/app/themes/default/assets/images/3.webp\" class=\"lazyload\" al
|
|||
|
|
/*!40000 ALTER TABLE `channel_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `channels`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `channels` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`timezone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`theme` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`hostname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`favicon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_maintenance_on` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`allowed_ips` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`default_locale_id` int unsigned NOT NULL,
|
|||
|
|
`base_currency_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`root_category_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `channels_default_locale_id_foreign` (`default_locale_id`),
|
|||
|
|
KEY `channels_base_currency_id_foreign` (`base_currency_id`),
|
|||
|
|
KEY `channels_root_category_id_foreign` (`root_category_id`),
|
|||
|
|
CONSTRAINT `channels_base_currency_id_foreign` FOREIGN KEY (`base_currency_id`) REFERENCES `currencies` (`id`),
|
|||
|
|
CONSTRAINT `channels_default_locale_id_foreign` FOREIGN KEY (`default_locale_id`) REFERENCES `locales` (`id`),
|
|||
|
|
CONSTRAINT `channels_root_category_id_foreign` FOREIGN KEY (`root_category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `channels` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `channels` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `channels` VALUES (1,'Derman',NULL,'velocity','https://derman.com.tm/dermanhana/webq',NULL,NULL,0,'',3,2,NULL,'2023-09-14 23:05:38',1);
|
|||
|
|
/*!40000 ALTER TABLE `channels` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cms_page_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cms_page_channels`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cms_page_channels` (
|
|||
|
|
`cms_page_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
UNIQUE KEY `cms_page_channels_cms_page_id_channel_id_unique` (`cms_page_id`,`channel_id`),
|
|||
|
|
KEY `cms_page_channels_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `cms_page_channels_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `cms_page_channels_cms_page_id_foreign` FOREIGN KEY (`cms_page_id`) REFERENCES `cms_pages` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cms_page_channels`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cms_page_channels` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cms_page_channels` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `cms_page_channels` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cms_page_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cms_page_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cms_page_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`page_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`url_key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`html_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`cms_page_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `cms_page_translations_cms_page_id_url_key_locale_unique` (`cms_page_id`,`url_key`,`locale`),
|
|||
|
|
CONSTRAINT `cms_page_translations_cms_page_id_foreign` FOREIGN KEY (`cms_page_id`) REFERENCES `cms_pages` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cms_page_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cms_page_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cms_page_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cms_page_translations` VALUES (1,'About Us','about-us','<div class=\"static-container\"><div class=\"mb-5\">About us page content</div></div>','about us','','aboutus','en',1),(2,'Return Policy','return-policy','<div class=\"static-container\"><div class=\"mb-5\">Return policy page content</div></div>','return policy','','return, policy','en',2),(3,'Refund Policy','refund-policy','<div class=\"static-container\"><div class=\"mb-5\">Refund policy page content</div></div>','Refund policy','','refund, policy','en',3),(4,'Terms & Conditions','terms-conditions','<div class=\"static-container\"><div class=\"mb-5\">Terms & conditions page content</div></div>','Terms & Conditions','','term, conditions','en',4),(5,'Terms of use','terms-of-use','<div class=\"static-container\"><div class=\"mb-5\">Terms of use page content</div></div>','Terms of use','','term, use','en',5),(6,'Contact Us','contact-us','<div class=\"static-container\"><div class=\"mb-5\">Contact us page content</div></div>','Contact Us','','contact, us','en',6),(7,'Customer Service','cutomer-service','<div class=\"static-container\"><div class=\"mb-5\">Customer service page content</div></div>','Customer Service','','customer, service','en',7),(8,'What\'s New','whats-new','<div class=\"static-container\"><div class=\"mb-5\">What\'s New page content</div></div>','What\'s New','','new','en',8),(9,'Payment Policy','payment-policy','<div class=\"static-container\"><div class=\"mb-5\">Payment Policy page content</div></div>','Payment Policy','','payment, policy','en',9),(10,'Shipping Policy','shipping-policy','<div class=\"static-container\"><div class=\"mb-5\">Shipping Policy page content</div></div>','Shipping Policy','','shipping, policy','en',10),(11,'Privacy Policy','privacy-policy','<div class=\"static-container\"><div class=\"mb-5\">Privacy Policy page content</div></div>','Privacy Policy','','privacy, policy','en',11);
|
|||
|
|
/*!40000 ALTER TABLE `cms_page_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `cms_pages`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `cms_pages`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `cms_pages` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`layout` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `cms_pages`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cms_pages` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cms_pages` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cms_pages` VALUES (1,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(2,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(3,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(4,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(5,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(6,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(7,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(8,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(9,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(10,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(11,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59');
|
|||
|
|
/*!40000 ALTER TABLE `cms_pages` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `core_config`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `core_config`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `core_config` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`channel_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`locale_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `core_config_channel_id_foreign` (`channel_code`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `core_config`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `core_config` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `core_config` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `core_config` VALUES (1,'catalog.products.guest-checkout.allow-guest-checkout','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(2,'emails.general.notifications.emails.general.notifications.verification','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(3,'emails.general.notifications.emails.general.notifications.registration','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(4,'emails.general.notifications.emails.general.notifications.customer','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(5,'emails.general.notifications.emails.general.notifications.new-order','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(6,'emails.general.notifications.emails.general.notifications.new-admin','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(7,'emails.general.notifications.emails.general.notifications.new-invoice','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(8,'emails.general.notifications.emails.general.notifications.new-refund','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(9,'emails.general.notifications.emails.general.notifications.new-shipment','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(10,'emails.general.notifications.emails.general.notifications.new-inventory-source','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(11,'emails.general.notifications.emails.general.notifications.cancel-order','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(12,'catalog.products.homepage.out_of_stock_items','1',NULL,NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(13,'customer.settings.social_login.enable_facebook','1','default',NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(14,'customer.settings.social_login.enable_twitter','1','default',NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(15,'customer.settings.social_login.enable_google','1','default',NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(16,'customer.settings.social_login.enable_linkedin','1','default',NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(17,'customer.settings.social_login.enable_github','1','default',NULL,'2023-06-23 23:58:59','2023-06-23 23:58:59'),(18,'marketplace.settings.general.status','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(19,'marketplace.settings.general.featured','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-27 01:53:01'),(20,'marketplace.settings.general.new','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-27 01:53:01'),(21,'marketplace.settings.general.commission_per_unit','0','Derman',NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(22,'marketplace.settings.general.seller_approval_required','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(23,'marketplace.settings.general.product_approval_required','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(24,'marketplace.settings.general.can_create_invoice','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(25,'marketplace.settings.general.can_create_shipment','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(26,'marketplace.settings.general.can_cancel_order','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(27,'marketplace.settings.landing_page.page_title','','Derman','tr','2023-06-24 00:05:01','2023-06-24 00:05:01'),(28,'marketplace.settings.landing_page.show_banner','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(29,'marketplace.settings.landing_page.layout','layout1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(30,'marketplace.settings.landing_page.banner_content','','Derman','tr','2023-06-24 00:05:01','2023-06-24 00:05:01'),(31,'marketplace.settings.landing_page.show_features','1',NULL,NULL,'2023-06-24 00:05:01','2023-06-24 00:05:01'),(32,'marketplace.settings.landing_page.feature_heading','','Derman','tr','2023-06-24 00:05:01','2023-06-24 00:05:01'),(33,'marketplace.settings.landing_page.feature_info','','Derman','tr','2023-06-24 00:05:01','2023-06-24 00:05:01'),(34,'marketplace.settings.landing_page.feature_icon_label_1','','Derman','tr','2023-06-24 00:05:01','2023-06-24
|
|||
|
|
/*!40000 ALTER TABLE `core_config` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `countries`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `countries`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `countries` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=256 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `countries`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `countries` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `countries` VALUES (1,'TM','Turkmenistan');
|
|||
|
|
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `country_state_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `country_state_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `country_state_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`default_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`country_state_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `country_state_translations_country_state_id_foreign` (`country_state_id`),
|
|||
|
|
CONSTRAINT `country_state_translations_country_state_id_foreign` FOREIGN KEY (`country_state_id`) REFERENCES `country_states` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2303 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `country_state_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `country_state_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `country_state_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `country_state_translations` VALUES (1,'ar','ألاباما',1),(2,'ar','ألاسكا',2),(3,'ar','ساموا الأمريكية',3),(4,'ar','أريزونا',4),(5,'ar','أركنساس',5),(6,'ar','القوات المسلحة أفريقيا',6),(7,'ar','القوات المسلحة الأمريكية',7),(8,'ar','القوات المسلحة الكندية',8),(9,'ar','القوات المسلحة أوروبا',9),(10,'ar','القوات المسلحة الشرق الأوسط',10),(11,'ar','القوات المسلحة في المحيط الهادئ',11),(12,'ar','كاليفورنيا',12),(13,'ar','كولورادو',13),(14,'ar','كونيتيكت',14),(15,'ar','ديلاوير',15),(16,'ar','مقاطعة كولومبيا',16),(17,'ar','ولايات ميكرونيزيا الموحدة',17),(18,'ar','فلوريدا',18),(19,'ar','جورجيا',19),(20,'ar','غوام',20),(21,'ar','هاواي',21),(22,'ar','ايداهو',22),(23,'ar','إلينوي',23),(24,'ar','إنديانا',24),(25,'ar','أيوا',25),(26,'ar','كانساس',26),(27,'ar','كنتاكي',27),(28,'ar','لويزيانا',28),(29,'ar','مين',29),(30,'ar','جزر مارشال',30),(31,'ar','ماريلاند',31),(32,'ar','ماساتشوستس',32),(33,'ar','ميشيغان',33),(34,'ar','مينيسوتا',34),(35,'ar','ميسيسيبي',35),(36,'ar','ميسوري',36),(37,'ar','مونتانا',37),(38,'ar','نبراسكا',38),(39,'ar','نيفادا',39),(40,'ar','نيو هامبشاير',40),(41,'ar','نيو جيرسي',41),(42,'ar','المكسيك جديدة',42),(43,'ar','نيويورك',43),(44,'ar','شمال كارولينا',44),(45,'ar','شمال داكوتا',45),(46,'ar','جزر مريانا الشمالية',46),(47,'ar','أوهايو',47),(48,'ar','أوكلاهوما',48),(49,'ar','ولاية أوريغون',49),(50,'ar','بالاو',50),(51,'ar','بنسلفانيا',51),(52,'ar','بورتوريكو',52),(53,'ar','جزيرة رود',53),(54,'ar','كارولينا الجنوبية',54),(55,'ar','جنوب داكوتا',55),(56,'ar','تينيسي',56),(57,'ar','تكساس',57),(58,'ar','يوتا',58),(59,'ar','فيرمونت',59),(60,'ar','جزر فيرجن',60),(61,'ar','فرجينيا',61),(62,'ar','واشنطن',62),(63,'ar','فرجينيا الغربية',63),(64,'ar','ولاية ويسكونسن',64),(65,'ar','وايومنغ',65),(66,'ar','ألبرتا',66),(67,'ar','كولومبيا البريطانية',67),(68,'ar','مانيتوبا',68),(69,'ar','نيوفاوندلاند ولابرادور',69),(70,'ar','برونزيك جديد',70),(71,'ar','مقاطعة نفوفا سكوشيا',71),(72,'ar','الاقاليم الشمالية الغربية',72),(73,'ar','نونافوت',73),(74,'ar','أونتاريو',74),(75,'ar','جزيرة الأمير ادوارد',75),(76,'ar','كيبيك',76),(77,'ar','ساسكاتشوان',77),(78,'ar','إقليم يوكون',78),(79,'ar','Niedersachsen',79),(80,'ar','بادن فورتمبيرغ',80),(81,'ar','بايرن ميونيخ',81),(82,'ar','برلين',82),(83,'ar','براندنبورغ',83),(84,'ar','بريمن',84),(85,'ar','هامبورغ',85),(86,'ar','هيسن',86),(87,'ar','مكلنبورغ-فوربومرن',87),(88,'ar','نوردراين فيستفالن',88),(89,'ar','راينلاند-بفالز',89),(90,'ar','سارلاند',90),(91,'ar','ساكسن',91),(92,'ar','سكسونيا أنهالت',92),(93,'ar','شليسفيغ هولشتاين',93),(94,'ar','تورنغن',94),(95,'ar','فيينا',95),(96,'ar','النمسا السفلى',96),(97,'ar','النمسا العليا',97),(98,'ar','سالزبورغ',98),(99,'ar','Каринтия',99),(100,'ar','STEIERMARK',100),(101,'ar','تيرول',101),(102,'ar','بورغنلاند',102),(103,'ar','فورارلبرغ',103),(104,'ar','أرجاو',104),(105,'ar','Appenzell Innerrhoden',105),(106,'ar','أبنزل أوسيرهودن',106),(107,'ar','برن',107),(108,'ar','كانتون ريف بازل',108),(109,'ar','بازل شتات',109),(110,'ar','فرايبورغ',110),(111,'ar','Genf',111),(112,'ar','جلاروس',112),(113,'ar','غراوبوند<EFBFBD>
|
|||
|
|
/*!40000 ALTER TABLE `country_state_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `country_states`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `country_states`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `country_states` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`country_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`default_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `country_states_country_id_foreign` (`country_id`),
|
|||
|
|
CONSTRAINT `country_states_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=587 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `country_states`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `country_states` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `country_states` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `country_states` VALUES (1,'TM','ASH','Aşkabat',1),(2,'TM','AH','Ahal',1),(3,'TM','BN','Balkan',1),(4,'TM','DZ','Daşoguz',1),(5,'TM','LB','Lebap',1),(6,'TM','MR','Mari',1);
|
|||
|
|
/*!40000 ALTER TABLE `country_states` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `country_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `country_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `country_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`country_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `country_translations_country_id_foreign` (`country_id`),
|
|||
|
|
CONSTRAINT `country_translations_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1023 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `country_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `country_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `country_translations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `country_translations` VALUES (1,'ar','أفغانستان',1),(2,'ar','جزر آلاند',2),(3,'ar','ألبانيا',3),(4,'ar','الجزائر',4),(5,'ar','ساموا الأمريكية',5),(6,'ar','أندورا',6),(7,'ar','أنغولا',7),(8,'ar','أنغيلا',8),(9,'ar','القارة القطبية الجنوبية',9),(10,'ar','أنتيغوا وبربودا',10),(11,'ar','الأرجنتين',11),(12,'ar','أرمينيا',12),(13,'ar','أروبا',13),(14,'ar','جزيرة الصعود',14),(15,'ar','أستراليا',15),(16,'ar','النمسا',16),(17,'ar','أذربيجان',17),(18,'ar','الباهاما',18),(19,'ar','البحرين',19),(20,'ar','بنغلاديش',20),(21,'ar','بربادوس',21),(22,'ar','روسيا البيضاء',22),(23,'ar','بلجيكا',23),(24,'ar','بليز',24),(25,'ar','بنين',25),(26,'ar','برمودا',26),(27,'ar','بوتان',27),(28,'ar','بوليفيا',28),(29,'ar','البوسنة والهرسك',29),(30,'ar','بوتسوانا',30),(31,'ar','البرازيل',31),(32,'ar','إقليم المحيط البريطاني الهندي',32),(33,'ar','جزر فيرجن البريطانية',33),(34,'ar','بروناي',34),(35,'ar','بلغاريا',35),(36,'ar','بوركينا فاسو',36),(37,'ar','بوروندي',37),(38,'ar','كمبوديا',38),(39,'ar','الكاميرون',39),(40,'ar','كندا',40),(41,'ar','جزر الكناري',41),(42,'ar','الرأس الأخضر',42),(43,'ar','الكاريبي هولندا',43),(44,'ar','جزر كايمان',44),(45,'ar','جمهورية افريقيا الوسطى',45),(46,'ar','سبتة ومليلية',46),(47,'ar','تشاد',47),(48,'ar','تشيلي',48),(49,'ar','الصين',49),(50,'ar','جزيرة الكريسماس',50),(51,'ar','جزر كوكوس (كيلينغ)',51),(52,'ar','كولومبيا',52),(53,'ar','جزر القمر',53),(54,'ar','الكونغو - برازافيل',54),(55,'ar','الكونغو - كينشاسا',55),(56,'ar','جزر كوك',56),(57,'ar','كوستاريكا',57),(58,'ar','ساحل العاج',58),(59,'ar','كرواتيا',59),(60,'ar','كوبا',60),(61,'ar','كوراساو',61),(62,'ar','قبرص',62),(63,'ar','التشيك',63),(64,'ar','الدنمارك',64),(65,'ar','دييغو غارسيا',65),(66,'ar','جيبوتي',66),(67,'ar','دومينيكا',67),(68,'ar','جمهورية الدومنيكان',68),(69,'ar','الإكوادور',69),(70,'ar','مصر',70),(71,'ar','السلفادور',71),(72,'ar','غينيا الإستوائية',72),(73,'ar','إريتريا',73),(74,'ar','استونيا',74),(75,'ar','أثيوبيا',75),(76,'ar','منطقة اليورو',76),(77,'ar','جزر فوكلاند',77),(78,'ar','جزر فاروس',78),(79,'ar','فيجي',79),(80,'ar','فنلندا',80),(81,'ar','فرنسا',81),(82,'ar','غيانا الفرنسية',82),(83,'ar','بولينيزيا الفرنسية',83),(84,'ar','المناطق الجنوبية لفرنسا',84),(85,'ar','الغابون',85),(86,'ar','غامبيا',86),(87,'ar','جورجيا',87),(88,'ar','ألمانيا',88),(89,'ar','غانا',89),(90,'ar','جبل طارق',90),(91,'ar','اليونان',91),(92,'ar','الأرض الخضراء',92),(93,'ar','غرينادا',93),(94,'ar','جوادلوب',94),(95,'ar','غوام',95),(96,'ar','غواتيمالا',96),(97,'ar','غيرنسي',97),(98,'ar','غينيا',98),(99,'ar','غينيا بيساو',99),(100,'ar','غيانا',100),(101,'ar','هايتي',101),(102,'ar','هندوراس',102),(103,'ar','هونج كونج SAR الصين',103),(104,'ar','هنغاريا',104),(105,'ar','أيسلندا',105),(106,'ar','الهند',106),(107,'ar','إندونيسيا',107),(108,'ar','إيران',108),(109,'ar','العراق',109),(110,'ar','أيرلندا',110),(111,'ar','جزيرة آيل أوف مان',111),(112,'ar','إسرائيل',112),(113,'ar','إيطاليا',113),(114,'ar','جامايكا',114),(115,'ar','اليابان',115),(116,'ar','جيرسي',116),(117,'ar','الأردن',117),(118,'ar','كازاخستان',118),(119,'ar','كينيا',119),(120,'ar','كيريباس',120),(121,'ar',
|
|||
|
|
/*!40000 ALTER TABLE `country_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `currencies`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `currencies`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `currencies` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `currencies`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `currencies` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `currencies` VALUES (1,'USD','Dollor',NULL,NULL,'$'),(2,'TMT','Manat',NULL,NULL,'TMT');
|
|||
|
|
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `currency_exchange_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `currency_exchange_rates`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `currency_exchange_rates` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`rate` decimal(24,12) NOT NULL,
|
|||
|
|
`target_currency` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `currency_exchange_rates_target_currency_unique` (`target_currency`),
|
|||
|
|
CONSTRAINT `currency_exchange_rates_target_currency_foreign` FOREIGN KEY (`target_currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `currency_exchange_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `currency_exchange_rates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `currency_exchange_rates` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `currency_exchange_rates` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `customer_groups`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `customer_groups` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_user_defined` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `customer_groups_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `customer_groups`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `customer_groups` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `customer_groups` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `customer_groups` VALUES (1,'Guest',0,NULL,NULL,'guest'),(2,'General',0,NULL,NULL,'general'),(3,'Wholesale',0,NULL,NULL,'wholesale');
|
|||
|
|
/*!40000 ALTER TABLE `customer_groups` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `customer_password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `customer_password_resets`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `customer_password_resets` (
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
KEY `customer_password_resets_email_index` (`email`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `customer_password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `customer_password_resets` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `customer_password_resets` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `customer_password_resets` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `customer_social_accounts`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `customer_social_accounts`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `customer_social_accounts` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`provider_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`provider_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `customer_social_accounts_provider_id_unique` (`provider_id`),
|
|||
|
|
KEY `customer_social_accounts_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `customer_social_accounts_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `customer_social_accounts`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `customer_social_accounts` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `customer_social_accounts` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `customer_social_accounts` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `customers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `customers`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `customers` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`gender` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`date_of_birth` date DEFAULT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint NOT NULL DEFAULT '1',
|
|||
|
|
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`api_token` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_group_id` int unsigned DEFAULT NULL,
|
|||
|
|
`subscribed_to_news_letter` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`is_verified` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`is_suspended` tinyint unsigned NOT NULL DEFAULT '0',
|
|||
|
|
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `customers_email_unique` (`email`),
|
|||
|
|
UNIQUE KEY `customers_api_token_unique` (`api_token`),
|
|||
|
|
KEY `customers_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
CONSTRAINT `customers_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `customers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `customers` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `customers` VALUES (1,'altyn ','dag','Erkek','0000-00-00','altyndag@gmail.com',NULL,1,'$2y$10$HepdUPTXDv.D88E3b2zI.uZ56khPq2ntueNvFpW2aa.JBF./adpNu','AphqFHjAEeH2LlY9jZetZLE5GN4VLZZUurymQ60of83ueSDUPSsV4CwBdvk5fO33kjd6B6vnMyVC3FSd',2,0,NULL,'2023-06-27 01:42:44','2023-09-15 11:03:57',1,0,'ccc525fb74a9973e931101eae0626694',NULL,''),(2,'boybodran','boybodran',NULL,NULL,'boybodran@gmail.com',NULL,1,'$2y$10$dkusx5YdWtEwowIHZFg77uhZT0.wfroNaAfb3I9x7CBKRfZfaHXoi','BmJg2nZDzhtLql18Ikit61owcHFKgynPeNqXko6aYqOpCGWGomDjaJdu91fIZWWOPr86OomNyPbQ2yck',2,0,NULL,'2023-06-27 02:31:13','2023-09-15 11:03:57',1,0,'4190b5bfefc19cf7561bb8b72c08599c',NULL,NULL),(3,'melhemli','melhemli',NULL,NULL,'melhemli@gmail.com',NULL,1,'$2y$10$rDfN6qECK0Bt28FSXc3uv.FUn1ai6Zum0iSWusI9dAzdSgLaoLLo2','uIUidcQ0CM4is7O4gobr66wyAJXIzibbuZyiII2uYfUbCP6OOMc1ePO7EtchM45i0uy454UBptX7tONW',2,0,NULL,'2023-06-27 02:46:17','2023-06-27 02:46:17',1,0,'d72758d40ec825ae49b9293d733a86e5',NULL,NULL),(4,'Shohrat','Annamyradow',NULL,NULL,NULL,NULL,1,'$2y$10$9z1Om1jJk8YDwq4mqeqBmerw3tJaUAqm3TBN0oPQ6velC73XB69Ua',NULL,2,0,NULL,'2023-06-27 06:56:05','2023-06-27 06:56:05',1,0,NULL,NULL,'65809786'),(5,'sdfsdf','sdfsdf','',NULL,NULL,NULL,1,'$2y$10$v1RrcENyelAp8.twtp7VEO3TuP6aWKX1bnhEg6x6VQOPNfCl6eU6m',NULL,2,0,NULL,'2023-08-23 00:25:56','2023-08-23 00:25:56',1,0,NULL,NULL,'65656565'),(6,'test','test','',NULL,NULL,NULL,1,'$2y$10$RKxA1t71cZQDhyGGTb6B1eQoYxOi0NweOiSFmFtYD04uCfAAmlqGK',NULL,2,0,NULL,'2023-08-25 20:26:44','2023-08-25 20:26:44',1,0,NULL,NULL,'65656564'),(7,'Dertdeş','Dertdeş','Женский','2007-04-12','dertdes@gmail.com',NULL,1,'$2y$10$UR9ubFVFC/JoDpEo/QZYp.gXnMdCXfALxNwCDjbij00pxGbGD4ZS2',NULL,2,0,NULL,'2023-09-15 01:52:19','2023-09-15 11:03:57',1,0,NULL,NULL,''),(8,'Mähirli ýol','Mähirli ýol','Женский','2000-11-11','mahirliyol@gmail.com',NULL,1,'$2y$10$WUyowQMkto.jN3MuMOXLgO/oC6eLnxSv5hPnfSZkqnPl9HWehO1uy',NULL,NULL,0,NULL,'2023-09-15 02:08:33','2023-09-15 11:03:57',1,0,NULL,NULL,'+99364515815'),(9,'Aman','Aman','',NULL,NULL,NULL,1,'$2y$10$XA2vvkyr91fFcQM7IGMmTOL6XgSYj.RHKNwB3aitrh8cIZvB0zCNC',NULL,2,0,NULL,'2023-09-15 18:29:27','2023-09-15 18:29:27',1,0,NULL,NULL,'65021734'),(10,'isa','isa','',NULL,NULL,NULL,1,'$2y$10$99337JdLFVfIjC/0Br5IuuFvrJQC1cpTAVlgeQ7BIs/3Dg.JDDjS2',NULL,2,0,NULL,'2023-09-20 21:16:53','2023-09-20 21:16:53',1,0,NULL,NULL,'61748758'),(11,'isa','isa','',NULL,NULL,NULL,1,'$2y$10$lWNSSJsbtBjh7pnmXD6.x.EbSoyYTuS1GywBTraCaCoeeeNslQ2jK',NULL,2,0,NULL,'2023-09-22 15:03:08','2023-09-22 15:03:08',1,0,NULL,NULL,'64213234'),(12,'Aman Tekemuradow','Aman Tekemuradow','',NULL,NULL,NULL,1,'$2y$10$thRJZRso7K/BI7ud3EytY.MGhJbmCao1wgnSRnJT7Au8of1pU7Doy',NULL,2,0,NULL,'2023-09-22 17:31:14','2023-09-22 17:31:14',1,0,NULL,NULL,'61746699'),(13,'test user','test user','',NULL,NULL,NULL,1,'$2y$10$2HcogBSu48GS6MW1tFu3BeOvvJkqdJauXffkMzJ7iTmCDwp92lOoG',NULL,2,0,NULL,'2023-10-03 19:11:57','2023-10-03 19:11:57',1,0,NULL,NULL,'61111112'),(14,'hezret kakayew','hezret kakayew','',NULL,NULL,NULL,1,'$2y$10$VrXcoKHQLRXe7psq.ENIX.Z/L35Ao8ZngzXk70.Tl2RarFDg72ulW',NULL,2,0,NULL,'2023-10-07 21:36:31','2023-10-07 21:36:31',1,0,NULL,NULL,'64703603'),(15,'paltasow hydyr','paltasow hydyr','',NULL,NULL,NULL,1,'$2y$10$8dvi4/HRUUQQO1xDmk/B1.64.tWyYO.BPfEENcKxXQhcL2LYzb/8e',NULL,2,0,NULL,'2023-10-08 18:15:09','2023-10-08 18:15:09',1,0,NULL,NULL,'64465674'),(16,'NEPES','NEPES','',NULL,NULL,NULL,1,'$2y$10$ybwnfQmZ46vGlwGELZglEeKmMioBW4JNQA5hy6xHGmTHJ30unMMxe',NULL,2,0,NULL,'2023-10-10 18:39:12','2023-10-10 18:39:12',1,0,NULL,NULL,'65258397'),(17,'Samwel','Samwel','',NULL,NULL,NULL,1,'$2y$10$SgcHii3nXsILjZYc1m9rWOa2LtuTxSWcDkEz1gy9o8akT7GdLZbZW',NULL,2,0,NULL,'2023-10-13 15:22:51','2023-10-13 15:22:51',1,0,NULL,NULL,'61698795'),(18,'HYDYROW HEZETIALY','HYDYROW HEZETIALY','',NULL,NULL,NULL,1,'$2y$10$ca6USK61daeuFyNv6oYq0.vhmpNA1Rk/oHFbCnR74EDxieiVyoVbm',NULL,2,0,NULL,'2023-10-16 22:02:48','2023-10-16 22:02:48',1,0,NULL,NULL,'61831166'),(19,'Alina','Alina','',NULL,NULL,NULL,1,'$2y$10$XDEr0A4ZYp6xU0h0g0QxIuOxsbScpM1hYS6.Tfdthtf.ODefGDh3O',NULL,2,0,NULL,'2023-10-21 10:31
|
|||
|
|
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `downloadable_link_purchased`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `downloadable_link_purchased`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `downloadable_link_purchased` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`product_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`download_bought` int NOT NULL DEFAULT '0',
|
|||
|
|
`download_used` int NOT NULL DEFAULT '0',
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
`order_id` int unsigned NOT NULL,
|
|||
|
|
`order_item_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`download_canceled` int NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `downloadable_link_purchased_customer_id_foreign` (`customer_id`),
|
|||
|
|
KEY `downloadable_link_purchased_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `downloadable_link_purchased_order_item_id_foreign` (`order_item_id`),
|
|||
|
|
CONSTRAINT `downloadable_link_purchased_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `downloadable_link_purchased_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `downloadable_link_purchased_order_item_id_foreign` FOREIGN KEY (`order_item_id`) REFERENCES `order_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `downloadable_link_purchased`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `downloadable_link_purchased` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `downloadable_link_purchased` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `downloadable_link_purchased` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `failed_jobs`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `failed_jobs`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `failed_jobs` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `failed_jobs`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `failed_jobs` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `inventory_sources`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `inventory_sources`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `inventory_sources` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`contact_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_fax` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`city` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`street` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`postcode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`priority` int NOT NULL DEFAULT '0',
|
|||
|
|
`latitude` decimal(10,5) DEFAULT NULL,
|
|||
|
|
`longitude` decimal(10,5) DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `inventory_sources_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `inventory_sources`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `inventory_sources` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `inventory_sources` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `inventory_sources` VALUES (1,'default','Default',NULL,'Detroit Warehouse','warehouse@example.com','1234567899',NULL,'US','MI','Detroit','12th Street','48127',0,NULL,NULL,1,NULL,NULL);
|
|||
|
|
/*!40000 ALTER TABLE `inventory_sources` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `invoice_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `invoice_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `invoice_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`qty` int DEFAULT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`invoice_id` int unsigned DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `invoice_items_invoice_id_foreign` (`invoice_id`),
|
|||
|
|
KEY `invoice_items_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `invoice_items_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `invoice_items_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `invoice_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `invoice_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `invoice_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `invoice_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `invoice_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `invoices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `invoices`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `invoices` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`increment_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`order_address_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`transaction_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`reminders` int NOT NULL DEFAULT '0',
|
|||
|
|
`next_reminder_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `invoices_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `invoices_order_address_id_foreign` (`order_address_id`),
|
|||
|
|
CONSTRAINT `invoices_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `invoices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `invoices` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `invoices` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `invoices` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `jobs`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `jobs`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `jobs` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`queue` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`attempts` tinyint unsigned NOT NULL,
|
|||
|
|
`reserved_at` int unsigned DEFAULT NULL,
|
|||
|
|
`available_at` int unsigned NOT NULL,
|
|||
|
|
`created_at` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `jobs_queue_index` (`queue`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `jobs`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `jobs` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `locales`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `locales`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `locales` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`direction` enum('ltr','rtl') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ltr',
|
|||
|
|
`locale_image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `locales_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `locales`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `locales` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `locales` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `locales` VALUES (2,'tm','Türkmençe',NULL,NULL,'ltr',NULL),(3,'ru','Russian',NULL,NULL,'ltr',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `locales` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketing_campaigns`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketing_campaigns`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketing_campaigns` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`subject` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`mail_to` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`spooling` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_id` int unsigned DEFAULT NULL,
|
|||
|
|
`customer_group_id` int unsigned DEFAULT NULL,
|
|||
|
|
`marketing_template_id` int unsigned DEFAULT NULL,
|
|||
|
|
`marketing_event_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketing_campaigns_channel_id_foreign` (`channel_id`),
|
|||
|
|
KEY `marketing_campaigns_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
KEY `marketing_campaigns_marketing_template_id_foreign` (`marketing_template_id`),
|
|||
|
|
KEY `marketing_campaigns_marketing_event_id_foreign` (`marketing_event_id`),
|
|||
|
|
CONSTRAINT `marketing_campaigns_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `marketing_campaigns_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `marketing_campaigns_marketing_event_id_foreign` FOREIGN KEY (`marketing_event_id`) REFERENCES `marketing_events` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `marketing_campaigns_marketing_template_id_foreign` FOREIGN KEY (`marketing_template_id`) REFERENCES `marketing_templates` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketing_campaigns`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketing_campaigns` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketing_campaigns` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketing_campaigns` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketing_events`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketing_events`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketing_events` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`date` date DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketing_events`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketing_events` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketing_events` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `marketing_events` VALUES (1,'Birthday','Birthday',NULL,NULL,NULL);
|
|||
|
|
/*!40000 ALTER TABLE `marketing_events` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketing_templates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketing_templates`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketing_templates` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketing_templates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketing_templates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketing_templates` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketing_templates` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_invoice_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_invoice_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_invoice_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`marketplace_invoice_id` int unsigned NOT NULL,
|
|||
|
|
`invoice_item_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_invoice_items_marketplace_invoice_id_foreign` (`marketplace_invoice_id`),
|
|||
|
|
KEY `marketplace_invoice_items_invoice_item_id_foreign` (`invoice_item_id`),
|
|||
|
|
CONSTRAINT `marketplace_invoice_items_invoice_item_id_foreign` FOREIGN KEY (`invoice_item_id`) REFERENCES `invoice_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_invoice_items_marketplace_invoice_id_foreign` FOREIGN KEY (`marketplace_invoice_id`) REFERENCES `marketplace_invoices` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_invoice_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_invoice_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_invoice_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_invoice_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_invoices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_invoices`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_invoices` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`invoice_id` int unsigned NOT NULL,
|
|||
|
|
`marketplace_order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_invoices_invoice_id_foreign` (`invoice_id`),
|
|||
|
|
KEY `marketplace_invoices_marketplace_order_id_foreign` (`marketplace_order_id`),
|
|||
|
|
CONSTRAINT `marketplace_invoices_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_invoices_marketplace_order_id_foreign` FOREIGN KEY (`marketplace_order_id`) REFERENCES `marketplace_orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_invoices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_invoices` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_invoices` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_invoices` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_order_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_order_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_order_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`commission` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_commission` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`commission_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_commission_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`seller_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_seller_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`seller_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_seller_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`order_item_id` int unsigned NOT NULL,
|
|||
|
|
`marketplace_product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`marketplace_order_id` int unsigned NOT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_order_items_order_item_id_foreign` (`order_item_id`),
|
|||
|
|
KEY `marketplace_order_items_marketplace_product_id_foreign` (`marketplace_product_id`),
|
|||
|
|
KEY `marketplace_order_items_marketplace_order_id_foreign` (`marketplace_order_id`),
|
|||
|
|
KEY `marketplace_order_items_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `marketplace_order_items_marketplace_order_id_foreign` FOREIGN KEY (`marketplace_order_id`) REFERENCES `marketplace_orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_order_items_marketplace_product_id_foreign` FOREIGN KEY (`marketplace_product_id`) REFERENCES `marketplace_products` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `marketplace_order_items_order_item_id_foreign` FOREIGN KEY (`order_item_id`) REFERENCES `order_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_order_items_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `marketplace_order_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_order_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_order_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_order_items` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `marketplace_order_items` VALUES (1,0.0000,0.0000,0.0000,0.0000,44.0000,44.0000,0.0000,0.0000,1,NULL,1,NULL),(2,0.0000,0.0000,0.0000,0.0000,345.0000,345.0000,0.0000,0.0000,2,NULL,1,NULL),(3,0.0000,0.0000,0.0000,0.0000,300.0000,300.0000,0.0000,0.0000,3,8,2,NULL),(4,0.0000,0.0000,0.0000,0.0000,109.0000,109.0000,0.0000,0.0000,4,NULL,3,NULL),(5,0.0000,0.0000,0.0000,0.0000,13.0000,13.0000,0.0000,0.0000,5,NULL,3,NULL),(6,0.0000,0.0000,0.0000,0.0000,345.0000,345.0000,0.0000,0.0000,6,NULL,4,NULL),(7,0.0000,0.0000,0.0000,0.0000,12.0000,12.0000,0.0000,0.0000,7,NULL,4,NULL),(8,0.0000,0.0000,0.0000,0.0000,300.0000,300.0000,0.0000,0.0000,8,8,5,NULL),(9,0.0000,0.0000,0.0000,0.0000,109.0000,109.0000,0.0000,0.0000,9,NULL,5,NULL),(10,0.0000,0.0000,0.0000,0.0000,44.0000,44.0000,0.0000,0.0000,10,NULL,4,NULL),(11,0.0000,0.0000,0.0000,0.0000,142.0000,142.0000,0.0000,0.0000,11,NULL,5,NULL),(12,0.0000,0.0000,0.0000,0.0000,36.0000,36.0000,0.0000,0.0000,12,NULL,6,NULL),(13,0.0000,0.0000,0.0000,0.0000,330.0000,330.0000,0.0000,0.0000,13,NULL,7,NULL),(14,0.0000,0.0000,0.0000,0.0000,150.0000,150.0000,0.0000,0.0000,14,93,8,NULL),(15,0.0000,0.0000,0.0000,0.0000,21.0000,21.0000,0.0000,0.0000,15,NULL,9,NULL),(16,0.0000,0.0000,0.0000,0.0000,110.0000,110.0000,0.0000,0.0000,16,120,10,NULL),(17,0.0000,0.0000,0.0000,0.0000,6.0000,6.0000,0.0000,0.0000,17,107,11,NULL),(18,0.0000,0.0000,0.0000,0.0000,8.0000,8.0000,0.0000,0.0000,18,101,11,NULL),(19,0.0000,0.0000,0.0000,0.0000,8.0000,8.0000,0.0000,0.0000,19,101,12,NULL),(20,0.0000,0.0000,0.0000,0.0000,130.0000,130.0000,0.0000,0.0000,20,187,13,NULL);
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_order_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_orders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_orders`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_orders` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_withdrawal_requested` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`seller_payout_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`commission_percentage` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`commission` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_commission` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`commission_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_commission_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`seller_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_seller_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`seller_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_seller_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`total_item_count` int DEFAULT NULL,
|
|||
|
|
`total_qty_ordered` int DEFAULT NULL,
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`marketplace_seller_id` int unsigned NOT NULL,
|
|||
|
|
`order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `marketplace_orders_marketplace_seller_id_order_id_unique` (`marketplace_seller_id`,`order_id`),
|
|||
|
|
KEY `marketplace_orders_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `marketplace_orders_marketplace_seller_id_foreign` FOREIGN KEY (`marketplace_seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_orders_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_orders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_orders` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_orders` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `marketplace_orders` VALUES (1,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,389.0000,389.0000,0.0000,0.0000,2,2,389.0000,389.0000,0.0000,0.0000,0.0000,0.0000,389.0000,389.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,2,1,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(2,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,300.0000,300.0000,0.0000,0.0000,1,1,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,1,1,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(3,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,122.0000,122.0000,0.0000,0.0000,2,2,122.0000,122.0000,0.0000,0.0000,0.0000,0.0000,122.0000,122.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,3,2,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(4,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,401.0000,401.0000,0.0000,0.0000,3,3,401.0000,401.0000,0.0000,0.0000,0.0000,0.0000,401.0000,401.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,2,2,'2023-08-25 23:08:34','2023-08-25 23:08:35'),(5,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,551.0000,551.0000,0.0000,0.0000,3,3,551.0000,551.0000,0.0000,0.0000,0.0000,0.0000,551.0000,551.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,1,2,'2023-08-25 23:08:34','2023-08-25 23:08:35'),(6,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,36.0000,36.0000,0.0000,0.0000,1,2,36.0000,36.0000,0.0000,0.0000,0.0000,0.0000,36.0000,36.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,5,3,'2023-09-15 22:50:57','2023-09-15 22:50:57'),(7,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,330.0000,330.0000,0.0000,0.0000,1,1,730.0000,730.0000,0.0000,0.0000,0.0000,0.0000,330.0000,330.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,3,4,'2023-09-20 21:20:18','2023-09-20 21:20:18'),(8,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,150.0000,150.0000,0.0000,0.0000,1,1,550.0000,550.0000,0.0000,0.0000,0.0000,0.0000,150.0000,150.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,5,4,'2023-09-20 21:20:18','2023-09-20 21:20:18'),(9,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,21.0000,21.0000,0.0000,0.0000,1,1,221.0000,221.0000,0.0000,0.0000,0.0000,0.0000,21.0000,21.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,200.0000,200.0000,0.0000,0.0000,0.0000,0.0000,3,5,'2023-09-20 21:58:47','2023-09-20 21:58:47'),(10,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,110.0000,110.0000,0.0000,0.0000,1,1,510.0000,510.0000,0.0000,0.0000,0.0000,0.0000,110.0000,110.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,3,6,'2023-09-23 03:03:02','2023-09-23 03:03:02'),(11,'pending',0,'pending',0.0000,0.0000,0.0000,0.0000,0.0000,14.0000,14.0000,0.0000,0.0000,2,2,414.0000,414.0000,0.0000,0.0000,0.0000,0.0000,14.0000,14.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,5,7,'2023-09-25 15:38:07',
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_orders` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_product_flag_reasons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_product_flag_reasons`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_product_flag_reasons` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`reason` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) DEFAULT '1',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_product_flag_reasons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_product_flag_reasons` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_flag_reasons` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_flag_reasons` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_product_flags`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_product_flags`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_product_flags` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_product_flags_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `marketplace_product_flags_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_product_flags`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_product_flags` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_flags` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_flags` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_product_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_product_images`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_product_images` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`marketplace_product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_product_images_marketplace_product_id_foreign` (`marketplace_product_id`),
|
|||
|
|
CONSTRAINT `marketplace_product_images_marketplace_product_id_foreign` FOREIGN KEY (`marketplace_product_id`) REFERENCES `marketplace_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_product_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_product_images` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_images` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_images` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_product_videos`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_product_videos`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_product_videos` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`marketplace_product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `mp_products_video_foreign` (`marketplace_product_id`),
|
|||
|
|
CONSTRAINT `mp_products_video_foreign` FOREIGN KEY (`marketplace_product_id`) REFERENCES `marketplace_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_product_videos`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_product_videos` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_videos` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_product_videos` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`condition` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`price` double NOT NULL DEFAULT '0',
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`is_approved` tinyint(1) DEFAULT NULL,
|
|||
|
|
`is_owner` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`marketplace_seller_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `marketplace_products_marketplace_seller_id_product_id_unique` (`marketplace_seller_id`,`product_id`),
|
|||
|
|
KEY `marketplace_products_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `marketplace_products_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `marketplace_products_marketplace_seller_id_foreign` FOREIGN KEY (`marketplace_seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_products_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `marketplace_products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=197 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_products` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `marketplace_products` VALUES (8,NULL,0,NULL,1,1,NULL,8,1,'2023-06-27 02:27:23','2023-06-27 02:55:52'),(17,NULL,0,'',0,0,NULL,17,3,'2023-09-14 21:23:54','2023-09-14 21:23:54'),(20,NULL,0,'',0,0,NULL,20,3,'2023-09-14 23:18:12','2023-09-14 23:18:12'),(21,NULL,0,'',0,0,NULL,21,3,'2023-09-14 23:49:35','2023-09-14 23:49:35'),(22,NULL,0,'',0,0,NULL,23,3,'2023-09-15 02:30:00','2023-09-15 02:30:00'),(23,NULL,0,'',0,0,NULL,24,3,'2023-09-15 02:34:19','2023-09-15 02:34:19'),(24,NULL,0,'',0,0,NULL,25,3,'2023-09-15 02:43:18','2023-09-15 02:43:18'),(25,NULL,0,'',0,0,NULL,26,3,'2023-09-15 02:44:57','2023-09-15 02:44:57'),(26,NULL,0,'',1,0,NULL,27,3,'2023-09-15 02:45:51','2023-09-15 18:01:16'),(27,NULL,0,'',0,0,NULL,28,3,'2023-09-15 02:47:52','2023-09-15 02:47:52'),(28,NULL,0,'',0,0,NULL,29,3,'2023-09-15 02:48:18','2023-09-15 02:48:18'),(37,NULL,0,'',0,0,NULL,38,3,'2023-09-15 04:08:50','2023-09-15 04:08:50'),(48,NULL,0,'',0,0,NULL,49,5,'2023-09-15 11:14:41','2023-09-15 11:14:41'),(90,NULL,0,'',0,0,NULL,91,1,'2023-09-15 18:12:33','2023-09-15 18:12:33'),(91,NULL,0,'',0,0,NULL,92,1,'2023-09-15 18:14:54','2023-09-15 18:14:54'),(92,NULL,0,'',0,0,NULL,93,1,'2023-09-15 18:15:28','2023-09-15 18:15:28'),(93,NULL,0,'',1,0,NULL,94,5,'2023-09-15 18:16:36','2023-09-15 18:45:36'),(101,NULL,0,'',1,0,NULL,102,5,'2023-09-15 18:26:51','2023-09-15 18:44:53'),(104,NULL,0,'',1,0,NULL,105,5,'2023-09-15 18:32:14','2023-09-15 18:44:29'),(107,NULL,0,'',1,0,NULL,108,5,'2023-09-15 18:35:21','2023-09-15 18:44:29'),(111,NULL,0,'',1,0,NULL,112,5,'2023-09-15 18:41:14','2023-09-15 18:44:29'),(114,NULL,0,'',1,0,NULL,115,3,'2023-09-22 19:49:14','2023-09-22 21:31:45'),(115,NULL,0,'',1,0,NULL,116,3,'2023-09-22 19:51:13','2023-09-22 21:31:45'),(116,NULL,0,'',0,0,NULL,117,3,'2023-09-22 19:52:23','2023-09-22 19:52:23'),(117,NULL,0,'',1,0,NULL,118,3,'2023-09-22 19:53:05','2023-09-22 21:31:45'),(118,NULL,0,'',1,0,NULL,119,3,'2023-09-22 19:54:41','2023-09-22 21:31:45'),(119,NULL,0,'',1,0,NULL,120,3,'2023-09-22 19:57:02','2023-09-22 21:32:03'),(120,NULL,0,'',1,0,NULL,121,3,'2023-09-22 19:58:30','2023-09-22 21:32:03'),(121,NULL,0,'',0,0,NULL,122,3,'2023-09-22 20:01:04','2023-09-22 20:01:04'),(122,NULL,0,'',1,0,NULL,123,3,'2023-09-22 20:09:25','2023-09-22 21:32:03'),(123,NULL,0,'',1,0,NULL,124,3,'2023-09-22 20:13:37','2023-09-22 21:32:03'),(124,NULL,0,'',1,0,NULL,125,3,'2023-09-22 20:15:19','2023-09-22 21:32:03'),(125,NULL,0,'',1,0,NULL,126,3,'2023-09-22 20:21:43','2023-09-22 21:32:03'),(126,NULL,0,'',0,0,NULL,127,3,'2023-09-22 20:24:14','2023-09-22 20:24:14'),(127,NULL,0,'',1,0,NULL,128,3,'2023-09-22 20:27:19','2023-09-22 21:32:03'),(128,NULL,0,'',1,0,NULL,129,3,'2023-09-22 20:28:22','2023-09-22 21:32:03'),(129,NULL,0,'',1,0,NULL,130,3,'2023-09-22 20:29:20','2023-09-22 21:32:03'),(130,NULL,0,'',1,0,NULL,131,3,'2023-09-22 20:30:12','2023-09-22 21:32:03'),(131,NULL,0,'',1,0,NULL,132,3,'2023-09-22 20:30:59','2023-09-22 21:32:17'),(132,NULL,0,'',1,0,NULL,133,3,'2023-09-22 20:31:49','2023-09-22 21:32:17'),(133,NULL,0,'',0,0,NULL,134,3,'2023-09-22 20:34:04','2023-09-22 20:34:04'),(134,NULL,0,'',1,0,NULL,135,3,'2023-09-22 20:34:16','2023-09-22 21:32:17'),(135,NULL,0,'',1,0,NULL,136,3,'2023-09-22 20:35:59','2023-09-22 21:32:16'),(136,NULL,0,'',1,0,NULL,137,3,'2023-09-22 20:37:23','2023-09-22 21:32:16'),(137,NULL,0,'',1,0,NULL,138,3,'2023-09-22 20:38:06','2023-09-22 21:32:16'),(138,NULL,0,'',1,0,NULL,139,3,'2023-09-22 20:38:51','2023-09-22 21:32:16'),(139,NULL,0,'',1,0,NULL,140,3,'2023-09-22 20:39:29','2023-09-22 21:32:16'),(140,NULL,0,'',1,0,NULL,141,3,'2023-09-22 20:40:08','2023-09-22 21:32:16'),(141,NULL,0,'',1,0,NULL,142,3,'2023-09-22 20:43:01','2023-09-22 21:32:16'),(142,NULL,0,'',1,0,NULL,143,3,'2023-09-22 20:44:28','2023-09-22 21:32:31'),(143,NULL,0,'',1,0,NULL,144,3,'2023-09-22 20:45:19','2023-09-22 21:32:31'),(144,NULL,0,'',1,0,NULL,145,3,'2023-09-22 20:46:01','2023-09-22 21:32:31'),(145,NULL,0,'',1,0,NULL,146,3,'2023-09-22 20:46:53','2023-09-22 21:32:31'),(146,NULL,0,'',1,0,NULL,147,3,'2023-09-22 20:48:17','2023-09-22 21:32:31'),(147,NULL,0,'',0,0,NULL,148,3,'2023-0
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_refund_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_refund_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_refund_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`marketplace_refund_id` int unsigned NOT NULL,
|
|||
|
|
`refund_item_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_refund_items_marketplace_refund_id_foreign` (`marketplace_refund_id`),
|
|||
|
|
KEY `marketplace_refund_items_refund_item_id_foreign` (`refund_item_id`),
|
|||
|
|
CONSTRAINT `marketplace_refund_items_marketplace_refund_id_foreign` FOREIGN KEY (`marketplace_refund_id`) REFERENCES `marketplace_refunds` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_refund_items_refund_item_id_foreign` FOREIGN KEY (`refund_item_id`) REFERENCES `refund_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_refund_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_refund_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_refund_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_refund_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_refunds`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_refunds`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_refunds` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`increment_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`adjustment_refund` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_adjustment_refund` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`adjustment_fee` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_adjustment_fee` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`refund_id` int unsigned DEFAULT NULL,
|
|||
|
|
`marketplace_order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_refunds_refund_id_foreign` (`refund_id`),
|
|||
|
|
KEY `marketplace_refunds_marketplace_order_id_foreign` (`marketplace_order_id`),
|
|||
|
|
CONSTRAINT `marketplace_refunds_marketplace_order_id_foreign` FOREIGN KEY (`marketplace_order_id`) REFERENCES `marketplace_orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_refunds_refund_id_foreign` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_refunds`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_refunds` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_refunds` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_refunds` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_seller_flag_reasons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_seller_flag_reasons`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_seller_flag_reasons` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`reason` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) DEFAULT '1',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_seller_flag_reasons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_seller_flag_reasons` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_flag_reasons` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_flag_reasons` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_seller_flags`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_seller_flags`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_seller_flags` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`seller_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_seller_flags_seller_id_foreign` (`seller_id`),
|
|||
|
|
CONSTRAINT `marketplace_seller_flags_seller_id_foreign` FOREIGN KEY (`seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_seller_flags`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_seller_flags` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_flags` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_flags` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_seller_reviews`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_seller_reviews`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_seller_reviews` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`rating` int NOT NULL,
|
|||
|
|
`comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`marketplace_seller_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_seller_reviews_marketplace_seller_id_foreign` (`marketplace_seller_id`),
|
|||
|
|
KEY `marketplace_seller_reviews_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `marketplace_seller_reviews_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_seller_reviews_marketplace_seller_id_foreign` FOREIGN KEY (`marketplace_seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_seller_reviews`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_seller_reviews` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_reviews` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_seller_reviews` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_sellers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_sellers`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_sellers` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_approved` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`shop_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`banner` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`tax_vat` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`meta_title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`address1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`address2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`city` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`postcode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`return_policy` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`shipping_policy` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`privacy_policy` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`twitter` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`facebook` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`youtube` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`instagram` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`skype` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`linked_in` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`pinterest` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`commission_enable` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`commission_percentage` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`ship_price` int NOT NULL DEFAULT '0',
|
|||
|
|
`ship_time` int DEFAULT '0',
|
|||
|
|
`slogan` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
|
|||
|
|
`min_order_amount` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`google_analytics_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`profile_background` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `marketplace_sellers_url_unique` (`url`),
|
|||
|
|
UNIQUE KEY `marketplace_sellers_customer_id_unique` (`customer_id`),
|
|||
|
|
CONSTRAINT `marketplace_sellers_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_sellers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_sellers` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_sellers` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `marketplace_sellers` VALUES (1,'altyn-dag2',0,'Altyn Dag','',NULL,NULL,'',NULL,'','','Bitarap Turkmenistan','qq','+99363124772','ASH','Ashgabat','TM','744000','','','','','','','','','','',1,'2023-06-27 01:42:44','2023-09-15 18:46:26',0,0.0000,0,0,'Altyn Dag','1','',NULL),(2,'boybodron',0,'Boýbodron','',NULL,NULL,'',NULL,'','','Bitarap Turkmenistan','','+99363124772','ASH','Ashgabat','TM','744000','','','','','','','','','','',2,'2023-06-27 02:31:13','2023-09-15 18:46:26',0,0.0000,0,0,'Boýbodron','','',NULL),(3,'melhemli',1,'Melhemli Diýarym','','seller/3/gIjtDHgefeUVtyVhAbz4XkFsERdZRRVpMOTHnDkw.png','seller/3/Dclhn1yQ0RNdXXD72iuubjb6UQg3agiHXTY36AZx.png','',NULL,'','','Bitarap Turkmenistan','','+99363124772','ASH','Ashgabat','TM','744000','','','','','','','','','','',3,'2023-06-27 02:46:17','2023-10-03 22:26:44',0,0.0000,0,0,'Slogan Panasian','','',NULL),(4,'dertdes',0,'Dertdeş','',NULL,NULL,NULL,NULL,'','','dertdes','','+99364515815',NULL,NULL,NULL,'dertdes@gmail.com','','','','','','','','','','',7,'2023-09-15 01:52:19','2023-09-15 18:46:26',0,0.0000,11,4,'dertdes','','',NULL),(5,'mahirliyol',1,'Mähiri ýol','','seller/5/AzkZBZkSsPInnWMp2oPfpnWT3cJCSv1Wf8RQ1kP0.png','seller/5/xuuCbBu8m5db3OmNpFWac8TNmHZ8WIunrDkvkahe.png',NULL,NULL,'','','mahirliyol','','+99364515815',NULL,NULL,NULL,'mahiriyol@gmail.com','','','','','','','','','','',8,'2023-09-15 02:08:33','2023-10-03 22:26:25',0,0.0000,11,11,'mahirliyol','','',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_sellers` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_shipment_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_shipment_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_shipment_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`marketplace_shipment_id` int unsigned NOT NULL,
|
|||
|
|
`shipment_item_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_shipment_items_marketplace_shipment_id_foreign` (`marketplace_shipment_id`),
|
|||
|
|
KEY `marketplace_shipment_items_shipment_item_id_foreign` (`shipment_item_id`),
|
|||
|
|
CONSTRAINT `marketplace_shipment_items_marketplace_shipment_id_foreign` FOREIGN KEY (`marketplace_shipment_id`) REFERENCES `marketplace_shipments` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_shipment_items_shipment_item_id_foreign` FOREIGN KEY (`shipment_item_id`) REFERENCES `shipment_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_shipment_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_shipment_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_shipment_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_shipment_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_shipments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_shipments`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_shipments` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`shipment_id` int unsigned NOT NULL,
|
|||
|
|
`marketplace_order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `marketplace_shipments_shipment_id_foreign` (`shipment_id`),
|
|||
|
|
KEY `marketplace_shipments_marketplace_order_id_foreign` (`marketplace_order_id`),
|
|||
|
|
CONSTRAINT `marketplace_shipments_marketplace_order_id_foreign` FOREIGN KEY (`marketplace_order_id`) REFERENCES `marketplace_orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_shipments_shipment_id_foreign` FOREIGN KEY (`shipment_id`) REFERENCES `shipments` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_shipments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_shipments` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_shipments` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_shipments` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `marketplace_transactions`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `marketplace_transactions`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `marketplace_transactions` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`transaction_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`base_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`marketplace_seller_id` int unsigned NOT NULL,
|
|||
|
|
`marketplace_order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `marketplace_transactions_transaction_id_unique` (`transaction_id`),
|
|||
|
|
KEY `marketplace_transactions_marketplace_seller_id_foreign` (`marketplace_seller_id`),
|
|||
|
|
KEY `marketplace_transactions_marketplace_order_id_foreign` (`marketplace_order_id`),
|
|||
|
|
CONSTRAINT `marketplace_transactions_marketplace_order_id_foreign` FOREIGN KEY (`marketplace_order_id`) REFERENCES `marketplace_orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `marketplace_transactions_marketplace_seller_id_foreign` FOREIGN KEY (`marketplace_seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `marketplace_transactions`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `marketplace_transactions` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_transactions` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `marketplace_transactions` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `migrations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `migrations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `migrations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`batch` int NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `migrations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `migrations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_admin_password_resets_table',1),(3,'2014_10_12_100000_create_password_resets_table',1),(4,'2018_06_12_111907_create_admins_table',1),(5,'2018_06_13_055341_create_roles_table',1),(6,'2018_07_05_130148_create_attributes_table',1),(7,'2018_07_05_132854_create_attribute_translations_table',1),(8,'2018_07_05_135150_create_attribute_families_table',1),(9,'2018_07_05_135152_create_attribute_groups_table',1),(10,'2018_07_05_140832_create_attribute_options_table',1),(11,'2018_07_05_140856_create_attribute_option_translations_table',1),(12,'2018_07_05_142820_create_categories_table',1),(13,'2018_07_10_055143_create_locales_table',1),(14,'2018_07_20_054426_create_countries_table',1),(15,'2018_07_20_054502_create_currencies_table',1),(16,'2018_07_20_054542_create_currency_exchange_rates_table',1),(17,'2018_07_20_064849_create_channels_table',1),(18,'2018_07_21_142836_create_category_translations_table',1),(19,'2018_07_23_110040_create_inventory_sources_table',1),(20,'2018_07_24_082635_create_customer_groups_table',1),(21,'2018_07_24_082930_create_customers_table',1),(22,'2018_07_24_083025_create_customer_addresses_table',1),(23,'2018_07_27_065727_create_products_table',1),(24,'2018_07_27_070011_create_product_attribute_values_table',1),(25,'2018_07_27_092623_create_product_reviews_table',1),(26,'2018_07_27_113941_create_product_images_table',1),(27,'2018_07_27_113956_create_product_inventories_table',1),(28,'2018_08_03_114203_create_sliders_table',1),(29,'2018_08_30_064755_create_tax_categories_table',1),(30,'2018_08_30_065042_create_tax_rates_table',1),(31,'2018_08_30_065840_create_tax_mappings_table',1),(32,'2018_09_05_150444_create_cart_table',1),(33,'2018_09_05_150915_create_cart_items_table',1),(34,'2018_09_11_064045_customer_password_resets',1),(35,'2018_09_19_092845_create_cart_address',1),(36,'2018_09_19_093453_create_cart_payment',1),(37,'2018_09_19_093508_create_cart_shipping_rates_table',1),(38,'2018_09_20_060658_create_core_config_table',1),(39,'2018_09_27_113154_create_orders_table',1),(40,'2018_09_27_113207_create_order_items_table',1),(41,'2018_09_27_113405_create_order_address_table',1),(42,'2018_09_27_115022_create_shipments_table',1),(43,'2018_09_27_115029_create_shipment_items_table',1),(44,'2018_09_27_115135_create_invoices_table',1),(45,'2018_09_27_115144_create_invoice_items_table',1),(46,'2018_10_01_095504_create_order_payment_table',1),(47,'2018_10_03_025230_create_wishlist_table',1),(48,'2018_10_12_101803_create_country_translations_table',1),(49,'2018_10_12_101913_create_country_states_table',1),(50,'2018_10_12_101923_create_country_state_translations_table',1),(51,'2018_11_15_153257_alter_order_table',1),(52,'2018_11_15_163729_alter_invoice_table',1),(53,'2018_11_16_173504_create_subscribers_list_table',1),(54,'2018_11_17_165758_add_is_verified_column_in_customers_table',1),(55,'2018_11_21_144411_create_cart_item_inventories_table',1),(56,'2018_11_26_110500_change_gender_column_in_customers_table',1),(57,'2018_11_27_174449_change_content_column_in_sliders_table',1),(58,'2018_12_05_132625_drop_foreign_key_core_config_table',1),(59,'2018_12_05_132629_alter_core_config_table',1),(60,'2018_12_06_185202_create_product_flat_table',1),(61,'2018_12_07_164618_create_marketplace_sellers_table',1),(62,'2018_12_19_103208_create_marketplace_products_table',1),(63,'2018_12_19_130903_create_marketplace_seller_reviews_table',1),(64,'2018_12_21_101307_alter_channels_table',1),(65,'2018_12_24_123812_create_channel_inventory_sources_table',1),(66,'2018_12_24_184402_alter_shipments_table',1),(67,'2018_12_26_165327_create_product_ordered_inventories_table',1),(68,'2018_12_31_152453_create_marketplace_product_images_table',1),(69,'2018_12_31_161114_alter_channels_category_table',1),(70,'2019_01_07_180846_create_marketplace_orders_table',1),(71,'2019_01_07_185328_create_marketplace_order_items_table',1),(72,'2019_01_11_122452_add_vendor_id_column_in_product_inventories_table',1),(73,'2019_01_11_163303_create_marketplace_shi
|
|||
|
|
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `mp_product_downloadable_link_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mp_product_downloadable_link_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `mp_product_downloadable_link_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`mp_product_downloadable_link_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `mp_link_translations_link_id_foreign` (`mp_product_downloadable_link_id`),
|
|||
|
|
CONSTRAINT `mp_link_translations_link_id_foreign` FOREIGN KEY (`mp_product_downloadable_link_id`) REFERENCES `mp_product_downloadable_links` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `mp_product_downloadable_link_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `mp_product_downloadable_link_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_link_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_link_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `mp_product_downloadable_links`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mp_product_downloadable_links`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `mp_product_downloadable_links` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sample_url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`downloads` int NOT NULL DEFAULT '0',
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `mp_product_downloadable_links_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `mp_product_downloadable_links_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `marketplace_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `mp_product_downloadable_links`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `mp_product_downloadable_links` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_links` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_links` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `mp_product_downloadable_sample_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mp_product_downloadable_sample_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `mp_product_downloadable_sample_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`mp_product_downloadable_sample_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `mp_sample_translations_sample_id_foreign` (`mp_product_downloadable_sample_id`),
|
|||
|
|
CONSTRAINT `mp_sample_translations_sample_id_foreign` FOREIGN KEY (`mp_product_downloadable_sample_id`) REFERENCES `mp_product_downloadable_samples` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `mp_product_downloadable_sample_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `mp_product_downloadable_sample_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_sample_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_sample_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `mp_product_downloadable_samples`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `mp_product_downloadable_samples`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `mp_product_downloadable_samples` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `mp_product_downloadable_samples_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `mp_product_downloadable_samples_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `marketplace_products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `mp_product_downloadable_samples`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `mp_product_downloadable_samples` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_samples` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `mp_product_downloadable_samples` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `notifications`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `notifications`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `notifications` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`read` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `notifications_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `notifications_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `notifications`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `notifications` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `notifications` VALUES (1,'order',0,1,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(2,'order',0,2,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(3,'order',0,3,'2023-09-15 22:50:57','2023-09-15 22:50:57'),(4,'order',0,4,'2023-09-20 21:20:18','2023-09-20 21:20:18'),(5,'order',0,5,'2023-09-20 21:58:47','2023-09-20 21:58:47'),(6,'order',0,6,'2023-09-23 03:03:02','2023-09-23 03:03:02'),(7,'order',1,7,'2023-09-25 15:38:07','2023-10-03 14:37:35'),(8,'order',0,8,'2023-10-10 19:13:16','2023-10-10 19:13:16'),(9,'order',0,9,'2023-10-22 19:51:52','2023-10-22 19:51:52');
|
|||
|
|
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `order_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `order_brands`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `order_brands` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`order_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`brand` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `order_brands_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `order_brands_order_item_id_foreign` (`order_item_id`),
|
|||
|
|
KEY `order_brands_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `order_brands_brand_foreign` (`brand`),
|
|||
|
|
CONSTRAINT `order_brands_brand_foreign` FOREIGN KEY (`brand`) REFERENCES `attribute_options` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `order_brands_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `order_brands_order_item_id_foreign` FOREIGN KEY (`order_item_id`) REFERENCES `order_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `order_brands_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `order_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `order_brands` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `order_brands` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `order_brands` VALUES (3,1,3,8,NULL,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(8,2,8,8,NULL,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(14,4,14,94,NULL,'2023-09-20 21:20:18','2023-09-20 21:20:18'),(16,6,16,121,NULL,'2023-09-23 03:03:02','2023-09-23 03:03:02'),(17,7,17,108,NULL,'2023-09-25 15:38:07','2023-09-25 15:38:07'),(18,7,18,102,NULL,'2023-09-25 15:38:07','2023-09-25 15:38:07'),(19,8,19,102,NULL,'2023-10-10 19:13:16','2023-10-10 19:13:16'),(20,9,20,188,NULL,'2023-10-22 19:51:52','2023-10-22 19:51:52');
|
|||
|
|
/*!40000 ALTER TABLE `order_brands` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `order_comments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `order_comments`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `order_comments` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`customer_notified` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `order_comments_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `order_comments_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `order_comments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `order_comments` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `order_comments` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `order_comments` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `order_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `order_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `order_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`weight` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`total_weight` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`qty_ordered` int DEFAULT '0',
|
|||
|
|
`qty_shipped` int DEFAULT '0',
|
|||
|
|
`qty_invoiced` int DEFAULT '0',
|
|||
|
|
`qty_canceled` int DEFAULT '0',
|
|||
|
|
`qty_refunded` int DEFAULT '0',
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`amount_refunded` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_amount_refunded` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `order_items_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `order_items_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `order_items_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `order_items` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `order_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `order_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `order_items` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `order_items` VALUES (1,'bp3','simple','Изимстатин (Izimstatin) 20мг таб.№20',NULL,0.0000,0.0000,1,0,0,0,0,44.0000,44.0000,44.0000,44.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,11,'Webkul\\Product\\Models\\Product',1,NULL,'{\"locale\": \"tm\", \"quantity\": 1, \"product_id\": \"11\", \"/api/customer/cart/add/11\": \"\"}','2023-06-27 19:05:00','2023-06-27 19:05:00'),(2,'bp4','simple','Доппельгерц Энерготоник Н сироп 250мл',NULL,0.0000,0.0000,1,0,0,0,0,345.0000,345.0000,345.0000,345.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,12,'Webkul\\Product\\Models\\Product',1,NULL,'{\"locale\": \"tm\", \"quantity\": 1, \"product_id\": \"12\", \"/api/customer/cart/add/12\": \"\"}','2023-06-27 19:05:00','2023-06-27 19:05:00'),(3,'prod7','simple','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,0.0000,0.0000,1,0,0,0,0,300.0000,300.0000,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,8,'Webkul\\Product\\Models\\Product',1,NULL,'{\"locale\": \"tm\", \"quantity\": 1, \"product_id\": \"8\", \"/api/customer/cart/add/8\": \"\"}','2023-06-27 19:05:00','2023-06-27 19:05:00'),(4,'mp5','simple','Kalimin',NULL,0.0000,0.0000,1,0,0,0,0,109.0000,109.0000,109.0000,109.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,16,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"16\", \"/api/customer/cart/add/16\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(5,'mp2','simple','medrull',NULL,0.0000,0.0000,1,0,0,0,0,13.0000,13.0000,13.0000,13.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,14,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"14\", \"/api/customer/cart/add/14\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(6,'bp4','simple','Доппельгерц Энерготоник Н сироп 250мл',NULL,0.0000,0.0000,1,0,0,0,0,345.0000,345.0000,345.0000,345.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,12,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"12\", \"/api/customer/cart/add/12\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(7,'b1','simple','Бисептол СГ 480мг таб.№20',NULL,0.0000,0.0000,1,0,0,0,0,12.0000,12.0000,12.0000,12.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,9,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"9\", \"/api/customer/cart/add/9\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(8,'prod7','simple','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,0.0000,0.0000,1,0,0,0,0,300.0000,300.0000,300.0000,300.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,8,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"8\", \"/api/customer/cart/add/8\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(9,'product3','simple','Dermoweýt melhemi 0,05% 50g №1',NULL,0.0000,0.0000,1,0,0,0,0,109.0000,109.0000,109.0000,109.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,4,'Webkul\\Product\\Models\\Product',2,NULL,'{\"locale\": \"ru\", \"quantity\": 1, \"product_id\": \"4\", \"/api/customer/cart/add/4\": \"\"}','2023-08-25 23:08:34','2023-08-25 23:08:34'),(10,'bp3','simple','Изимстатин (Izimstati
|
|||
|
|
/*!40000 ALTER TABLE `order_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `order_payment`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `order_payment`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `order_payment` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `order_payment_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `order_payment_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `order_payment`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `order_payment` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `order_payment` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `order_payment` VALUES (1,'terminal100',NULL,1,NULL,'2023-06-27 19:05:00','2023-06-27 19:05:00'),(2,'cash100',NULL,2,NULL,'2023-08-25 23:08:34','2023-08-25 23:08:34'),(3,'cash100',NULL,3,NULL,'2023-09-15 22:50:57','2023-09-15 22:50:57'),(4,'cash100',NULL,4,NULL,'2023-09-20 21:20:17','2023-09-20 21:20:17'),(5,'cash100',NULL,5,NULL,'2023-09-20 21:58:47','2023-09-20 21:58:47'),(6,'cash100',NULL,6,NULL,'2023-09-23 03:03:01','2023-09-23 03:03:01'),(7,'cash100',NULL,7,NULL,'2023-09-25 15:38:07','2023-09-25 15:38:07'),(8,'cash100',NULL,8,NULL,'2023-10-10 19:13:16','2023-10-10 19:13:16'),(9,'terminal100',NULL,9,NULL,'2023-10-22 19:51:52','2023-10-22 19:51:52');
|
|||
|
|
/*!40000 ALTER TABLE `order_payment` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `order_transactions`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `order_transactions`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `order_transactions` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`transaction_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`payment_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`data` json DEFAULT NULL,
|
|||
|
|
`invoice_id` int unsigned NOT NULL,
|
|||
|
|
`order_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `order_transactions_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `order_transactions_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `order_transactions`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `order_transactions` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `order_transactions` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `order_transactions` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `orders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `orders`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `orders` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`increment_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_guest` tinyint(1) DEFAULT NULL,
|
|||
|
|
`customer_email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_vat_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_gift` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_item_count` int DEFAULT NULL,
|
|||
|
|
`total_qty_ordered` int DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_invoiced` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_refunded` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
`customer_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_id` int unsigned DEFAULT NULL,
|
|||
|
|
`channel_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`cart_id` int DEFAULT NULL,
|
|||
|
|
`applied_cart_rule_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `orders_increment_id_unique` (`increment_id`),
|
|||
|
|
KEY `orders_customer_id_foreign` (`customer_id`),
|
|||
|
|
KEY `orders_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `orders_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `orders_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `orders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `orders` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `orders` VALUES (1,'1','pending','Derman',0,NULL,'Shohrat','Annamyradow',NULL,NULL,'courier_courier','Courier - Courier','Courier Shipping',NULL,0,3,3,'TMT','TMT','TMT',689.0000,689.0000,0.0000,0.0000,0.0000,0.0000,689.0000,689.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,4,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-06-27 19:05:00','2023-06-27 19:05:00',2,'',0.0000,0.0000),(2,'2','pending','Derman',0,NULL,'test','test',NULL,NULL,'courier_courier','Courier - Courier','Courier Shipping',NULL,0,8,8,'TMT','TMT','TMT',1074.0000,1074.0000,0.0000,0.0000,0.0000,0.0000,1074.0000,1074.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,6,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-08-25 23:08:34','2023-08-25 23:08:34',5,'',0.0000,0.0000),(3,'3','pending','Derman',0,NULL,'Aman','Aman',NULL,NULL,'pickup_pickup','Pickup - Pickup','Pickup from address',NULL,0,1,2,'TMT','TMT','TMT',36.0000,36.0000,0.0000,0.0000,0.0000,0.0000,36.0000,36.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,9,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-09-15 22:50:57','2023-09-15 22:50:57',6,'',0.0000,0.0000),(4,'4','pending','Derman',0,NULL,'isa','isa',NULL,NULL,'pickup_pickup','Pickup - Pickup','Pickup from address',NULL,0,2,2,'TMT','TMT','TMT',880.0000,880.0000,0.0000,0.0000,0.0000,0.0000,480.0000,480.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,10,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-09-20 21:20:17','2023-09-20 21:20:17',7,'',0.0000,0.0000),(5,'5','pending','Derman',0,NULL,'isa','isa',NULL,NULL,'courier_courier','Courier - Courier','Courier Shipping',NULL,0,1,1,'TMT','TMT','TMT',221.0000,221.0000,0.0000,0.0000,0.0000,0.0000,21.0000,21.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,200.0000,200.0000,0.0000,0.0000,0.0000,0.0000,10,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-09-20 21:58:47','2023-09-20 21:58:47',8,'',0.0000,0.0000),(6,'6','pending','Derman',0,NULL,'isa','isa',NULL,NULL,'pickup_pickup','Pickup - Pickup','Pickup from address',NULL,0,1,1,'TMT','TMT','TMT',510.0000,510.0000,0.0000,0.0000,0.0000,0.0000,110.0000,110.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,10,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-09-23 03:03:01','2023-09-23 03:03:01',9,'',0.0000,0.0000),(7,'7','pending','Derman',0,NULL,'Aman Tekemuradow','Aman Tekemuradow',NULL,NULL,'pickup_pickup','Pickup - Pickup','Pickup from address',NULL,0,2,2,'TMT','TMT','TMT',414.0000,414.0000,0.0000,0.0000,0.0000,0.0000,14.0000,14.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,400.0000,400.0000,0.0000,0.0000,0.0000,0.0000,12,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-09-25 15:38:07','2023-09-25 15:38:07',16,'',0.0000,0.0000),(8,'8','pending','Derman',0,NULL,'Aman','Aman',NULL,NULL,'courier_courier','Courier - Courier','Courier Shipping',NULL,0,1,1,'TMT','TMT','TMT',208.0000,208.0000,0.0000,0.0000,0.0000,0.0000,8.0000,8.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,200.0000,200.0000,0.0000,0.0000,0.0000,0.0000,9,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-10-10 19:13:16','2023-10-10 19:13:16',21,'',
|
|||
|
|
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `password_resets`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `password_resets` (
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
KEY `password_resets_email_index` (`email`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `password_resets`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `password_resets` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `payment_requests`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `payment_requests`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `payment_requests` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`payment_amount` double DEFAULT NULL,
|
|||
|
|
`seller_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`seller_id` int unsigned DEFAULT NULL,
|
|||
|
|
`order_id` json DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `payment_requests`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `payment_requests` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `payment_requests` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `payment_requests` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `personal_access_tokens`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `personal_access_tokens`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `personal_access_tokens` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`tokenable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`tokenable_id` bigint unsigned NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`last_used_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
|
|||
|
|
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `personal_access_tokens`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `personal_access_tokens` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `personal_access_tokens` VALUES (11,'Webkul\\Customer\\Models\\Customer',4,'from Web','b6fe19036b5dfdd167160fb92819962368535ac6505155d3ace848436c93ccf1','[\"role:customer\"]','2023-06-29 14:12:40','2023-06-29 14:12:14','2023-06-29 14:12:40'),(12,'Webkul\\Customer\\Models\\Customer',5,'AndroidAndroid SDK built for x86','928b1a786b3d852e462d4b8d204e116d34aa20bc09120eec70ab40a7a66ba72a','[\"role:customer\"]','2023-08-25 21:34:52','2023-08-23 00:25:56','2023-08-25 21:34:52'),(13,'Webkul\\Customer\\Models\\Customer',6,'AndroidAndroid SDK built for x86','2ef43f41151f728f85e98691d93c8a02e0c3eeca2876f0f1f9493ea80d0cbdc8','[\"role:customer\"]','2023-08-26 12:30:28','2023-08-25 20:26:44','2023-08-26 12:30:28'),(24,'Webkul\\Customer\\Models\\Customer',11,'samsungSM-A546E','db652902a6294beebb52687899b5f21272558d9aca369986a54a6783dadcf819','[\"role:customer\"]','2023-09-22 15:05:14','2023-09-22 15:03:08','2023-09-22 15:05:14'),(34,'Webkul\\Customer\\Models\\Customer',12,'samsungSM-G990B','70f7934aaab03207aaa3085f60d4a84a27db6cfe488d49942246b0965380248c','[\"role:customer\"]','2023-09-25 15:38:35','2023-09-25 15:37:58','2023-09-25 15:38:35'),(37,'Webkul\\Customer\\Models\\Customer',13,'iPad','215a063937bca3a0e574c52ddf152f1a038e8e18516f34cdf809a63652d8bb59','[\"role:customer\"]','2023-10-04 19:25:29','2023-10-03 19:12:17','2023-10-04 19:25:29'),(38,'Webkul\\Customer\\Models\\Customer',14,'hezret iPhone’u','33b3165da29249a8b95574aa9962aec6ddaafbeedac0642e03c0bd7ba806db4e','[\"role:customer\"]','2023-10-07 21:37:20','2023-10-07 21:36:31','2023-10-07 21:37:20'),(39,'Webkul\\Customer\\Models\\Customer',15,'samsungSM-A047F','c784439b61e7c9a98835e645b7fd99e5d2910047a28c113ab207d3d3cea08490','[\"role:customer\"]','2023-10-08 18:17:07','2023-10-08 18:15:09','2023-10-08 18:17:07'),(40,'Webkul\\Customer\\Models\\Customer',16,'samsungSM-A045F','03a57416d4a4a501cd19f636355284b9918b826590d5aa4da596207ff48162dc','[\"role:customer\"]','2023-10-10 18:42:30','2023-10-10 18:39:12','2023-10-10 18:42:30'),(43,'Webkul\\Customer\\Models\\Customer',10,'samsungSM-A546E','5c255e435e36589b332121c6ca3597ed5d6e151673019291c31655d697a583ea','[\"role:customer\"]','2023-10-22 15:43:38','2023-10-11 12:47:49','2023-10-22 15:43:38'),(44,'Webkul\\Customer\\Models\\Customer',17,'samsungSM-G990E','f8066ba50114b9ba32e6bcf336fe1e46b75feefc9e3d187046c9671051ec6c80','[\"role:customer\"]','2023-10-13 15:24:12','2023-10-13 15:22:51','2023-10-13 15:24:12'),(45,'Webkul\\Customer\\Models\\Customer',18,'samsungSM-A235F','91482cd9f1fd65575f0e61ef934cec883acd2aa5c18cd8f0dbb6241c2b2c9200','[\"role:customer\"]','2023-10-16 22:06:19','2023-10-16 22:02:48','2023-10-16 22:06:19'),(46,'Webkul\\Customer\\Models\\Customer',19,'iPhone','d50ded5b26e1fb107c4beae7329a920d97d2c7fabea46c3010a61b11093f5540','[\"role:customer\"]','2023-10-21 13:12:23','2023-10-21 10:31:42','2023-10-21 13:12:23'),(47,'Webkul\\Customer\\Models\\Customer',9,'samsungSM-G990B','8ac98b21ee91c2af30a972044c78a9fb6901c5484ddf0ffe9c3943bc2d16fc61','[\"role:customer\"]','2023-10-22 19:52:15','2023-10-22 19:50:58','2023-10-22 19:52:15');
|
|||
|
|
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_attribute_values`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_attribute_values`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_attribute_values` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`text_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`boolean_value` tinyint(1) DEFAULT NULL,
|
|||
|
|
`integer_value` int DEFAULT NULL,
|
|||
|
|
`float_value` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`datetime_value` datetime DEFAULT NULL,
|
|||
|
|
`date_value` date DEFAULT NULL,
|
|||
|
|
`json_value` json DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `chanel_locale_attribute_value_index_unique` (`channel`,`locale`,`attribute_id`,`product_id`),
|
|||
|
|
KEY `product_attribute_values_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_attribute_values_attribute_id_foreign` (`attribute_id`),
|
|||
|
|
CONSTRAINT `product_attribute_values_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_attribute_values_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4611 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_attribute_values`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_attribute_values` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_attribute_values` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_attribute_values` VALUES (150,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,8,8),(151,'tm','Derman','<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>',NULL,NULL,NULL,NULL,NULL,NULL,8,9),(152,'tm','Derman','<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>',NULL,NULL,NULL,NULL,NULL,NULL,8,10),(153,NULL,NULL,'prod7',NULL,NULL,NULL,NULL,NULL,NULL,8,1),(154,'tm','Derman','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,NULL,NULL,NULL,NULL,NULL,8,2),(155,NULL,NULL,'witamiski-kanada-kul-gumies-multiwitaminymineraly-tabl-60',NULL,NULL,NULL,NULL,NULL,NULL,8,3),(156,NULL,'Derman',NULL,NULL,0,NULL,NULL,NULL,NULL,8,4),(157,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,8,5),(158,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,8,6),(159,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,8,7),(160,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,8,26),(161,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,8,27),(162,'tm','Derman','',NULL,NULL,NULL,NULL,NULL,NULL,8,16),(163,'tm','Derman','',NULL,NULL,NULL,NULL,NULL,NULL,8,17),(164,'tm','Derman','',NULL,NULL,NULL,NULL,NULL,NULL,8,18),(165,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,8,11),(166,NULL,'Derman',NULL,NULL,NULL,0.0000,NULL,NULL,NULL,8,12),(167,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,8,13),(168,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,8,19),(169,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,8,20),(170,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,8,21),(171,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,8,22),(172,NULL,'Derman',NULL,NULL,NULL,NULL,NULL,NULL,NULL,8,14),(173,NULL,'Derman',NULL,NULL,NULL,NULL,NULL,NULL,NULL,8,15),(366,'tm','Nurgul','<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>',NULL,NULL,NULL,NULL,NULL,NULL,8,9),(367,'tm','Nurgul','<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>',NULL,NULL,NULL,NULL,NULL,NULL,8,10),(368,'tm','Nurgul','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60',NULL,NULL,NULL,NULL,NULL,NULL,8,2),(369,'tm','Nurgul','Elit sint rerum es',NULL,NULL,NULL,NULL,NULL,NULL,17,9),(370,'tm','Nurgul','Impedit id amet d',NULL,NULL,NULL,NULL,NULL,NULL,17,10),(371,'tm','Nurgul','Alexandra Leach',NULL,NULL,NULL,NULL,NULL,NULL,17,2),(372,NULL,NULL,'alexandra-leach',NULL,NULL,NULL,NULL,NULL,NULL,17,3),(373,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,17,5),(374,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,17,6),(375,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,17,7),(376,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,17,8),(377,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,17,26),(378,NULL,NULL,'995',NULL,NULL,NULL,NULL,NULL,NULL,17,27),(379,NULL,NULL,NULL,NULL,NULL,485.0000,NULL,NULL,NULL,17,11),(380,NULL,NULL,NULL,NULL,NULL,452.0000,NULL,NULL,NULL,17,13),(381,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,17,22),(408,'tm','Derman','10мг 10таблеток',NULL,NULL,NULL,NULL,NULL,NULL,27,9),(409,'tm','Derman','Информация о продукте',NULL,NULL,NULL,NULL,NULL,NULL,27,10),(410,'tm','Derman','zodak 10мг 10таблеток',NULL,NULL,NULL,NULL,NULL,NULL,27,2),(411,NULL,NULL,'zodak10',NULL,NULL,NULL,NULL,NULL,NULL,27,3),(412,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,27,5),(413,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,27,6),(414,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,27,7),(415,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,27,8),(416,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,27,26),(417,NULL,NULL,'mp6',NULL,NULL,NULL,NULL,NULL,NULL,27,27),(418,NULL,NULL,NULL,NULL,NULL,82.0000,NULL,NULL,NULL,27,11),(419,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,27,13),(420,NULL,NULL,'10',NULL,NULL,NULL,NULL,NULL,NULL,27,22),(595,'ru','Derman','Зодак 10мл 10таблеток ',NULL,NULL,NULL,NULL,NULL,NULL,27,9),(596,'ru','Derman','Зодак 10мл 10таблеток ',NULL,NULL,NULL,NULL,NULL,NULL,27,
|
|||
|
|
/*!40000 ALTER TABLE `product_attribute_values` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_bundle_option_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_bundle_option_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_bundle_option_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int NOT NULL DEFAULT '0',
|
|||
|
|
`is_user_defined` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`sort_order` int NOT NULL DEFAULT '0',
|
|||
|
|
`product_bundle_option_id` int unsigned NOT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_bundle_option_products_product_bundle_option_id_foreign` (`product_bundle_option_id`),
|
|||
|
|
KEY `product_bundle_option_products_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_bundle_option_products_product_bundle_option_id_foreign` FOREIGN KEY (`product_bundle_option_id`) REFERENCES `product_bundle_options` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_bundle_option_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_bundle_option_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_bundle_option_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_option_products` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_option_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_bundle_option_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_bundle_option_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_bundle_option_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`product_bundle_option_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `product_bundle_option_translations_option_id_locale_unique` (`product_bundle_option_id`,`locale`),
|
|||
|
|
CONSTRAINT `product_bundle_option_translations_option_id_foreign` FOREIGN KEY (`product_bundle_option_id`) REFERENCES `product_bundle_options` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_bundle_option_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_bundle_option_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_option_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_option_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_bundle_options`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_bundle_options`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_bundle_options` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_required` tinyint(1) NOT NULL DEFAULT '1',
|
|||
|
|
`sort_order` int NOT NULL DEFAULT '0',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_bundle_options_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_bundle_options_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_bundle_options`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_bundle_options` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_options` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_bundle_options` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_categories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_categories` (
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`category_id` int unsigned NOT NULL,
|
|||
|
|
KEY `product_categories_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_categories_category_id_foreign` (`category_id`),
|
|||
|
|
CONSTRAINT `product_categories_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_categories_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_categories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_categories` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_categories` VALUES (8,3),(27,7),(94,7),(102,10),(105,4),(108,9),(112,3),(115,3),(116,3),(118,3),(119,3),(120,3),(121,3),(123,6),(124,6),(125,6),(126,6),(128,9),(129,9),(130,9),(131,3),(132,9),(133,9),(135,4),(136,4),(137,4),(138,4),(139,3),(140,4),(141,3),(142,8),(143,8),(144,8),(145,8),(146,8),(147,3),(149,3),(150,3),(151,3),(152,3),(153,3),(154,3),(155,3),(156,3),(157,3),(158,3),(159,3),(160,3),(161,3),(162,3),(163,3),(164,3),(165,3),(166,7),(167,7),(168,7),(169,7),(170,7),(171,10),(172,10),(173,10),(174,10),(175,10),(176,10),(177,10),(178,10),(179,10),(180,10),(182,7),(183,3),(184,7),(185,3),(186,3),(187,3),(188,3),(189,3),(190,3),(192,8),(193,8),(195,8),(197,9);
|
|||
|
|
/*!40000 ALTER TABLE `product_categories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_cross_sells`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_cross_sells`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_cross_sells` (
|
|||
|
|
`parent_id` int unsigned NOT NULL,
|
|||
|
|
`child_id` int unsigned NOT NULL,
|
|||
|
|
KEY `product_cross_sells_parent_id_foreign` (`parent_id`),
|
|||
|
|
KEY `product_cross_sells_child_id_foreign` (`child_id`),
|
|||
|
|
CONSTRAINT `product_cross_sells_child_id_foreign` FOREIGN KEY (`child_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_cross_sells_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_cross_sells`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_cross_sells` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_cross_sells` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_cross_sells` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_customer_group_prices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_customer_group_prices`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_customer_group_prices` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int NOT NULL DEFAULT '0',
|
|||
|
|
`value_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`value` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`customer_group_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_customer_group_prices_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_customer_group_prices_customer_group_id_foreign` (`customer_group_id`),
|
|||
|
|
CONSTRAINT `product_customer_group_prices_customer_group_id_foreign` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_groups` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_customer_group_prices_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_customer_group_prices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_customer_group_prices` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_customer_group_prices` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_customer_group_prices` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_downloadable_link_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_downloadable_link_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_downloadable_link_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`product_downloadable_link_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `link_translations_link_id_foreign` (`product_downloadable_link_id`),
|
|||
|
|
CONSTRAINT `link_translations_link_id_foreign` FOREIGN KEY (`product_downloadable_link_id`) REFERENCES `product_downloadable_links` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_downloadable_link_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_downloadable_link_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_link_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_link_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_downloadable_links`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_downloadable_links`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_downloadable_links` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sample_url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`downloads` int NOT NULL DEFAULT '0',
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_downloadable_links_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_downloadable_links_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_downloadable_links`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_downloadable_links` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_links` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_links` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_downloadable_sample_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_downloadable_sample_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_downloadable_sample_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`product_downloadable_sample_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `sample_translations_sample_id_foreign` (`product_downloadable_sample_id`),
|
|||
|
|
CONSTRAINT `sample_translations_sample_id_foreign` FOREIGN KEY (`product_downloadable_sample_id`) REFERENCES `product_downloadable_samples` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_downloadable_sample_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_downloadable_sample_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_sample_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_sample_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_downloadable_samples`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_downloadable_samples`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_downloadable_samples` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_downloadable_samples_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_downloadable_samples_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_downloadable_samples`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_downloadable_samples` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_samples` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_downloadable_samples` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_flat`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_flat`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_flat` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`product_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`url_key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`new` tinyint(1) DEFAULT NULL,
|
|||
|
|
`featured` tinyint(1) DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) DEFAULT NULL,
|
|||
|
|
`thumbnail` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`cost` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`special_price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`special_price_from` date DEFAULT NULL,
|
|||
|
|
`special_price_to` date DEFAULT NULL,
|
|||
|
|
`weight` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`color` int DEFAULT NULL,
|
|||
|
|
`color_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`size` int DEFAULT NULL,
|
|||
|
|
`size_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` datetime DEFAULT NULL,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`updated_at` datetime DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`visible_individually` tinyint(1) DEFAULT NULL,
|
|||
|
|
`min_price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`max_price` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`short_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`width` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`height` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`depth` decimal(12,4) DEFAULT NULL,
|
|||
|
|
`brand_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `product_flat_unique_index` (`product_id`,`channel`,`locale`),
|
|||
|
|
KEY `product_flat_parent_id_foreign` (`parent_id`),
|
|||
|
|
KEY `product_flat_brand_id_foreign` (`brand_id`),
|
|||
|
|
CONSTRAINT `product_flat_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `product_flat_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `product_flat` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_flat_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=336 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_flat`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_flat` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_flat` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_flat` VALUES (8,'prod7','','Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60','<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>','witamiski-kanada-kul-gumies-multiwitaminymineraly-tabl-60',0,1,1,NULL,NULL,0.0000,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,'2023-06-27 02:27:23','tm','Derman',8,'2023-06-27 02:27:23',NULL,1,NULL,NULL,'<p><span style=\"font-family: Montserrat, Arial, sans-serif;\">Witamişki Kanada Kul Gumies multiwitaminy+mineraly tabl №60</span></p>','','','',0.0000,0.0000,NULL,NULL),(23,'mp6','mp6','zodak 10мг 10таблеток','Информация о продукте','zodak10',1,0,1,NULL,82.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 02:45:51','tm','Derman',27,'2023-09-15 02:45:51',NULL,1,82.0000,82.0000,'10мг 10таблеток',NULL,NULL,NULL,0.0000,0.0000,NULL,NULL),(24,'mp6','mp6','Зодак 10мл 10таблеток ','Зодак 10мл 10таблеток ','zodak10',1,0,1,NULL,82.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 02:45:51','ru','Derman',27,'2023-09-15 02:45:51',NULL,1,82.0000,82.0000,'Зодак 10мл 10таблеток ','','','',0.0000,0.0000,NULL,NULL),(146,'allergiya12','allergiya1','Zodak damja 20ml ','Информация о продукте','zodak12',0,1,1,NULL,150.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:16:36','tm','Derman',94,'2023-09-15 18:16:36',NULL,1,150.0000,150.0000,'Zodak damja 20ml ',NULL,NULL,NULL,0.0000,0.0000,NULL,NULL),(147,'allergiya12','allergiya1','Зодак капли 20мл','Зодак капли 20мл','zodak12',0,1,1,NULL,150.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:16:36','ru','Derman',94,'2023-09-15 18:16:36',NULL,1,150.0000,150.0000,'Зодак капли 20мл','','','',0.0000,0.0000,NULL,NULL),(162,'infuziya55','infuziya111','Metronidozol altemet 100ml ','Информация о продукте','metronidozol',1,0,1,NULL,8.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:26:51','tm','Derman',102,'2023-09-15 18:26:51',NULL,1,8.0000,8.0000,'Metronidozol altemet 100ml ',NULL,NULL,NULL,0.0000,0.0000,NULL,NULL),(163,'infuziya55','infuziya111','Метронидозол алтимет 100мл','Метронидозол алтимет 100 мЛ','metronidozol',1,0,1,NULL,8.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:26:51','ru','Derman',102,'2023-09-15 18:26:51',NULL,1,8.0000,8.0000,'Метронидозол алтимет 100 мл','','','',0.0000,0.0000,NULL,NULL),(168,'kreem44','kreem44','Bepanten 30gr ','Информация о продукте','bepanten',0,0,1,NULL,190.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:32:14','tm','Derman',105,'2023-09-15 18:32:14',NULL,1,190.0000,190.0000,'Bepanten 30gr ',NULL,NULL,NULL,0.0000,0.0000,NULL,NULL),(169,'kreem44','kreem44','Бепантен 30гр','Бепантен 30гр','bepanten',0,0,1,NULL,190.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:32:14','ru','Derman',105,'2023-09-15 18:32:14',NULL,1,190.0000,190.0000,'Бепантен 30гр','','','',0.0000,0.0000,NULL,NULL),(174,'medteh2','teh3','Bint ','Информация о продукте','bint',1,0,1,NULL,6.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:35:21','tm','Derman',108,'2023-09-15 18:35:21',NULL,1,6.0000,6.0000,'Bint 10sm 4metr ',NULL,NULL,NULL,0.0000,0.0000,NULL,NULL),(175,'medteh2','teh3','Бинт','Бинт','bint',1,0,1,NULL,6.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:35:21','ru','Derman',108,'2023-09-15 18:35:21',NULL,1,6.0000,6.0000,'Бинт','','','',0.0000,0.0000,NULL,NULL),(182,'wt6','witaminn','Kompliwit 30 tatletka ','Информация о продукте','kompliwit-30-tatletka',0,0,1,NULL,155.0000,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,NULL,'2023-09-15 18:41:14','tm','Derman',112,'2023-09-15 18:41:14',NULL,1,155.0000,155.0000,'Kompliwit 30 tatletka ',NULL,NULL,NULL
|
|||
|
|
/*!40000 ALTER TABLE `product_flat` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_grouped_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_grouped_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_grouped_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int NOT NULL DEFAULT '0',
|
|||
|
|
`sort_order` int NOT NULL DEFAULT '0',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`associated_product_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_grouped_products_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_grouped_products_associated_product_id_foreign` (`associated_product_id`),
|
|||
|
|
CONSTRAINT `product_grouped_products_associated_product_id_foreign` FOREIGN KEY (`associated_product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_grouped_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_grouped_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_grouped_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_grouped_products` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_grouped_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_images`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_images` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`position` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_images_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_images_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=225 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_images` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_images` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_images` VALUES (17,'images','product/8/ZpADx6QX2oPPM5P0tOyrBrXa6xn6MLh72TTrUgvb.jpg',8,0),(51,'images','product/27/uoa7fYrDscBigrw71Pk4FrJZdjRUlM8E5DoPMzKk.png',27,0),(121,'images','product/94/Y3K5hCjR1IcTStFhgl6ShZiKaCA32fCVcfJIc1CO.jpg',94,0),(129,'images','product/102/se3Y65EnqtA9aPxIZ3y1OI10NKdQMKIW6sQsnDey.jpg',102,0),(132,'images','product/105/dWp6GjpLEgVwtJ1RuLD8gzgOebaUTjo8yZh4Vr2X.jpg',105,0),(135,'images','product/108/Y7LbFSusxDGnOiOH1ZBFurSOGxAeozI5eRShvzlP.jpg',108,0),(140,'images','product/112/s9Pg07gg7sInu0mCg1C8cL3mgLgm1EcegfDYI0hD.jpg',112,0),(143,'images','product/115/6HsOjDErwINb6Ghgfqs4AGFMkCr3zEGjaqMN4KYj.jpg',115,0),(145,'images','product/116/pW56eY23NA2ksDmcaKCOT5gVbEG0aSo418zNi7Vo.jpg',116,0),(146,'images','product/118/KXQwCaOknfvd1PTyZ1vsuRB1ZEUjOyWfMnS0AGp9.png',118,0),(147,'images','product/119/rbDA9QMw26FXAzZqhGWj84VX5vDcYAl2WhRVVMyE.png',119,0),(148,'images','product/120/ZgrLxZRjSwiBwHObTmAmuypoFFsjRazIL9t50jYD.jpg',120,0),(150,'images','product/121/TJpr6NhEGAhmVwd2bVJgFwo5162Vz6zCiBYaJVu0.jpg',121,0),(153,'images','product/123/zGcoUKGRyibZFyJfAauWLz2ScdkYTjbm4zC8SaBL.jpg',123,0),(155,'images','product/124/TWSmBnPDOljHpqKro2R23Wf04VVsvPaUjgBh8LJc.jpg',124,0),(156,'images','product/125/CtZu1L2MxlXr6aoijJu7MqWrwfXdqY3niZGfHMMY.jpg',125,0),(157,'images','product/126/f5TisJDjCayee0m9u9slZM10XMnn43B5tXpfuogw.jpg',126,0),(158,'images','product/128/oNhzCUp0EEr7nZVpGVnijx4HSAEsTkZkZerLV3tV.jpg',128,0),(159,'images','product/129/413vERUYweIrt4x2RwnHXXVv1ezNgMcaRxGrILyC.jpg',129,0),(160,'images','product/130/vuxqu13olXkp0sah4opYuZEHsdEzI7Q3Z5KSJbe0.jpg',130,0),(161,'images','product/131/KrnRuylez2SjqEc8XGgtPOTgF7XG2ktuLucIZXQU.jpg',131,0),(162,'images','product/132/PIpX0DEb7PxYWNHGykipGkcQCocViotedXG2I8cm.jpg',132,0),(163,'images','product/133/Eoni90jfuqnkwP2P2qVyOHo98ThiT1U0syPkG52J.jpg',133,0),(165,'images','product/136/tuyoNNoKyRuyBLAU3XFejP6aHMzxQnUJiKLDsxhB.jpg',136,0),(166,'images','product/137/UgCjnCepSyTTLpQbJkkyJ4fxEZG5nREspdd2q2Kg.jpg',137,0),(167,'images','product/138/EeSB9i58QrtUrMuw7aYsG88iBQUwmdMhCL78ykV8.jpg',138,0),(168,'images','product/139/1leAOvglWIcfd30TaxCwHABbLFPfcQLyO0Sx6QOO.jpg',139,0),(170,'images','product/141/dxpb0rCD6W8fe8LrlSxWbrZDZw3dJC3kjj2gXMhD.jpg',141,0),(172,'images','product/140/nW5szdWaCe8t9QSmr0bKYJLzgmh21rvN71CaUnds.jpg',140,0),(173,'images','product/135/wjkjdTjxdGpgAf21XFrZiilXWIwTxAiqNCHVgEM7.jpg',135,0),(174,'images','product/142/iP4lSQNOKvGpXLTyWgyJbAzZeR567ORWtg8p7osq.png',142,0),(175,'images','product/143/Wxc0Owri4SD15KHROnGawDlzBluiLCFWpUdIEgMu.png',143,0),(176,'images','product/144/2wWQFTS880FbiqrDwrSMqvrubq8EooBtaTUJWVS8.jpg',144,0),(177,'images','product/145/55vtp9n4UawluWMrDXSFrtMvEyEtDu369wjUsxJL.jpg',145,0),(178,'images','product/146/jHApEuxzPQDUB2VrtPkajNJvuvCQ2DhUiJqRAKgF.jpg',146,0),(179,'images','product/147/Pm0EPcc1OZSSBokpG7bkG3RDjfmPhgw7VhxJ2bRo.png',147,0),(180,'images','product/149/RJmWxwzSOMcl83HIkrW0hSJStrOD8VNIlnTqpKrb.jpg',149,0),(181,'images','product/150/y9vsPD9Xi7LeGGnIqHTwtxdHTmbNxZHHYBNwaWI0.jpg',150,0),(182,'images','product/151/mL2EBM7FuOfYUE6Zk2zFxV1UZ2CSr3QM15BXuCyI.jpg',151,0),(183,'images','product/152/LeFk1bWUHBCJH0X14z9YPdBBzhwRcywlmYqrGGHr.jpg',152,0),(184,'images','product/153/ZdIQ9q0sAUpXFe8ZxPazRIatOpGJyJYp5mM6UENL.jpg',153,0),(185,'images','product/154/ytUyoSfcBTpZJq4I85gaB4Wssd1HxyGveAFVdtLQ.jpg',154,0),(186,'images','product/155/0GIeNPthmFGQozUp3JqVQJQz7aGypbcdqY0N5t18.jpg',155,0),(187,'images','product/156/CmjX7BLnj45VfMbJtzraPYNY8946bt9sfhtVNX5w.jpg',156,0),(188,'images','product/157/N8AAEmxfriELRBQ0p5OQB0exl17jskgOOtI82d2L.jpg',157,0),(189,'images','product/158/0cAO26shmDsxmpfOsLjmQRfQHQS0SsXxuaW9SEvJ.jpg',158,0),(190,'images','product/159/asrAugFL3euF1fhe5OlDkDNT5j6x1JM002hdemMW.jpg',159,0),(191,'images','product/160/9Vepxtdlbe9ly0pm8udBRnKnNsAAAvDVCs9yrzLr.jpg',160,0),(192,'images','product/161/fV8zp9M4mcdsJkNUSTkRzhgPKGQ0KEGfClKbNtyV.jpg',161,0),(193,'images','product/162/H9nTVsREQKz3WsAcmdJpy2KOc1pAnBd5V3J8Hn5W.jpg',162,0),(194,'images','product/163/VJAiAEoGRzokj1ZRsqRTXa4Aj8rI0svOrsZcKOgK.j
|
|||
|
|
/*!40000 ALTER TABLE `product_images` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_inventories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_inventories` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int NOT NULL DEFAULT '0',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`inventory_source_id` int unsigned NOT NULL,
|
|||
|
|
`vendor_id` int NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `product_source_vendor_index_unique` (`product_id`,`inventory_source_id`,`vendor_id`),
|
|||
|
|
KEY `product_inventories_inventory_source_id_foreign` (`inventory_source_id`),
|
|||
|
|
CONSTRAINT `product_inventories_inventory_source_id_foreign` FOREIGN KEY (`inventory_source_id`) REFERENCES `inventory_sources` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_inventories_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=366 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_inventories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_inventories` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_inventories` VALUES (13,220,8,1,1),(14,0,8,1,0),(31,0,17,1,3),(34,0,20,1,3),(35,0,21,1,3),(36,0,23,1,3),(37,0,24,1,3),(38,0,25,1,3),(39,0,26,1,3),(40,100,27,1,3),(41,0,28,1,3),(42,0,29,1,3),(56,100,27,1,0),(60,0,38,1,3),(74,0,49,1,5),(126,0,91,1,1),(127,0,92,1,1),(128,0,93,1,1),(129,100,94,1,5),(137,100,102,1,5),(140,100,105,1,5),(143,100,108,1,5),(147,100,112,1,5),(152,100,112,1,0),(156,100,108,1,0),(159,100,105,1,0),(162,100,102,1,0),(170,100,94,1,0),(209,100,115,1,3),(210,100,116,1,3),(211,0,117,1,3),(212,100,118,1,3),(213,100,119,1,3),(214,100,120,1,3),(215,100,121,1,3),(216,0,122,1,3),(217,100,121,1,0),(218,100,123,1,3),(219,100,124,1,3),(220,100,125,1,3),(221,100,126,1,3),(222,0,127,1,3),(223,100,128,1,3),(224,100,129,1,3),(225,100,130,1,3),(226,100,131,1,3),(227,100,132,1,3),(228,100,133,1,3),(229,0,134,1,3),(230,100,135,1,3),(231,100,136,1,3),(232,100,137,1,3),(233,100,138,1,3),(234,100,139,1,3),(235,100,140,1,3),(236,100,141,1,3),(237,100,142,1,3),(238,100,143,1,3),(239,100,144,1,3),(240,100,145,1,3),(241,100,146,1,3),(242,100,147,1,3),(243,0,148,1,3),(244,100,149,1,3),(245,100,150,1,3),(246,100,151,1,3),(247,100,152,1,3),(248,100,153,1,3),(249,100,154,1,3),(250,100,155,1,3),(251,100,156,1,3),(252,100,157,1,3),(253,100,158,1,3),(254,100,159,1,3),(255,100,160,1,3),(256,100,161,1,3),(257,100,162,1,3),(258,100,163,1,3),(259,100,164,1,3),(260,100,165,1,3),(261,100,166,1,3),(262,100,167,1,3),(263,100,168,1,3),(264,100,169,1,3),(265,100,170,1,3),(266,100,171,1,3),(267,100,172,1,3),(268,100,173,1,3),(269,100,174,1,3),(270,100,175,1,3),(271,100,176,1,5),(272,100,177,1,5),(273,100,178,1,5),(274,100,179,1,5),(275,100,180,1,5),(276,0,181,1,5),(277,100,182,1,5),(278,100,183,1,5),(279,100,184,1,5),(280,100,185,1,5),(281,100,186,1,5),(282,100,187,1,5),(283,100,188,1,5),(284,100,189,1,5),(285,100,190,1,5),(286,0,191,1,5),(287,100,192,1,5),(288,100,193,1,5),(289,0,194,1,5),(290,100,195,1,5),(291,0,196,1,5),(292,100,197,1,5),(293,100,197,1,0),(294,100,195,1,0),(295,100,193,1,0),(296,100,192,1,0),(297,100,190,1,0),(298,100,189,1,0),(299,100,188,1,0),(300,100,187,1,0),(301,100,186,1,0),(302,100,185,1,0),(303,100,184,1,0),(304,100,183,1,0),(305,100,182,1,0),(306,100,180,1,0),(307,100,179,1,0),(308,100,178,1,0),(309,100,177,1,0),(310,100,176,1,0),(311,100,175,1,0),(312,100,174,1,0),(313,100,173,1,0),(314,100,172,1,0),(315,100,171,1,0),(316,100,170,1,0),(317,100,169,1,0),(318,100,168,1,0),(319,100,167,1,0),(320,100,166,1,0),(321,100,165,1,0),(322,100,164,1,0),(323,100,163,1,0),(324,100,162,1,0),(325,100,161,1,0),(326,100,160,1,0),(327,100,159,1,0),(328,100,158,1,0),(329,100,157,1,0),(330,100,156,1,0),(331,100,155,1,0),(332,100,154,1,0),(333,100,153,1,0),(334,100,152,1,0),(335,100,151,1,0),(336,100,150,1,0),(337,100,149,1,0),(338,100,147,1,0),(339,100,146,1,0),(340,100,145,1,0),(341,100,144,1,0),(342,100,143,1,0),(343,100,142,1,0),(344,100,141,1,0),(345,100,140,1,0),(346,100,139,1,0),(347,100,138,1,0),(348,100,135,1,0),(349,100,136,1,0),(350,100,137,1,0),(351,100,133,1,0),(352,100,132,1,0),(353,100,131,1,0),(354,100,130,1,0),(355,100,129,1,0),(356,100,128,1,0),(357,100,126,1,0),(358,100,125,1,0),(359,100,124,1,0),(360,100,123,1,0),(361,100,120,1,0),(362,100,119,1,0),(363,100,118,1,0),(364,100,116,1,0),(365,100,115,1,0);
|
|||
|
|
/*!40000 ALTER TABLE `product_inventories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_ordered_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_ordered_inventories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_ordered_inventories` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`qty` int NOT NULL DEFAULT '0',
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `product_ordered_inventories_product_id_channel_id_unique` (`product_id`,`channel_id`),
|
|||
|
|
KEY `product_ordered_inventories_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `product_ordered_inventories_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_ordered_inventories_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_ordered_inventories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_ordered_inventories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_ordered_inventories` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `product_ordered_inventories` VALUES (3,2,8,1),(11,1,94,1),(13,1,121,1),(14,1,108,1),(15,2,102,1),(16,1,188,1);
|
|||
|
|
/*!40000 ALTER TABLE `product_ordered_inventories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_relations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_relations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_relations` (
|
|||
|
|
`parent_id` int unsigned NOT NULL,
|
|||
|
|
`child_id` int unsigned NOT NULL,
|
|||
|
|
KEY `product_relations_parent_id_foreign` (`parent_id`),
|
|||
|
|
KEY `product_relations_child_id_foreign` (`child_id`),
|
|||
|
|
CONSTRAINT `product_relations_child_id_foreign` FOREIGN KEY (`child_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_relations_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_relations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_relations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_relations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_relations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_review_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_review_images`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_review_images` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`review_id` int unsigned NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_review_images_review_id_foreign` (`review_id`),
|
|||
|
|
CONSTRAINT `product_review_images_review_id_foreign` FOREIGN KEY (`review_id`) REFERENCES `product_reviews` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_review_images`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_review_images` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_review_images` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_review_images` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_reviews`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_reviews`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_reviews` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`rating` int NOT NULL,
|
|||
|
|
`comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int DEFAULT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_reviews_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_reviews_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `product_reviews_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_reviews`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_reviews` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_reviews` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_reviews` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_super_attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_super_attributes`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_super_attributes` (
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
KEY `product_super_attributes_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `product_super_attributes_attribute_id_foreign` (`attribute_id`),
|
|||
|
|
CONSTRAINT `product_super_attributes_attribute_id_foreign` FOREIGN KEY (`attribute_id`) REFERENCES `attributes` (`id`) ON DELETE RESTRICT,
|
|||
|
|
CONSTRAINT `product_super_attributes_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_super_attributes`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_super_attributes` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_super_attributes` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_super_attributes` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_up_sells`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_up_sells`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_up_sells` (
|
|||
|
|
`parent_id` int unsigned NOT NULL,
|
|||
|
|
`child_id` int unsigned NOT NULL,
|
|||
|
|
KEY `product_up_sells_parent_id_foreign` (`parent_id`),
|
|||
|
|
KEY `product_up_sells_child_id_foreign` (`child_id`),
|
|||
|
|
CONSTRAINT `product_up_sells_child_id_foreign` FOREIGN KEY (`child_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `product_up_sells_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_up_sells`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_up_sells` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_up_sells` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_up_sells` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `product_videos`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `product_videos`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `product_videos` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`position` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `product_videos_product_id_foreign` (`product_id`),
|
|||
|
|
CONSTRAINT `product_videos_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `product_videos`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `product_videos` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `product_videos` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `product_videos` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`attribute_family_id` int unsigned DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`brand_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `products_sku_unique` (`sku`),
|
|||
|
|
KEY `products_attribute_family_id_foreign` (`attribute_family_id`),
|
|||
|
|
KEY `products_parent_id_foreign` (`parent_id`),
|
|||
|
|
KEY `products_brand_id_foreign` (`brand_id`),
|
|||
|
|
CONSTRAINT `products_attribute_family_id_foreign` FOREIGN KEY (`attribute_family_id`) REFERENCES `attribute_families` (`id`) ON DELETE RESTRICT,
|
|||
|
|
CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `products_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `products` VALUES (8,'prod7','simple','2023-06-27 02:27:23','2023-06-27 02:27:23',NULL,1,NULL,NULL),(17,'asdasd','simple','2023-09-14 21:23:54','2023-09-14 21:23:54',NULL,1,NULL,NULL),(20,'fsdfsd','simple','2023-09-14 23:18:12','2023-09-14 23:18:12',NULL,1,NULL,NULL),(21,'adasd','simple','2023-09-14 23:49:35','2023-09-14 23:49:35',NULL,1,NULL,NULL),(23,'melhemli10','simple','2023-09-15 02:30:00','2023-09-15 02:30:00',NULL,1,NULL,NULL),(24,'melhemli01','simple','2023-09-15 02:34:19','2023-09-15 02:34:19',NULL,1,NULL,NULL),(25,'melhemli001','simple','2023-09-15 02:43:18','2023-09-15 02:43:18',NULL,1,NULL,NULL),(26,'melhemli12','simple','2023-09-15 02:44:57','2023-09-15 02:44:57',NULL,1,NULL,NULL),(27,'mp6','simple','2023-09-15 02:45:51','2023-09-15 02:45:51',NULL,1,NULL,NULL),(28,'z7','simple','2023-09-15 02:47:52','2023-09-15 02:47:52',NULL,1,NULL,NULL),(29,'udruds2','simple','2023-09-15 02:48:18','2023-09-15 02:48:18',NULL,1,NULL,NULL),(38,'melhemli22','simple','2023-09-15 04:08:50','2023-09-15 04:08:50',NULL,1,NULL,NULL),(49,'deded','simple','2023-09-15 11:14:41','2023-09-15 11:14:41',NULL,1,NULL,NULL),(91,'allergiya1','simple','2023-09-15 18:12:33','2023-09-15 18:12:33',NULL,1,NULL,NULL),(92,'allergiya11','simple','2023-09-15 18:14:54','2023-09-15 18:14:54',NULL,1,NULL,NULL),(93,'altyndag1','simple','2023-09-15 18:15:28','2023-09-15 18:15:28',NULL,1,NULL,NULL),(94,'allergiya12','simple','2023-09-15 18:16:36','2023-09-15 18:16:36',NULL,1,NULL,NULL),(102,'infuziya55','simple','2023-09-15 18:26:51','2023-09-15 18:26:51',NULL,1,NULL,NULL),(105,'kreem44','simple','2023-09-15 18:32:14','2023-09-15 18:32:14',NULL,1,NULL,NULL),(108,'medteh2','simple','2023-09-15 18:35:21','2023-09-15 18:35:21',NULL,1,NULL,NULL),(112,'wt6','simple','2023-09-15 18:41:14','2023-09-15 18:41:14',NULL,1,NULL,NULL),(115,'akwadetrim1','simple','2023-09-22 19:49:14','2023-09-22 19:49:14',NULL,1,NULL,NULL),(116,'akwadetrim2','simple','2023-09-22 19:51:13','2023-09-22 19:51:13',NULL,1,NULL,NULL),(117,'akwadetrim3','simple','2023-09-22 19:52:23','2023-09-22 19:52:23',NULL,1,NULL,NULL),(118,'akwadetrim4','simple','2023-09-22 19:53:05','2023-09-22 19:53:05',NULL,1,NULL,NULL),(119,'akwadetrim5','simple','2023-09-22 19:54:41','2023-09-22 19:54:41',NULL,1,NULL,NULL),(120,'akwadetrim6','simple','2023-09-22 19:57:02','2023-09-22 19:57:02',NULL,1,NULL,NULL),(121,'akwadetrim7','simple','2023-09-22 19:58:30','2023-09-22 19:58:30',NULL,1,NULL,NULL),(122,'akwadetrim8','simple','2023-09-22 20:01:04','2023-09-22 20:01:04',NULL,1,NULL,NULL),(123,'amoksiklaw','simple','2023-09-22 20:09:25','2023-09-22 20:09:25',NULL,1,NULL,NULL),(124,'amoksiklaw2','simple','2023-09-22 20:13:37','2023-09-22 20:13:37',NULL,1,NULL,NULL),(125,'amoksiklaw3','simple','2023-09-22 20:15:19','2023-09-22 20:15:19',NULL,1,NULL,NULL),(126,'amoksiklaw4','simple','2023-09-22 20:21:43','2023-09-22 20:21:43',NULL,1,NULL,NULL),(127,'bepanten1','simple','2023-09-22 20:24:14','2023-09-22 20:24:14',NULL,1,NULL,NULL),(128,'bint1','simple','2023-09-22 20:27:19','2023-09-22 20:27:19',NULL,1,NULL,NULL),(129,'bint2','simple','2023-09-22 20:28:22','2023-09-22 20:28:22',NULL,1,NULL,NULL),(130,'bint3','simple','2023-09-22 20:29:20','2023-09-22 20:29:20',NULL,1,NULL,NULL),(131,'bint4','simple','2023-09-22 20:30:12','2023-09-22 20:30:12',NULL,1,NULL,NULL),(132,'bit5','simple','2023-09-22 20:30:59','2023-09-22 20:30:59',NULL,1,NULL,NULL),(133,'bint5','simple','2023-09-22 20:31:49','2023-09-22 20:31:49',NULL,1,NULL,NULL),(134,'bepanten3','simple','2023-09-22 20:34:04','2023-09-22 20:34:04',NULL,1,NULL,NULL),(135,'bepanten10','simple','2023-09-22 20:34:16','2023-09-22 20:34:16',NULL,1,NULL,NULL),(136,'bepanten11','simple','2023-09-22 20:35:59','2023-09-22 20:35:59',NULL,1,NULL,NULL),(137,'epanten13','simple','2023-09-22 20:37:23','2023-09-22 20:37:23',NULL,1,NULL,NULL),(138,'bepanten14','simple','2023-09-22 20:38:06','2023-09-22 20:38:06',NULL,1,NULL,NULL),(139,'bepanten15','simple','2023-09-22 20:38:50','2023-09-22 20:38:50',NULL,1,NULL,NULL),(140,'bepanten16','simple','2023-09-22 20:39:29','2023-09-22 20:
|
|||
|
|
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `refund_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `refund_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `refund_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`qty` int DEFAULT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`base_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`refund_id` int unsigned DEFAULT NULL,
|
|||
|
|
`parent_id` int unsigned DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `refund_items_order_item_id_foreign` (`order_item_id`),
|
|||
|
|
KEY `refund_items_refund_id_foreign` (`refund_id`),
|
|||
|
|
KEY `refund_items_parent_id_foreign` (`parent_id`),
|
|||
|
|
CONSTRAINT `refund_items_order_item_id_foreign` FOREIGN KEY (`order_item_id`) REFERENCES `order_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `refund_items_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `refund_items` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `refund_items_refund_id_foreign` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `refund_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `refund_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `refund_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `refund_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `refunds`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `refunds`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `refunds` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`increment_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`adjustment_refund` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_adjustment_refund` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`adjustment_fee` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_adjustment_fee` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_sub_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_grand_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_shipping_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_percent` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`order_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `refunds_order_id_foreign` (`order_id`),
|
|||
|
|
CONSTRAINT `refunds_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `refunds`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `refunds` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `refunds` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `refunds` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `roles`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `roles`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `roles` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`permission_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`permissions` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `roles`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `roles` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `roles` VALUES (1,'Administrator','Administrator role','all',NULL,NULL,NULL);
|
|||
|
|
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `seller_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `seller_brands`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `seller_brands` (
|
|||
|
|
`seller_id` int unsigned NOT NULL,
|
|||
|
|
`brand_id` int unsigned NOT NULL,
|
|||
|
|
KEY `seller_brands_seller_id_foreign` (`seller_id`),
|
|||
|
|
KEY `seller_brands_brand_id_foreign` (`brand_id`),
|
|||
|
|
CONSTRAINT `seller_brands_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `seller_brands_seller_id_foreign` FOREIGN KEY (`seller_id`) REFERENCES `marketplace_sellers` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `seller_brands`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `seller_brands` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `seller_brands` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `seller_brands` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `seller_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `seller_categories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `seller_categories` (
|
|||
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`seller_id` int unsigned NOT NULL,
|
|||
|
|
`categories` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `seller_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `seller_categories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `seller_categories` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `seller_categories` VALUES (1,1,'[\"2\", \"3\"]','2023-06-27 02:07:25','2023-06-27 02:22:59'),(2,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-06-27 02:37:55','2023-09-15 02:04:54'),(3,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-06-27 02:50:08','2023-09-15 02:04:46'),(4,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 01:53:23','2023-09-15 02:05:27'),(5,1,'[\"1\", \"2\", \"3\", \"4\", \"5\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 02:30:47','2023-09-15 03:38:22'),(6,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 02:31:06','2023-09-15 02:31:06'),(7,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 02:31:23','2023-09-15 02:31:23'),(8,2,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 02:31:39','2023-09-15 02:31:39'),(9,4,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 02:31:59','2023-09-15 02:31:59'),(10,1,'[\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\"]','2023-09-15 02:32:12','2023-09-15 02:32:12'),(11,1,'[\"1\", \"2\", \"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 03:38:42','2023-09-15 04:09:16'),(12,1,'[\"1\", \"2\", \"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 04:09:37','2023-09-15 18:13:15'),(13,1,'[\"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:13:27','2023-09-15 18:13:27'),(14,2,'[\"1\", \"2\", \"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:13:40','2023-09-15 18:13:40'),(15,4,'[\"1\", \"2\", \"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:13:51','2023-09-15 18:13:51'),(16,1,'[\"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:14:05','2023-09-15 18:49:02'),(17,1,'[\"1\", \"2\", \"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:15:16','2023-09-15 18:15:16'),(18,3,'[\"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:48:35','2023-09-15 18:48:35'),(19,5,'[\"3\", \"4\", \"11\", \"6\", \"7\", \"8\", \"9\", \"10\"]','2023-09-15 18:50:47','2023-09-15 18:50:47');
|
|||
|
|
/*!40000 ALTER TABLE `seller_categories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `shipment_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `shipment_items`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `shipment_items` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`qty` int DEFAULT NULL,
|
|||
|
|
`weight` int DEFAULT NULL,
|
|||
|
|
`price` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_price` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`base_total` decimal(12,4) DEFAULT '0.0000',
|
|||
|
|
`product_id` int unsigned DEFAULT NULL,
|
|||
|
|
`product_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_item_id` int unsigned DEFAULT NULL,
|
|||
|
|
`shipment_id` int unsigned NOT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `shipment_items_shipment_id_foreign` (`shipment_id`),
|
|||
|
|
CONSTRAINT `shipment_items_shipment_id_foreign` FOREIGN KEY (`shipment_id`) REFERENCES `shipments` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `shipment_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `shipment_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `shipment_items` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `shipment_items` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `shipments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `shipments`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `shipments` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`total_weight` int DEFAULT NULL,
|
|||
|
|
`carrier_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`carrier_title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`track_number` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
`customer_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_id` int unsigned NOT NULL,
|
|||
|
|
`order_address_id` int unsigned DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`inventory_source_id` int unsigned DEFAULT NULL,
|
|||
|
|
`inventory_source_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `shipments_order_id_foreign` (`order_id`),
|
|||
|
|
KEY `shipments_inventory_source_id_foreign` (`inventory_source_id`),
|
|||
|
|
KEY `shipments_order_address_id_foreign` (`order_address_id`),
|
|||
|
|
CONSTRAINT `shipments_inventory_source_id_foreign` FOREIGN KEY (`inventory_source_id`) REFERENCES `inventory_sources` (`id`) ON DELETE SET NULL,
|
|||
|
|
CONSTRAINT `shipments_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `shipments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `shipments` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `shipments` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `shipments` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `sliders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `sliders`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `sliders` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`slider_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`expired_at` date DEFAULT NULL,
|
|||
|
|
`sort_order` int unsigned NOT NULL DEFAULT '0',
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `sliders_channel_id_foreign` (`channel_id`),
|
|||
|
|
CONSTRAINT `sliders_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `sliders`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `sliders` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `sliders` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `sliders` VALUES (1,'a','slider_images/Derman/7F2PVTlvvy5yAhMDYCxtJRBpch3EOWWDztMbJFFC.png','',1,'2023-09-15 19:01:27','2023-09-21 14:38:09','','tm',NULL,0),(2,'b','slider_images/Derman/YrUHhwh1umRHaOxLperQIQc9EThcEZu3eEkjKGHI.png','',1,'2023-09-15 19:01:44','2023-09-21 14:38:00','','tm',NULL,0),(3,'3','slider_images/Derman/2nlGyF9EkB6s9D026NaszDBQJYAdlkkEX6TjhPr6.png','',1,'2023-09-21 15:00:42','2023-09-21 15:00:42','','tm',NULL,0);
|
|||
|
|
/*!40000 ALTER TABLE `sliders` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `subscribers_list`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `subscribers_list`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `subscribers_list` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_subscribed` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `subscribers_list_channel_id_foreign` (`channel_id`),
|
|||
|
|
KEY `subscribers_list_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `subscribers_list_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `subscribers_list_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `subscribers_list`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `subscribers_list` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `subscribers_list` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `subscribers_list` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `tax_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `tax_categories`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `tax_categories` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `tax_categories_code_unique` (`code`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `tax_categories`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `tax_categories` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `tax_categories` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `tax_categories` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `tax_categories_tax_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `tax_categories_tax_rates`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `tax_categories_tax_rates` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`tax_category_id` int unsigned NOT NULL,
|
|||
|
|
`tax_rate_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `tax_map_index_unique` (`tax_category_id`,`tax_rate_id`),
|
|||
|
|
KEY `tax_categories_tax_rates_tax_rate_id_foreign` (`tax_rate_id`),
|
|||
|
|
CONSTRAINT `tax_categories_tax_rates_tax_category_id_foreign` FOREIGN KEY (`tax_category_id`) REFERENCES `tax_categories` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `tax_categories_tax_rates_tax_rate_id_foreign` FOREIGN KEY (`tax_rate_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `tax_categories_tax_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `tax_categories_tax_rates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `tax_categories_tax_rates` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `tax_categories_tax_rates` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `tax_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `tax_rates`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `tax_rates` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`identifier` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_zip` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`zip_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`zip_from` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`zip_to` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`tax_rate` decimal(12,4) NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `tax_rates_identifier_unique` (`identifier`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `tax_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `tax_rates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `tax_rates` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `tax_rates` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `users`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `users`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `users` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
UNIQUE KEY `users_email_unique` (`email`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `users`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `users` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `velocity_contents`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `velocity_contents`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `velocity_contents` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`content_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`position` int unsigned DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `velocity_contents`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `velocity_contents` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_contents` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_contents` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `velocity_contents_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `velocity_contents_translations`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `velocity_contents_translations` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`content_id` int unsigned DEFAULT NULL,
|
|||
|
|
`title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`custom_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`custom_heading` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`page_link` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`link_target` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`catalog_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`products` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `velocity_contents_translations_content_id_foreign` (`content_id`),
|
|||
|
|
CONSTRAINT `velocity_contents_translations_content_id_foreign` FOREIGN KEY (`content_id`) REFERENCES `velocity_contents` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `velocity_contents_translations`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `velocity_contents_translations` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_contents_translations` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_contents_translations` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `velocity_customer_compare_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `velocity_customer_compare_products`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `velocity_customer_compare_products` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`product_flat_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `velocity_customer_compare_products_product_flat_id_foreign` (`product_flat_id`),
|
|||
|
|
KEY `velocity_customer_compare_products_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `velocity_customer_compare_products_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|||
|
|
CONSTRAINT `velocity_customer_compare_products_product_flat_id_foreign` FOREIGN KEY (`product_flat_id`) REFERENCES `product_flat` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `velocity_customer_compare_products`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `velocity_customer_compare_products` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_customer_compare_products` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_customer_compare_products` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `velocity_meta_data`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `velocity_meta_data`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `velocity_meta_data` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`home_page_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`footer_left_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`footer_middle_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`slider` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`advertisement` json DEFAULT NULL,
|
|||
|
|
`sidebar_category_count` int NOT NULL DEFAULT '9',
|
|||
|
|
`featured_product_count` int NOT NULL DEFAULT '10',
|
|||
|
|
`new_products_count` int NOT NULL DEFAULT '10',
|
|||
|
|
`subscription_bar_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`product_view_images` json DEFAULT NULL,
|
|||
|
|
`product_policy` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`channel` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`header_content_count` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `velocity_meta_data`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `velocity_meta_data` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_meta_data` DISABLE KEYS */;
|
|||
|
|
/*!40000 ALTER TABLE `velocity_meta_data` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Table structure for table `wishlist`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
DROP TABLE IF EXISTS `wishlist`;
|
|||
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|||
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|||
|
|
CREATE TABLE `wishlist` (
|
|||
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|||
|
|
`channel_id` int unsigned NOT NULL,
|
|||
|
|
`product_id` int unsigned NOT NULL,
|
|||
|
|
`customer_id` int unsigned NOT NULL,
|
|||
|
|
`item_options` json DEFAULT NULL,
|
|||
|
|
`moved_to_cart` date DEFAULT NULL,
|
|||
|
|
`shared` tinyint(1) DEFAULT NULL,
|
|||
|
|
`time_of_moving` date DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`additional` json DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`),
|
|||
|
|
KEY `wishlist_channel_id_foreign` (`channel_id`),
|
|||
|
|
KEY `wishlist_product_id_foreign` (`product_id`),
|
|||
|
|
KEY `wishlist_customer_id_foreign` (`customer_id`),
|
|||
|
|
CONSTRAINT `wishlist_channel_id_foreign` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `wishlist_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|||
|
|
CONSTRAINT `wishlist_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
|
|||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
|||
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|||
|
|
|
|||
|
|
--
|
|||
|
|
-- Dumping data for table `wishlist`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `wishlist` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `wishlist` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `wishlist` VALUES (26,1,27,12,NULL,NULL,NULL,NULL,'2023-09-22 20:59:35','2023-09-22 20:59:35',NULL),(28,1,94,12,NULL,NULL,NULL,NULL,'2023-09-22 21:16:01','2023-09-22 21:16:01',NULL),(29,1,187,9,NULL,NULL,NULL,NULL,'2023-09-22 23:16:43','2023-09-22 23:16:43',NULL),(32,1,121,12,NULL,NULL,NULL,NULL,'2023-09-25 15:38:35','2023-09-25 15:38:35',NULL),(34,1,94,10,NULL,NULL,NULL,NULL,'2023-10-17 11:38:26','2023-10-17 11:38:26',NULL);
|
|||
|
|
/*!40000 ALTER TABLE `wishlist` ENABLE KEYS */;
|
|||
|
|
UNLOCK TABLES;
|
|||
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|||
|
|
|
|||
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|||
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|||
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|||
|
|
/*!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 */;
|
|||
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|||
|
|
|
|||
|
|
-- Dump completed on 2023-10-24 19:43:08
|