5066 lines
484 KiB
MySQL
5066 lines
484 KiB
MySQL
|
|
-- MySQL dump 10.13 Distrib 8.0.33, for Linux (x86_64)
|
|||
|
|
--
|
|||
|
|
-- Host: localhost Database: secgi_backend
|
|||
|
|
-- ------------------------------------------------------
|
|||
|
|
-- Server version 8.0.33-0ubuntu0.22.04.2
|
|||
|
|
|
|||
|
|
/*!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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`gender` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`company_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`address1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`address2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`postcode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`city` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`vat_id` varchar(191) 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=8 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',1,NULL,NULL,'Shohrat','Annamyradow',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65809786',NULL,0,NULL,'2023-05-26 02:01:37','2023-05-26 02:01:37'),(2,'cart_billing',1,1,NULL,'Shohrat','Annamyradow',NULL,NULL,'11 mkr',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-05-26 02:14:41','2023-05-26 02:14:41'),(3,'cart_shipping',1,1,NULL,'Shohrat','Annamyradow',NULL,NULL,'11 mkr',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-05-26 02:14:41','2023-05-26 02:14:41'),(4,'order_shipping',1,NULL,1,'Shohrat','Annamyradow',NULL,NULL,'11 mkr',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-05-26 02:18:33','2023-05-26 02:18:33'),(5,'order_billing',1,NULL,1,'Shohrat','Annamyradow',NULL,NULL,'11 mkr',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-05-26 02:18:33','2023-05-26 02:18:33'),(6,'recipient',2,NULL,NULL,'test name','test name',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'65656565',NULL,0,NULL,'2023-06-07 20:35:47','2023-06-07 20:35:47'),(7,'recipient',3,NULL,NULL,'asdasd','asdasd',NULL,NULL,'recipient',NULL,NULL,'recipient',NULL,NULL,NULL,'54545454',NULL,0,NULL,'2023-07-12 13:42:08','2023-07-12 13:42:08');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`api_token` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`role_id` int unsigned NOT NULL,
|
|||
|
|
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`image` varchar(191) 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$ulB4X8mJ9jseIcu5ssKFQOXrPbJmNXkwJve4WTi/UdZFhi7/XaLfi','LKZuh8tQqPwZ7xjG1ETGVaCH81aSNZDe3JN2wLRc5hMa4oqXTFET2CuuNpcMJGxntkfFziFKSUgIZl7M',1,1,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55',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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) 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),(28,1,11);
|
|||
|
|
/*!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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text 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=32 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 (18,'tm','Akfa',10),(19,'ru','Akfa',10),(20,'tm','Akhunji',11),(21,'ru','Akhunji',11),(22,'tm','Bezeg',12),(23,'ru','Bezeg',12),(24,'tm','Ineco',13),(25,'ru','Ineco',13),(26,'tm','Nepis Oy',14),(27,'ru','Nepis Oy',14),(28,'tm','Balam',15),(29,'ru','Balam',15),(30,'tm','Demir At',16),(31,'ru','Demir At',16);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sort_order` int DEFAULT NULL,
|
|||
|
|
`attribute_id` int unsigned NOT NULL,
|
|||
|
|
`swatch_value` varchar(191) 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=17 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 (10,'akfa',1,28,'attribute_option/eefRpFEvKJe0ilySurpIbMeDMHzrMWB0fliboon9.png'),(11,'akhunji',2,28,'attribute_option/gyGwaToc3oBAZNrpC84bTLWrVCCHlb6h7rGnBtJN.png'),(12,'bezeg',3,28,'attribute_option/G9Im0Bd17Ke9zrRixApVchobEZN26c7lJIfzipag.png'),(13,'ineco',4,28,'attribute_option/rtFEwjL1Uv79dWmib2HAPsHet0MnjD6mosnWxf8Z.png'),(14,'nepis-oy',5,28,'attribute_option/mX8T1zq2ohRZTmFFv0ZMnVKQwA5iIm7200RKBpOR.png'),(15,'balam',6,28,'attribute_option/Ic2TOHerfajBxtp6MER0PmOHsbwyuFfxTOcMJqB3.png'),(16,'demir-at',7,28,'attribute_option/Ak2LIT28p3mg3gtGOfzVvrJJ4a9GG5atcgoa46ZL.png');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text 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=34 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),(26,'en','Allow Guest Checkout',26),(27,'en','Product Number',27),(30,'tm','Brendlar',28),(31,'ru','Brendy',28),(32,'tm','Bahasy',11),(33,'ru','Sena',11);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`admin_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`validation` varchar(191) 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) 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=29 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-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(2,'name','Name','text',NULL,3,1,0,1,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,1,0),(3,'url_key','URL Key','text',NULL,4,1,1,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(4,'tax_category_id','Tax Category','select',NULL,5,0,0,0,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(5,'new','New','boolean',NULL,6,0,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(6,'featured','Featured','boolean',NULL,7,0,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(7,'visible_individually','Visible Individually','boolean',NULL,9,1,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(8,'status','Status','boolean',NULL,10,1,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(9,'short_description','Short Description','textarea',NULL,11,1,0,1,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(10,'description','Description','textarea',NULL,12,1,0,1,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,1,0),(11,'price','Price','price','decimal',13,1,0,0,0,1,0,0,0,'2023-05-17 03:43:55','2023-07-11 15:35:06',NULL,1,1,0),(12,'cost','Cost','price','decimal',14,0,0,0,1,0,0,1,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(13,'special_price','Special Price','price','decimal',15,0,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(14,'special_price_from','Special Price From','date',NULL,16,0,0,0,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(15,'special_price_to','Special Price To','date',NULL,17,0,0,0,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(16,'meta_title','Meta Title','textarea',NULL,18,0,0,1,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(17,'meta_keywords','Meta Keywords','textarea',NULL,20,0,0,1,1,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(18,'meta_description','Meta Description','textarea',NULL,21,0,0,1,1,0,0,1,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(19,'length','Length','text','decimal',22,0,0,0,0,0,0,1,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(20,'width','Width','text','decimal',23,0,0,0,0,0,0,1,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(21,'height','Height','text','decimal',24,0,0,0,0,0,0,1,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(22,'weight','Weight','text','decimal',25,1,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(26,'guest_checkout','Guest Checkout','boolean',NULL,8,1,0,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(27,'product_number','Product Number','text',NULL,2,0,1,0,0,0,0,0,0,'2023-05-17 03:43:55','2023-05-17 03:43:55',NULL,1,0,0),(28,'brands','brands','select','',NULL,0,0,0,0,1,1,1,1,'2023-05-26 00:24:16','2023-07-11 17:20:46','image',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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`description` text 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) 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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`qty` int DEFAULT '0',
|
|||
|
|
`location` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`position` int NOT NULL DEFAULT '0',
|
|||
|
|
`image` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`cart_currency_code` varchar(191) 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) 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) 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=5 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 (1,NULL,'Shohrat','Annamyradow','courier_courier','secgiShop',0,2,4.0000,NULL,'USD','USD','TMT','TMT',1358.0000,70.0000,2192.2000,113.0000,0.0000,0.0000,834.2000,43.0000,NULL,0,0,NULL,1,1,'2023-05-26 02:06:37','2023-05-26 02:18:33','1'),(2,NULL,'Shohrat','Annamyradow',NULL,NULL,0,3,7.0000,NULL,'USD','USD','TMT','TMT',386.0600,19.9000,386.0600,19.9000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,1,1,'2023-05-26 02:20:35','2023-06-17 15:00:20',''),(3,NULL,'test name','test name',NULL,NULL,0,10,12.0000,NULL,'USD','USD','TMT','TMT',38297.1500,1974.0800,38297.1500,1974.0800,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,2,1,'2023-06-14 14:07:22','2023-07-12 13:15:08',''),(4,NULL,'asdasd','asdasd',NULL,NULL,0,2,2.0000,NULL,'USD','USD','TMT','TMT',7119.8000,367.0000,7119.8000,367.0000,0.0000,0.0000,0.0000,0.0000,NULL,0,1,NULL,3,1,'2023-07-12 13:45:17','2023-07-12 13:45:23','');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) 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) 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=20 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 (1,2,'Saturn-cyrasy','simple','Saturn cyrasy','secgiShop',0.0000,0.0000,0.0000,29.1000,1.5000,58.2000,3.0000,0.0000,0.0000,0.0000,0.0000,58.2000,3.0000,'{\"quantity\": 2, \"product_id\": 7}',NULL,7,1,NULL,'2023-05-26 02:06:37','2023-05-26 02:18:33',NULL,'1'),(2,2,'Pol-cyrasy','simple','Pol çyrasy','secgiShop',0.0000,0.0000,0.0000,1067.0000,55.0000,2134.0000,110.0000,0.0000,0.0000,0.0000,0.0000,776.0000,40.0000,'{\"quantity\": 2, \"product_id\": 6}',NULL,6,1,NULL,'2023-05-26 02:10:56','2023-05-26 02:18:33',NULL,'1'),(3,1,'Stol-cyrasy','simple','Stol çyrasy',NULL,0.0000,0.0000,0.0000,77.6000,4.0000,77.6000,4.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": 8}',NULL,8,2,NULL,'2023-05-26 02:20:35','2023-06-17 15:00:20',NULL,''),(5,3,'Stol-cyrasy','simple','Stol çyrasy',NULL,0.0000,0.0000,0.0000,77.6000,4.0000,232.8000,12.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 3, \"product_id\": 15}',NULL,8,2,NULL,'2023-05-26 02:20:53','2023-06-17 15:00:20',NULL,''),(6,2,'hyz1','simple','Odekolonyň etiketkasy',NULL,0.0000,0.0000,0.0000,3.8800,0.2000,7.7600,0.4000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 2, \"product_id\": \"40\"}',NULL,40,3,NULL,'2023-06-14 14:07:22','2023-07-12 13:15:08',NULL,''),(7,1,'SpotC','simple','Spot Cata FOÇA CT-5423',NULL,0.0000,0.0000,0.0000,25.2200,1.3000,25.2200,1.3000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"12\"}',NULL,12,3,NULL,'2023-06-16 00:25:10','2023-07-12 13:15:08',NULL,''),(8,1,'san3','simple','Amerikanka 32(daşky rezbaly)',NULL,0.0000,0.0000,0.0000,17.0720,0.8800,17.0720,0.8800,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"15\"}',NULL,15,3,NULL,'2023-06-16 16:07:31','2023-07-12 13:15:08',NULL,''),(9,1,'Spiral','simple','Spiral lampa TM POWER 40W',NULL,0.0000,0.0000,0.0000,48.5000,2.5000,48.5000,2.5000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"10\"}',NULL,10,3,NULL,'2023-06-16 16:07:38','2023-07-12 13:15:08',NULL,''),(10,2,'IKEA','simple','IKEA Ak LED çyra E14',NULL,0.0000,0.0000,0.0000,194.0000,10.0000,388.0000,20.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 2, \"product_id\": \"4\"}',NULL,4,3,NULL,'2023-06-16 16:25:20','2023-07-12 13:15:08',NULL,''),(11,3,'SpotC','simple','Spot Cata FOÇA CT-5423',NULL,0.0000,0.0000,0.0000,25.2200,1.3000,75.6600,3.9000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 3, \"product_id\": 12}',NULL,12,2,NULL,'2023-06-17 15:00:20','2023-06-17 15:00:20',NULL,''),(13,1,'myn1','simple','FLEKSSIT: Bello ofis mebel toplumy',NULL,0.0000,0.0000,0.0000,36084.0000,1860.0000,36084.0000,1860.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"39\"}',NULL,39,3,NULL,'2023-06-27 20:01:03','2023-07-12 13:15:08',NULL,''),(14,1,'Bezeg-spot','simple','Bezeg spot',NULL,0.0000,0.0000,0.0000,29.1000,1.5000,29.1000,1.5000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"11\"}',NULL,11,3,NULL,'2023-06-27 20:01:13','2023-07-12 13:15:08',NULL,''),(15,1,'wan2','simple','Duş stoýka QAYO',NULL,0.0000,0.0000,0.0000,1008.8000,52.0000,1008.8000,52.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"22\"}',NULL,22,3,NULL,'2023-07-08 17:16:45','2023-07-12 13:15:08',NULL,''),(16,1,'mix3','simple','English home towşanjyk we ýorgan, 2\'li toplum',NULL,0.0000,0.0000,0.0000,679.0000,35.0000,679.0000,35.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"37\"}',NULL,37,3,NULL,'2023-07-08 17:20:03','2023-07-12 13:15:08',NULL,''),(17,1,'Ledasd','simple','Led 4505W 2ýyl kepillik',NULL,0.0000,0.0000,0.0000,9.7000,0.5000,9.7000,0.5000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quantity\": 1, \"product_id\": \"9\"}',NULL,9,3,NULL,'2023-07-12 13:15:08','2023-07-12 13:15:08',NULL,''),(18,1,'tek3','simple','Bridgestone 245/40R19',NULL,0.0000,0.0000,0.0000,4850.0000,250.0000,4850.0000,250.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'{\"quant
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) 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) 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=3 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 (1,'cash100',NULL,1,'2023-05-26 02:15:15','2023-05-26 02:15:15',NULL),(2,'cash100',NULL,2,'2023-05-26 02:21:37','2023-05-26 02:21:37',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 */;
|
|||
|
|
INSERT INTO `cart_rule_channels` VALUES (1,1);
|
|||
|
|
/*!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 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 `cart_rule_coupon_usage`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_coupon_usage` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupon_usage` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_rule_coupon_usage` VALUES (1,1,1,1);
|
|||
|
|
/*!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) 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 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 `cart_rule_coupons`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_coupons` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_coupons` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_rule_coupons` VALUES (1,'secgiShop',0,0,1,0,1,NULL,1,'2023-05-26 02:16:42','2023-05-26 02:18:33');
|
|||
|
|
/*!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 */;
|
|||
|
|
INSERT INTO `cart_rule_customer_groups` VALUES (1,1),(1,2),(1,3);
|
|||
|
|
/*!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 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 `cart_rule_customers`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rule_customers` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rule_customers` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_rule_customers` VALUES (1,1,1,1);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) 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) 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) 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 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 `cart_rules`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `cart_rules` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `cart_rules` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `cart_rules` VALUES (1,'Bayramcylyk Kupony','',NULL,NULL,1,1,0,0,0,1,1,NULL,0,0,'by_fixed',20.0000,0,'0',0,0,0,'2023-05-26 02:16:42','2023-05-26 02:18:33');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`carrier_title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_description` varchar(191) 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=5 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 (1,'pickup','Pickup','pickup_pickup','Pickup','Pickup from address',0,0,3,'2023-05-26 02:14:41','2023-05-26 02:14:41',0.0000,0.0000,0),(2,'courier','Courier','courier_courier','Courier','Courier Shipping',0,0,3,'2023-05-26 02:14:41','2023-05-26 02:18:33',0.0000,0.0000,0),(3,'flatrate','Flat Rate','flatrate_flatrate','Flat Rate','Flat Rate Shipping',776,40,3,'2023-05-26 02:14:41','2023-05-26 02:14:41',0.0000,0.0000,1),(4,'free','Free Shipping','free_free','Free Shipping','Free Shipping',0,0,3,'2023-05-26 02:14:41','2023-05-26 02:14:41',0.0000,0.0000,1);
|
|||
|
|
/*!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) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) 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) 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) 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) COLLATE utf8mb4_unicode_ci DEFAULT 'products_and_description',
|
|||
|
|
`category_icon_path` text 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=16 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,42,NULL,'2023-05-17 03:43:54','2023-05-17 03:43:54','products_and_description',NULL,NULL),(2,1,'category/2/aq6tZbHoH6yi2sKQOnAabMmjAbdmWKKMoBLQDo9n.png',1,14,23,1,'2023-05-23 15:16:33','2023-05-23 15:23:30','products_and_description','velocity/category_icon_path/2/5njlp8f9BQbYi7IuO4fUKjEWwJ8dsUrCbFrTi5Ub.png',NULL),(3,1,'category/3/LfOaiHh6sXPpgwgIaoDXJ9nxjJ3RN8gcOD0ZJpKh.png',1,17,18,2,'2023-05-23 15:24:17','2023-07-11 17:22:44','products_and_description','velocity/category_icon_path/3/lFQePjTyMmwtRLN5o5Slup8oT2NZiZOsYSqcFW8G.png',NULL),(4,1,'category/4/2jiAkvpGi6OaxisHcBefNw6xfZoJGpY9oOu15HDp.png',1,15,16,2,'2023-05-23 15:24:42','2023-07-11 17:22:44','products_and_description','velocity/category_icon_path/4/Vv6tBOCViVc1JZ4Y9sVMO6HkaSx9DscvzkWkRGk9.png',NULL),(5,1,'category/5/0ao77oPfhbWF4X5aSW41C8NVrags8j9z94sYYQ4n.png',1,19,20,2,'2023-05-24 17:11:46','2023-07-11 17:22:44','products_and_description','velocity/category_icon_path/5/vTCkcrGEqXusJrdAD0mFcf044MxHM0C8MINBFv7D.png',NULL),(6,1,'category/6/v3egF6nDAAHr9kLY38ozeK4aAmOCXfEl70IDpQcz.png',1,21,22,2,'2023-05-24 17:23:33','2023-07-11 17:22:44','products_and_description','velocity/category_icon_path/6/H9hZaW5JvIMH6iyarx7mG7LOE50BaM25l8djxqhn.png',NULL),(7,1,'category/7/9DHJWsuDE8kqSaDTIg5PwX8cSHhgeyzNoxFC9zbp.png',1,24,29,1,'2023-05-25 22:47:08','2023-05-26 00:13:00','products_and_description','velocity/category_icon_path/7/Fcin6LZJufEzQcRTKw5UCxrKC2SsokFU1fnnUyM2.png',NULL),(8,1,'category/8/2uJejCg4xZ4wbSy6B3DvUFyIEfYuvl04IJ5R3ijS.png',1,25,26,7,'2023-05-25 22:47:36','2023-07-11 17:22:15','products_and_description','velocity/category_icon_path/8/sLQsYMZdWttB8iB626jTFXzn3HOoIoo6gMbw8Ikv.png',NULL),(9,2,'category/9/pHvb89tHTkzakvlT047Ac40Or1XuLOJjCMnTbeyO.png',1,27,28,7,'2023-05-25 22:47:53','2023-07-11 17:22:15','products_and_description','velocity/category_icon_path/9/RV64thhcpWeRMWJLHPeDsUYlaogaAsbnHU5f5im6.png',NULL),(10,2,'category/10/2wIZhJCRipa9Wq4MawozMzF69WDhPw5sHqkzv4Bh.png',1,30,33,1,'2023-05-25 23:05:18','2023-05-26 00:12:09','products_and_description','velocity/category_icon_path/10/8ujJ3SUrUnN4iw8iOX7auv3QUglvIWtJjUeBHKXK.png',NULL),(11,2,'category/11/ELb1anJE2bu9XGanGlqI3M66PWopV7BcXepIH4wI.png',1,31,32,10,'2023-05-25 23:06:48','2023-07-11 17:21:49','products_and_description','velocity/category_icon_path/11/ftiUTOo2dVkKp3jqJ3RpYib5xbvfAYa1wfrcabIL.png',NULL),(12,1,'category/12/jXvmtdfC9yiOlV5aemDKFGLVyIJ00jhXvCsjgMuf.png',1,34,37,1,'2023-05-25 23:16:25','2023-05-26 00:11:14','products_and_description','velocity/category_icon_path/12/naFoe7T0LaIpo6hWLgNNRu6Gq44BvthH74uTjEvi.png',NULL),(13,2,'category/13/ddNGedgFixsAyLzlQg41N6z0kOcQR5128Noa92NC.png',1,35,36,12,'2023-05-25 23:16:47','2023-07-11 17:21:40','products_and_description','velocity/category_icon_path/13/NLGvP9zwE7iAjsmjMaMOyqCcUbHTBBtqLmpBNKph.png',NULL),(14,2,'category/14/0w2iSZ0gg97QGGDtOMjzSOYEbNVK2Rku2ygF2OeS.png',1,38,41,1,'2023-05-25 23:19:06','2023-05-26 00:09:42','products_and_description','velocity/category_icon_path/14/EDQU6JlMd7sX2qyLRNfWRq7lWRU2jfoPEVVujqMg.png',NULL),(15,2,'category/15/Lm5NYol7DrtV0RwscWKK1xVGC2zRGFMrYF7niOgR.png',1,39,40,14,'2023-05-25 23:19:26','2023-07-11 17:21:26','products_and_description','velocity/category_icon_path/15/k4TsDEpNM86bOArzLtKNUZizpBPAVJggeFmLTWGi.png',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),(5,11),(6,11),(7,11),(8,11),(9,11),(10,11),(11,11),(12,11),(13,11),(14,11),(15,11),(15,28),(14,28),(13,28),(12,28),(11,28),(10,28),(9,28),(8,28),(7,28),(6,28),(5,28),(4,28),(3,28),(2,28);
|
|||
|
|
/*!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 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`category_id` int unsigned NOT NULL,
|
|||
|
|
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`locale_id` int unsigned DEFAULT NULL,
|
|||
|
|
`url_path` varchar(2048) 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=34 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,'Gurluşyk we remont','gurlusyk-we-remont','<p>Gurluşyk we remont</p>',NULL,NULL,NULL,2,'tm',1,'gurlusyk-we-remont'),(7,'Gurluşyk we remont','gurlusyk-we-remont','<p>Gurluşyk we remont</p>',NULL,NULL,NULL,2,'ru',2,'gurlusyk-we-remont'),(8,'Akylly öý we howpsuzlyk','akylly-oy-we-howpsuzlyk','<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 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-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-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; border-radius: 0px !important; --tw-bg-opacity: 1 !important; padding: 0rem !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/55\">Akylly öý we howpsuzlyk</a></p>',NULL,NULL,NULL,3,'tm',1,'gurlusyk-we-remont/akylly-oy-we-howpsuzlyk'),(9,'Akylly öý we howpsuzlyk','akylly-oy-we-howpsuzlyk','<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 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-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-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:
|
|||
|
|
/*!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);
|
|||
|
|
/*!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);
|
|||
|
|
/*!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,1);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`home_page_content` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`footer_content` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`maintenance_mode_text` text 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=6 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 (4,1,'tm','Sechgi','','<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://localhost:8000/themes/default/assets/images/1.webp\" data-src=\"http://localhost:8000/themes/default/assets/images/1.webp\" class=\"lazyload\" alt=\"test\" width=\"720\" height=\"720\" /></div>\r\n<div class=\"right-banner\"><img src=\"http://localhost:8000/themes/default/assets/images/2.webp\" data-src=\"http://localhost:8000/themes/default/assets/images/2.webp\" class=\"lazyload\" alt=\"test\" width=\"460\" height=\"330\" /> <img src=\"http://localhost:8000/themes/default/assets/images/3.webp\" data-src=\"http://localhost:8000/themes/default/assets/images/3.webp\" class=\"lazyload\" alt=\"test\" width=\"460\" height=\"330\" /></div>\r\n</div>','<div class=\"list-container\"><span class=\"list-heading\">Quick Links</span>\r\n<ul class=\"list-group\">\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'about-us\') @endphp\">About Us</a></li>\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'return-policy\') @endphp\">Return Policy</a></li>\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'refund-policy\') @endphp\">Refund Policy</a></li>\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'terms-conditions\') @endphp\">Terms and conditions</a></li>\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'terms-of-use\') @endphp\">Terms of Use</a></li>\r\n<li><a href=\"http://216.250.10.230:8081/@php echo route(\'shop.cms.page\', \'contact-us\') @endphp\">Contact Us</a></li>\r\n</ul>\r\n</div>\r\n<div class=\"list-container\"><span class=\"list-heading\">Connect With Us</span>\r\n<ul class=\"list-group\">\r\n<li><a href=\"#\"><span class=\"icon icon-facebook\"></span>Facebook </a></li>\r\n<li><a href=\"#\"><span class=\"icon icon-twitter\"></span> Twitter </a></li>\r\n<li><a href=\"#\"><span class=\"icon icon-instagram\"></span> Instagram </a></li>\r\n<li><a href=\"#\"> <span class=\"icon icon-google-plus\"></span>Google+ </a></li>\r\n<li><a href=\"#\"> <span class=\"icon icon-linkedin\"></span>LinkedIn </a></li>\r\n</ul>\r\n</div>','','{\"meta_title\": \"Sechgi store\", \"meta_keywords\": \"Sechgi store meta keyword\", \"meta_description\": \"Sechgi store meta description\"}',NULL,'2023-05-17 03:47:39');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`timezone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`theme` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`hostname` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`favicon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_maintenance_on` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`allowed_ips` text 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,'sechgi',NULL,'default','http://216.250.10.230:8081',NULL,NULL,0,'',1,1,NULL,'2023-05-17 03:47:39',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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`url_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`html_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) 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) 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-05-17 03:43:55','2023-05-17 03:43:55'),(2,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(3,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(4,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(5,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(6,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(7,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(8,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(9,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(10,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(11,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`channel_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`locale_code` varchar(191) 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=25 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-05-17 03:43:55','2023-05-17 03:43:55'),(2,'emails.general.notifications.emails.general.notifications.verification','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(3,'emails.general.notifications.emails.general.notifications.registration','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(4,'emails.general.notifications.emails.general.notifications.customer','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(5,'emails.general.notifications.emails.general.notifications.new-order','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(6,'emails.general.notifications.emails.general.notifications.new-admin','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(7,'emails.general.notifications.emails.general.notifications.new-invoice','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(8,'emails.general.notifications.emails.general.notifications.new-refund','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(9,'emails.general.notifications.emails.general.notifications.new-shipment','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(10,'emails.general.notifications.emails.general.notifications.new-inventory-source','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(11,'emails.general.notifications.emails.general.notifications.cancel-order','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(12,'catalog.products.homepage.out_of_stock_items','1',NULL,NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(13,'customer.settings.social_login.enable_facebook','1','default',NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(14,'customer.settings.social_login.enable_twitter','1','default',NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(15,'customer.settings.social_login.enable_google','1','default',NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(16,'customer.settings.social_login.enable_linkedin','1','default',NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(17,'customer.settings.social_login.enable_github','1','default',NULL,'2023-05-17 03:43:55','2023-05-17 03:43:55'),(18,'general.content.shop.compare_option','0','sechgi','tm','2023-05-26 00:37:03','2023-05-26 00:37:03'),(19,'general.content.shop.wishlist_option','0','sechgi','tm','2023-05-26 00:37:03','2023-05-26 00:37:03'),(20,'general.content.shop.image_search','0','sechgi','tm','2023-05-26 00:37:03','2023-05-26 00:37:13'),(21,'general.content.footer.footer_content','','sechgi','tm','2023-05-26 00:37:03','2023-05-26 00:37:03'),(22,'general.content.footer.footer_toggle','0','sechgi','tm','2023-05-26 00:37:03','2023-05-26 00:37:03'),(23,'general.content.custom_scripts.custom_css','','sechgi',NULL,'2023-05-26 00:37:03','2023-05-26 00:37:03'),(24,'general.content.custom_scripts.custom_javascript','','sechgi',NULL,'2023-05-26 00:37:03','2023-05-26 00:37:03');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`default_name` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`default_name` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` text 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`symbol` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
PRIMARY KEY (`id`)
|
|||
|
|
) 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 `currencies`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `currencies` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `currencies` VALUES (1,'TMT','Manat',NULL,NULL,'TMT'),(3,'USD','USD','2023-05-24 16:54:44','2023-05-24 16:54:44','$');
|
|||
|
|
/*!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 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 `currency_exchange_rates`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `currency_exchange_rates` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `currency_exchange_rates` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `currency_exchange_rates` VALUES (1,19.400000000000,1,'2023-05-24 16:56:04','2023-05-24 16:56:04');
|
|||
|
|
/*!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) 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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`provider_id` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`gender` varchar(50) 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) 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) 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) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`phone` varchar(191) 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=4 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,'Shohrat','Annamyradow',NULL,NULL,NULL,NULL,1,'$2y$10$o4I48W9P8YVTbSbgJP0he.h0TvsLty5coRi3w48N3l0vuK0Zlifkq',NULL,2,0,NULL,'2023-05-26 02:01:37','2023-05-26 02:01:37',1,0,NULL,NULL,'65809786'),(2,'test name','test name','',NULL,NULL,NULL,1,'$2y$10$HCw3ws90XnMfVJR2ebYgPeziAF8p0Q7q1CnRCUogh16RNjwJ7V1HC',NULL,2,0,NULL,'2023-06-07 20:35:47','2023-06-07 20:35:47',1,0,NULL,NULL,'65656565'),(3,'asdasd','asdasd','',NULL,NULL,NULL,1,'$2y$10$/NBeKs6jJ/v5RlDDwaCeau9OO1bW722LTf5w/Nfb7bhO8/73NhhZe',NULL,2,0,NULL,'2023-07-12 13:42:08','2023-07-12 13:42:08',1,0,NULL,NULL,'54545454');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`download_bought` int NOT NULL DEFAULT '0',
|
|||
|
|
`download_used` int NOT NULL DEFAULT '0',
|
|||
|
|
`status` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`exception` longtext 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`contact_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`contact_fax` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`state` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`street` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`postcode` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) 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) 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 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 `invoice_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `invoice_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `invoice_items` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `invoice_items` VALUES (1,'Saturn cyrasy',NULL,'Saturn-cyrasy',2,29.1000,1.5000,58.2000,3.0000,0.0000,0.0000,7,'Webkul\\Product\\Models\\Product',1,1,NULL,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 7}','2023-05-26 02:19:38','2023-05-26 02:19:38',0.0000,58.2000,3.0000),(2,'Pol çyrasy',NULL,'Pol-cyrasy',2,1067.0000,55.0000,2134.0000,110.0000,0.0000,0.0000,6,'Webkul\\Product\\Models\\Product',2,1,NULL,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 6}','2023-05-26 02:19:38','2023-05-26 02:19:38',0.0000,776.0000,40.0000);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) 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) 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 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 `invoices`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `invoices` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `invoices` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `invoices` VALUES (1,NULL,'paid',0,4,'USD','TMT','TMT',2192.2000,113.0000,1358.0000,70.0000,0.0000,0.0000,0.0000,0.0000,834.2000,43.0000,1,5,'2023-05-26 02:19:38','2023-05-26 02:19:38',NULL,0,NULL);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`payload` longtext 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|||
|
|
`direction` enum('ltr','rtl') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ltr',
|
|||
|
|
`locale_image` text 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 (1,'tm','Türkmençe',NULL,NULL,'ltr',NULL),(2,'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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`mail_to` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`spooling` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` text 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`content` text 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) 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 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 */;
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_withdrawal_requested` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`seller_payout_status` varchar(191) 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 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 */;
|
|||
|
|
/*!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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`reason` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`price` double NOT NULL DEFAULT '0',
|
|||
|
|
`description` text 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 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 */;
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) 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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`reason` text 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 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`status` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_approved` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`shop_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`banner` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`tax_vat` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`meta_title` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`address1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`address2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`postcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`return_policy` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`shipping_policy` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`privacy_policy` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`twitter` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`facebook` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`instagram` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`skype` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`linked_in` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`pinterest` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
|
|||
|
|
`min_order_amount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`google_analytics_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`profile_background` varchar(191) 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 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 */;
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`comment` text 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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sample_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_type` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) 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) 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=2 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',1,1,'2023-05-26 02:18:33','2023-05-26 02:18:51');
|
|||
|
|
/*!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=3 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 (1,1,1,7,NULL,'2023-05-26 02:18:33','2023-05-26 02:18:33'),(2,1,2,6,NULL,'2023-05-26 02:18:33','2023-05-26 02:18:33');
|
|||
|
|
/*!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 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) 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) 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=3 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,'Saturn-cyrasy','simple','Saturn cyrasy',NULL,0.0000,0.0000,2,2,2,0,0,29.1000,1.5000,58.2000,3.0000,58.2000,3.0000,0.0000,0.0000,0.0000,58.2000,3.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,7,'Webkul\\Product\\Models\\Product',1,NULL,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 7}','2023-05-26 02:18:33','2023-05-26 02:19:38'),(2,'Pol-cyrasy','simple','Pol çyrasy',NULL,0.0000,0.0000,2,2,2,0,0,1067.0000,55.0000,2134.0000,110.0000,2134.0000,110.0000,0.0000,0.0000,0.0000,776.0000,40.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\\Product\\Models\\Product',1,NULL,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 6}','2023-05-26 02:18:33','2023-05-26 02:19:38');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`method_title` varchar(191) 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=2 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,'cash100',NULL,1,NULL,'2023-05-26 02:18:33','2023-05-26 02:18:33');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`payment_method` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`is_guest` tinyint(1) DEFAULT NULL,
|
|||
|
|
`customer_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_company_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`customer_vat_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`shipping_description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`coupon_code` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_id` int unsigned DEFAULT NULL,
|
|||
|
|
`channel_type` varchar(191) 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) 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=2 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','completed','Sechgi',0,NULL,'Shohrat','Annamyradow',NULL,NULL,'courier_courier','Courier - Courier','Courier Shipping','secgiShop',0,2,4,'USD','TMT','TMT',1358.0000,70.0000,1358.0000,70.0000,0.0000,0.0000,2192.2000,113.0000,2192.2000,113.0000,0.0000,0.0000,0.0000,834.2000,43.0000,834.2000,43.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,'Webkul\\Customer\\Models\\Customer',1,'Webkul\\Core\\Models\\Channel','2023-05-26 02:18:33','2023-05-26 02:19:38',1,'1',0.0000,0.0000);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(191) 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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`tokenable_id` bigint unsigned NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`abilities` text 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=14 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 (5,'Webkul\\Customer\\Models\\Customer',1,'iPhone SE','94f451ba6ab2aab5acb343adbf5ec299fe28a6dc21649caf002995c6bd4fdd96','[\"role:customer\"]','2023-06-17 15:00:20','2023-06-17 14:59:33','2023-06-17 15:00:20'),(12,'Webkul\\Customer\\Models\\Customer',2,'AndroidAndroid SDK built for x86','45a66f588d32ab4ffe19ae164bbc853447778c66edf4f970fdcb0549cd7fec5c','[\"role:customer\"]','2023-07-12 13:41:23','2023-07-12 13:41:23','2023-07-12 13:41:23'),(13,'Webkul\\Customer\\Models\\Customer',3,'AndroidAndroid SDK built for x86','1b7c1977e4f77d4ec9bc4adc711f6014d4b46018e391c7fb05f424554b5522f2','[\"role:customer\"]','2023-07-12 13:45:23','2023-07-12 13:42:08','2023-07-12 13:45:23');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`text_value` text 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=1003 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 (53,'tm','sechgi','Akylly LED lampa Yeelight 1S (Color) global wersiýa',NULL,NULL,NULL,NULL,NULL,NULL,3,9),(54,'tm','sechgi','Akylly LED lampa Yeelight 1S (Color) global wersiýa',NULL,NULL,NULL,NULL,NULL,NULL,3,10),(55,NULL,NULL,'Electshop',NULL,NULL,NULL,NULL,NULL,NULL,3,1),(56,'tm','sechgi','Electshop',NULL,NULL,NULL,NULL,NULL,NULL,3,2),(57,NULL,NULL,'electshop',NULL,NULL,NULL,NULL,NULL,NULL,3,3),(58,NULL,'sechgi',NULL,NULL,0,NULL,NULL,NULL,NULL,3,4),(59,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,3,5),(60,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,3,6),(61,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,3,7),(62,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,3,8),(63,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,3,26),(64,NULL,NULL,'ELCT_11055',NULL,NULL,NULL,NULL,NULL,NULL,3,27),(65,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,3,16),(66,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,3,17),(67,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,3,18),(68,NULL,NULL,NULL,NULL,NULL,17.2600,NULL,NULL,NULL,3,11),(69,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,12),(70,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,13),(71,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,14),(72,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,15),(73,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,3,19),(74,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,3,20),(75,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,3,21),(76,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,3,22),(77,'tm','sechgi','IKEA Ak LED çyra E14',NULL,NULL,NULL,NULL,NULL,NULL,4,9),(78,'tm','sechgi','IKEA Ak LED çyra E14',NULL,NULL,NULL,NULL,NULL,NULL,4,10),(79,NULL,NULL,'IKEA',NULL,NULL,NULL,NULL,NULL,NULL,4,1),(80,'tm','sechgi','IKEA Ak LED çyra E14',NULL,NULL,NULL,NULL,NULL,NULL,4,2),(81,NULL,NULL,'ikea-ak-led-cyra-e14',NULL,NULL,NULL,NULL,NULL,NULL,4,3),(82,NULL,'sechgi',NULL,NULL,0,NULL,NULL,NULL,NULL,4,4),(83,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,4,5),(84,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,4,6),(85,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,4,7),(86,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,4,8),(87,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,4,26),(88,NULL,NULL,'IKEA Ak LED çyra E14',NULL,NULL,NULL,NULL,NULL,NULL,4,27),(89,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,4,16),(90,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,4,17),(91,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,4,18),(92,NULL,NULL,NULL,NULL,NULL,10.0000,NULL,NULL,NULL,4,11),(93,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,12),(94,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,13),(95,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,14),(96,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,15),(97,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,4,19),(98,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,4,20),(99,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,4,21),(100,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,4,22),(101,'tm','sechgi','Otag yşyklandyryş çyrasy',NULL,NULL,NULL,NULL,NULL,NULL,5,9),(102,'tm','sechgi','Otag yşyklandyryş çyrasy',NULL,NULL,NULL,NULL,NULL,NULL,5,10),(103,NULL,NULL,'yshsyklandyrysh',NULL,NULL,NULL,NULL,NULL,NULL,5,1),(104,'tm','sechgi','Otag yşyklandyryş çyrasy',NULL,NULL,NULL,NULL,NULL,NULL,5,2),(105,NULL,NULL,'otag-ysyklandyrys-cyrasy',NULL,NULL,NULL,NULL,NULL,NULL,5,3),(106,NULL,'sechgi',NULL,NULL,0,NULL,NULL,NULL,NULL,5,4),(107,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,5,5),(108,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,5,6),(109,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,5,7),(110,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,5,8),(111,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,5,26),(112,NULL,NULL,'Otag yşyklandyryş çyrasy',NULL,NULL,NULL,NULL,NULL,NULL,5,27),(113,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,5,16),(114,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,5,17),(115,'tm','sechgi','',NULL,NULL,NULL,NULL,NULL,NULL,5,18),(116,NULL,NULL,NULL,NULL,NULL,51.0000,NULL,NULL,NULL,5,11),(117,NULL,'sechgi',NULL,NULL,NULL,NULL,NULL,NULL,NULL,5,12),(118,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,5,13),(119,NULL,'sechgi',NULL,NULL,NUL
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`label` text 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) 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 (3,2),(3,3),(4,2),(4,4),(5,2),(5,3),(5,4),(8,4),(9,2),(9,3),(9,4),(10,2),(10,4),(12,2),(12,4),(13,2),(13,5),(14,2),(14,5),(15,2),(15,5),(16,2),(16,5),(17,2),(17,5),(18,2),(18,5),(19,2),(19,5),(20,2),(20,5),(21,2),(21,6),(22,2),(22,6),(23,2),(23,6),(24,2),(24,6),(25,2),(25,6),(26,2),(26,6),(27,7),(27,9),(28,7),(28,9),(29,7),(29,9),(30,7),(30,9),(31,7),(31,8),(32,7),(32,8),(33,7),(33,8),(34,7),(34,8),(35,10),(35,11),(36,10),(36,11),(37,10),(37,11),(38,10),(38,11),(39,12),(39,13),(40,14),(40,15);
|
|||
|
|
/*!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) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
|
|||
|
|
`sample_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sample_type` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`title` text 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`type` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`product_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`url_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`new` tinyint(1) DEFAULT NULL,
|
|||
|
|
`featured` tinyint(1) DEFAULT NULL,
|
|||
|
|
`status` tinyint(1) DEFAULT NULL,
|
|||
|
|
`thumbnail` varchar(191) 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,
|
|||
|
|
`created_at` datetime DEFAULT NULL,
|
|||
|
|
`locale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel` varchar(191) 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 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_title` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_keywords` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`meta_description` text 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,
|
|||
|
|
`brands` int DEFAULT NULL,
|
|||
|
|
`brands_label` varchar(191) COLLATE utf8mb4_unicode_ci 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=41 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 (3,'Electshop','ELCT_11055','Electshop','Akylly LED lampa Yeelight 1S (Color) global wersiýa','electshop',1,1,1,NULL,17.2600,NULL,NULL,NULL,NULL,0.0000,'2023-05-23 15:56:16','tm','sechgi',3,'2023-05-23 15:56:16',NULL,0,17.2600,17.2600,'Akylly LED lampa Yeelight 1S (Color) global wersiýa','','','',0.0000,0.0000,NULL,NULL,14,'Nepis Oy'),(4,'IKEA','IKEA Ak LED çyra E14','IKEA Ak LED çyra E14','IKEA Ak LED çyra E14','ikea-ak-led-cyra-e14',1,0,1,NULL,10.0000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 16:53:02','tm','sechgi',4,'2023-05-24 16:53:02',NULL,1,10.0000,10.0000,'IKEA Ak LED çyra E14','','','',0.0000,0.0000,NULL,NULL,13,'Ineco'),(5,'yshsyklandyrysh','Otag yşyklandyryş çyrasy','Otag yşyklandyryş çyrasy','Otag yşyklandyryş çyrasy','otag-ysyklandyrys-cyrasy',1,1,1,NULL,51.0000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 16:56:35','tm','sechgi',5,'2023-05-24 16:56:35',NULL,1,51.0000,51.0000,'Otag yşyklandyryş çyrasy','','','',0.0000,0.0000,NULL,NULL,12,'Bezeg'),(6,'Pol-cyrasy','','Pol çyrasy','Pol çyrasy','pol-cyrasy',1,1,1,NULL,55.0000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 16:57:45','tm','sechgi',6,'2023-05-24 16:57:45',NULL,1,55.0000,55.0000,'Pol çyrasy','','','',0.0000,0.0000,NULL,NULL,13,'Ineco'),(7,'Saturn-cyrasy','Saturn cyrasy','Saturn cyrasy','Saturn cyrasy','saturn-cyrasy',1,0,1,NULL,1.5000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 16:58:47','tm','sechgi',7,'2023-05-24 16:58:47',NULL,1,1.5000,1.5000,'Saturn cyrasy','','','',0.0000,0.0000,NULL,NULL,16,'Demir At'),(8,'Stol-cyrasy','','Stol çyrasy','Stol çyrasy','stol-cyrasy',1,1,1,NULL,4.0000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 16:59:49','tm','sechgi',8,'2023-05-24 16:59:49',NULL,0,4.0000,4.0000,'Stol çyrasy','','','',0.0000,0.0000,NULL,NULL,13,'Ineco'),(9,'Ledasd','Led 4505W 2ýyl kepillik','Led 4505W 2ýyl kepillik','Led 4505W 2ýyl kepillik','led-4505w-2yyl-kepillik',1,1,1,NULL,0.5000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:02:05','tm','sechgi',9,'2023-05-24 17:02:05',NULL,1,0.5000,0.5000,'Led 4505W 2ýyl kepillik','','','',0.0000,0.0000,NULL,NULL,15,'Balam'),(10,'Spiral','Spiral lampa TM POWER 40W','Spiral lampa TM POWER 40W','Spiral lampa TM POWER 40W','spiral-lampa-tm-power-40w',1,1,1,NULL,2.5000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:04:29','tm','sechgi',10,'2023-05-24 17:04:29',NULL,1,2.5000,2.5000,'Spiral lampa TM POWER 40W','','','',0.0000,0.0000,NULL,NULL,14,'Nepis Oy'),(11,'Bezeg-spot','','Bezeg spot','Bezeg spot','bezeg-spot',1,0,1,NULL,1.5000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:05:59','tm','sechgi',11,'2023-05-24 17:05:59',NULL,1,1.5000,1.5000,'Bezeg spot','','','',0.0000,0.0000,NULL,NULL,11,'Akhunji'),(12,'SpotC','Spot Cata FOÇA CT-5423','Spot Cata FOÇA CT-5423','Особенности продукта \r\n\r\nГу10\r\nКласс защиты IP20\r\nБелый цвет кузова\r\n5,5 см диаметр\r\n10,8 см высота\r\nЛампа не включена','spot-cata-foca-ct-5423',1,1,1,NULL,1.3000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:07:20','tm','sechgi',12,'2023-05-24 17:07:20',NULL,1,1.3000,1.3000,'Особенности продукта \r\n\r\nГу10\r\nКласс защиты IP20\r\nБелый цвет кузова\r\n5,5 см диаметр\r\n10,8 см высота\r\nЛампа не включена','','','',0.0000,0.0000,NULL,NULL,12,'Bezeg'),(13,'san','','Amerikanka 20 (daşky rezba)','Amerikanka 20 (daşky rezba)','amerikanka-20-dasky-rezba',1,1,1,NULL,0.6000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:12:24','tm','sechgi',13,'2023-05-24 17:12:24',NULL,0,0.6000,0.6000,'Amerikanka 20 (daşky rezba)','','','',0.0000,0.0000,NULL,NULL,15,'Balam'),(14,'san2','Amerikanka 25(içki rezba)','Amerikanka 25(içki rezba)','Amerikanka 25(içki rezba)','amerikanka-25icki-rezba',1,1,1,NULL,0.7000,NULL,NULL,NULL,NULL,0.0000,'2023-05-24 17:13:19','tm','sechgi',14,'2023-05-24 17:13:19',NULL,1,0.7000,0.7000,'Amerikanka 25(içki rezba)','','','',0.0000,0.0000,NULL,NULL,14,'Nepis Oy'),(15,'san3','','Amerikanka 32(daşky rezbaly)','Amerikanka 32(daşky rezbaly)','amerikanka-32
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) 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=73 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 (2,'images','product/3/Osgl1xmKhtI8oXV4UINMjtPasStmGTS0THS7plEH.jpg',3,0),(3,'images','product/3/0mqKxc7hPV2c6UAr77rz6QzyzgUycYPjoPwa2Slr.jpg',3,1),(4,'images','product/3/mRN6I8YkFwd7WjfCpX19NlWfgPmmT4qTI02Q5S26.jpg',3,2),(5,'images','product/3/nbKnl7zlf2PSPJ9GzZcDFQ9leP9tIzD4Z93eeSq8.jpg',3,3),(6,'images','product/4/6qVIlvWxR2oosHhqXtxYEG6UK6yJElwEFRJvFpVM.jpg',4,0),(7,'images','product/5/3cszYgbHfQEVDSMlcAZdAFmXy7z4uAvpC4JK6j3m.jpg',5,0),(8,'images','product/6/6Sg383OoNJLiEikMPrIgyOSaiTuPLcTrNuilEm40.jpg',6,0),(9,'images','product/6/iyarBwQdtjXQawRvHEU8aHHP2NZzUajqQ1UP4ctd.jpg',6,1),(10,'images','product/7/SAo1kG71Z7dbR7vs8HGBIFH1Vk38blozGJf5zYDC.jpg',7,0),(11,'images','product/8/wiyKMu9jqlE4ZJtc8Mpv1zTAhLVA3JrOrtRIB1YO.jpg',8,0),(12,'images','product/9/pfsKmdRI0IIJfCCu4oMxQ0J7ta8p1pZ4Ju4v5eXC.jpg',9,0),(13,'images','product/10/chkmsUYvWrHzX42eQns83NJdSZOyjhaAU0fVkABm.jpg',10,0),(14,'images','product/11/FDg8sFKaezicNeZU2vGo3VP6tuiu73SFvcltDpBK.jpg',11,0),(15,'images','product/12/sbFNDCCprQnlvI1tNS8HwbJhUrdleO8zLcR1B4xw.jpg',12,0),(16,'images','product/13/FERqZv0hAfoU2uOy5Gs3V91OKNRx3mU6v4CPMP3e.jpg',13,0),(17,'images','product/14/hQgyr9mwQRJdaBbzsQvD1i9IzCNxtTwYTppDH6ER.jpg',14,0),(18,'images','product/15/kUIVxzMo9rm8ZTrq9iCVdBZKQlsg6MBpk7ruxf2G.jpg',15,0),(19,'images','product/16/46M2EN5zdUFpmQflTqwzbRf5OsrkxW7ooz43M1Hh.jpg',16,0),(20,'images','product/17/5gdZNt7x3jgRyj7zHGLNmhxja8jO2zt1bwM2t4kp.jpg',17,0),(21,'images','product/18/fReBFnAIB37gbEWq8uDA6gN691zujqDk5TO1uBXx.jpg',18,0),(22,'images','product/19/xoURlWZZUzorXpDQb87tKDb7zdXJIOoN9vG5knEE.jpg',19,0),(23,'images','product/20/bVmj9G3opncflj3i2AoVdcV3udnbl2fz4srSSXrA.jpg',20,0),(24,'images','product/20/SP3iC2O5SiIiyhSYb3bKTo6IDCfdN4txFniaARgj.jpg',20,1),(25,'images','product/20/Y2vs8fHhsMCXjNVQDrBaAWav4usZTcUMesa9Y9Mf.jpg',20,2),(26,'images','product/21/Xm1h5uKd6zd39UOKcj8SeMbf0pwiSqlF5plOBBej.jpg',21,0),(27,'images','product/22/cO3kKVyDeDNXtw6xvihRkZc8SebAKLXTqqNk14R4.jpg',22,0),(28,'images','product/23/Gx99BEYrOoiPCa0PGqSuVfct5sNGN2SL2Ok3SCiF.jpg',23,0),(29,'images','product/23/LKswxC93Ys5d49sHt1qGzBwxRjndVDK19HkkdoSU.jpg',23,1),(30,'images','product/23/SLdgqw26Gcj5gVAAtGe76w3GSsVNUdqgPqkVw3k4.jpg',23,2),(31,'images','product/23/l8OY4C8nU1W4MmCdLaKlkDqwV8cCQ4GEh51xYZ7m.jpg',23,3),(32,'images','product/24/C0VP3VOwkT3dOQWcV3kaRwgWTgql7yhuMxKBwRvE.jpg',24,0),(33,'images','product/24/i6squ8N6qCe7uCLVhN6af8wCbOdhbVn6Sh4cgnbI.jpg',24,1),(34,'images','product/24/4fcoaXGzyFgVSAGjN04FWaDg0OBm8eX1obW9MOXO.jpg',24,2),(35,'images','product/24/yGp9nRHCDL2HrlyYJpR42l0ZLHZsHC818J2mHDY2.jpg',24,3),(36,'images','product/25/OmiosFT9T85xmcZYJCpdvdkF6y1CCm89oBuAHzdj.jpg',25,0),(37,'images','product/25/9v7RBHXeMOGmu5o8zgHA6lBoKpad5avG4pQJi36D.jpg',25,1),(38,'images','product/25/Z9DK9h0GQ08JPhcvIL6KozIeMHi5JBFcfA4ivb6n.jpg',25,2),(39,'images','product/25/1sDj4Ntr5Mjo37QnZjxlaoiRpGpUiSsMdNHrcKIa.jpg',25,3),(40,'images','product/25/TmkF0gtjwp5rqbNmwt1HzfJGc1gDVN6m43HjkOBx.jpg',25,4),(41,'images','product/26/Op35ZjEWIWnbwDeQ6Bzfmpnw8qhpMymIl0vDduHU.jpg',26,0),(42,'images','product/26/wU288ZI6YmOcyIHNja4IUcvEjWDFtUAsCiKO5AxY.jpg',26,1),(43,'images','product/26/IhCbftiwOj3G6Hhm8xr8f2DHAd91FjIDegC0UZGn.jpg',26,2),(44,'images','product/26/3p8LpojgTK502X0Akzdu8AFg5N0dC6gpaa1FWc7V.jpg',26,3),(45,'images','product/27/nzgh8UpHTfeW52SV24qenexUNmZHYoe6MTCp85Xh.jpg',27,0),(46,'images','product/28/xpEvGeGKfRjVT4mwx463Ek0WNsmneGj76RFwFpZG.jpg',28,0),(47,'images','product/29/ULYMe4HkOp9oLGhjDLP9pcuVuuTcmUjtMh8pOISX.jpg',29,0),(48,'images','product/30/HKVTLTZ1HZoBOwkdLPB8CJGqjQSlx2OTSfFOKjph.jpg',30,0),(49,'images','product/31/xuLJcAbnpbBHo3cAVJP3aUbMArLjDfntIOuH1HNg.jpg',31,0),(50,'images','product/32/ECerIyeQHx9ghOar5MZ8bfy4QtmqyMajzv8XbKQ4.jpg',32,0),(51,'images','product/33/6tncqx83bvOV0d1hMxydXUFhLRDttPWcLRRgqNrE.jpg',33,0),(52,'images','product/34/dtChRV6woHpJbYyFWmkNQkwJAsWP6wyxAjkzHI5U.jpg',34,0),(53,'images','product/35/nVvioe5EkAIi0PC9pzwQ6lV3XVOuqVJ6wSIIzpfm.jpg',35,0),(54,'images','product/35/xLGV6V6rIaIoZTJ6gjbOqgBiG2GYEAGZctc9GVrh.jpg',35,1),(55,'ima
|
|||
|
|
/*!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=41 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 (3,10,3,1,0),(4,10,4,1,0),(5,10,5,1,0),(6,8,6,1,0),(7,8,7,1,0),(8,10,8,1,0),(9,10,9,1,0),(10,100,10,1,0),(11,100,11,1,0),(12,10,12,1,0),(13,10,13,1,0),(14,210,14,1,0),(15,220,15,1,0),(16,110,16,1,0),(17,110,17,1,0),(18,110,18,1,0),(19,10,19,1,0),(20,110,20,1,0),(21,10,21,1,0),(22,10,22,1,0),(23,110,23,1,0),(24,10,24,1,0),(25,10,25,1,0),(26,10,26,1,0),(27,10,27,1,0),(28,23,28,1,0),(29,10,29,1,0),(30,10,30,1,0),(31,10,31,1,0),(32,10,32,1,0),(33,10,33,1,0),(34,10,34,1,0),(35,10,35,1,0),(36,20,36,1,0),(37,10,37,1,0),(38,20,38,1,0),(39,20,39,1,0),(40,1110,40,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=3 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 (1,0,7,1),(2,0,6,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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`rating` int NOT NULL,
|
|||
|
|
`comment` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`status` varchar(191) 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) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`path` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`type` varchar(191) 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=41 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 (3,'Electshop','simple','2023-05-23 15:56:16','2023-05-23 15:56:16',NULL,1,NULL,NULL),(4,'IKEA','simple','2023-05-24 16:53:02','2023-05-24 16:53:02',NULL,1,NULL,NULL),(5,'yshsyklandyrysh','simple','2023-05-24 16:56:35','2023-05-24 16:56:35',NULL,1,NULL,NULL),(6,'Pol-cyrasy','simple','2023-05-24 16:57:45','2023-05-24 16:57:45',NULL,1,NULL,NULL),(7,'Saturn-cyrasy','simple','2023-05-24 16:58:47','2023-05-24 16:58:47',NULL,1,NULL,NULL),(8,'Stol-cyrasy','simple','2023-05-24 16:59:49','2023-05-24 16:59:49',NULL,1,NULL,NULL),(9,'Ledasd','simple','2023-05-24 17:02:05','2023-05-24 17:02:05',NULL,1,NULL,NULL),(10,'Spiral','simple','2023-05-24 17:04:29','2023-05-24 17:04:29',NULL,1,NULL,NULL),(11,'Bezeg-spot','simple','2023-05-24 17:05:59','2023-05-24 17:05:59',NULL,1,NULL,NULL),(12,'SpotC','simple','2023-05-24 17:07:20','2023-05-24 17:07:20',NULL,1,NULL,NULL),(13,'san','simple','2023-05-24 17:12:24','2023-05-24 17:12:24',NULL,1,NULL,NULL),(14,'san2','simple','2023-05-24 17:13:19','2023-05-24 17:13:19',NULL,1,NULL,NULL),(15,'san3','simple','2023-05-24 17:14:16','2023-05-24 17:14:16',NULL,1,NULL,NULL),(16,'san4','simple','2023-05-24 17:15:21','2023-05-24 17:15:21',NULL,1,NULL,NULL),(17,'Elekrodwigatel-RPM','simple','2023-05-24 17:18:33','2023-05-24 17:18:33',NULL,1,NULL,NULL),(18,'Elektrohereketlendiriji','simple','2023-05-24 17:19:23','2023-05-24 17:19:23',NULL,1,NULL,NULL),(19,'Bid','simple','2023-05-24 17:20:18','2023-05-24 17:20:18',NULL,1,NULL,NULL),(20,'asd','simple','2023-05-24 17:21:29','2023-05-24 17:21:29',NULL,1,NULL,NULL),(21,'wan','simple','2023-05-24 17:25:48','2023-05-24 17:25:48',NULL,1,NULL,NULL),(22,'wan2','simple','2023-05-24 17:26:49','2023-05-24 17:26:49',NULL,1,NULL,NULL),(23,'Q111L-Akril-wanna','simple','2023-05-24 17:28:51','2023-05-24 17:28:51',NULL,1,NULL,NULL),(24,'wan4','simple','2023-05-24 17:31:43','2023-05-24 17:31:43',NULL,1,NULL,NULL),(25,'wan5','simple','2023-05-24 17:33:01','2023-05-24 17:33:01',NULL,1,NULL,NULL),(26,'wan6','simple','2023-05-24 17:34:14','2023-05-24 17:34:14',NULL,1,NULL,NULL),(27,'ak','simple','2023-05-25 22:50:55','2023-05-25 22:50:55',NULL,1,NULL,NULL),(28,'ak2','simple','2023-05-25 22:52:42','2023-05-25 22:52:42',NULL,1,NULL,NULL),(29,'ak3','simple','2023-05-25 22:54:21','2023-05-25 22:54:21',NULL,1,NULL,NULL),(30,'ak4','simple','2023-05-25 22:55:11','2023-05-25 22:55:11',NULL,1,NULL,NULL),(31,'te','simple','2023-05-25 22:58:26','2023-05-25 22:58:26',NULL,1,NULL,NULL),(32,'te2','simple','2023-05-25 22:59:46','2023-05-25 22:59:46',NULL,1,NULL,NULL),(33,'tek3','simple','2023-05-25 23:01:07','2023-05-25 23:01:07',NULL,1,NULL,NULL),(34,'te4','simple','2023-05-25 23:02:14','2023-05-25 23:02:14',NULL,1,NULL,NULL),(35,'Mix-Presents-SHOP','simple','2023-05-25 23:07:41','2023-05-25 23:07:41',NULL,1,NULL,NULL),(36,'mix2','simple','2023-05-25 23:09:24','2023-05-25 23:09:24',NULL,1,NULL,NULL),(37,'mix3','simple','2023-05-25 23:10:42','2023-05-25 23:10:42',NULL,1,NULL,NULL),(38,'mix4','simple','2023-05-25 23:12:50','2023-05-25 23:12:50',NULL,1,NULL,NULL),(39,'myn1','simple','2023-05-25 23:16:56','2023-05-25 23:16:56',NULL,1,NULL,NULL),(40,'hyz1','simple','2023-05-25 23:20:08','2023-05-25 23:20:08',NULL,1,NULL,NULL);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) 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) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`base_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`channel_currency_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`order_currency_code` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`permission_type` varchar(191) 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 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 */;
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`sku` varchar(191) 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) 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 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 `shipment_items`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `shipment_items` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `shipment_items` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `shipment_items` VALUES (1,'Saturn cyrasy',NULL,'Saturn-cyrasy',2,0,29.1000,1.5000,58.2000,3.0000,7,'Webkul\\Product\\Models\\Product',1,1,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 7}','2023-05-26 02:19:32','2023-05-26 02:19:32'),(2,'Pol çyrasy',NULL,'Pol-cyrasy',2,0,1067.0000,55.0000,2134.0000,110.0000,6,'Webkul\\Product\\Models\\Product',2,1,'{\"locale\": \"tm\", \"quantity\": 2, \"product_id\": 6}','2023-05-26 02:19:32','2023-05-26 02:19:32');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`total_qty` int DEFAULT NULL,
|
|||
|
|
`total_weight` int DEFAULT NULL,
|
|||
|
|
`carrier_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`carrier_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`track_number` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`email_sent` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`customer_id` int unsigned DEFAULT NULL,
|
|||
|
|
`customer_type` varchar(191) 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) 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 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 `shipments`
|
|||
|
|
--
|
|||
|
|
|
|||
|
|
LOCK TABLES `shipments` WRITE;
|
|||
|
|
/*!40000 ALTER TABLE `shipments` DISABLE KEYS */;
|
|||
|
|
INSERT INTO `shipments` VALUES (1,NULL,4,0,NULL,'Plany','',0,1,'Webkul\\Customer\\Models\\Customer',1,4,'2023-05-26 02:19:32','2023-05-26 02:19:32',1,'Default');
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`path` varchar(191) 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 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) 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=5 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,'slider1','slider_images/Sechgi/odcL7ociTlwfPQU1PYEvu7MQT5eNInoBSUJdybRk.jpg','',1,'2023-05-26 00:49:51','2023-05-26 00:49:51','','ru,tm',NULL,1),(2,'slider2','slider_images/Sechgi/RypNkSCG2dfh3SH0QxxeVDjV91i4uDHLxHZxCpCT.jpg','',1,'2023-05-26 00:50:06','2023-05-26 00:50:06','','ru,tm',NULL,0),(3,'slider3','slider_images/Sechgi/koMyEchdSh4dJBUk0vAVckHY88T7jhYkK3SLxI7b.jpg','',1,'2023-05-26 00:50:36','2023-05-26 00:50:36','','ru,tm',NULL,3),(4,'slider4','slider_images/Sechgi/M3oHbesRKDWMPWniXDTu6QgcnYwUIVr9EGJMUI5t.jpg','',1,'2023-05-26 00:50:51','2023-05-26 00:50:51','','ru,tm',NULL,4);
|
|||
|
|
/*!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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_subscribed` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`token` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`description` longtext 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`is_zip` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`zip_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`zip_from` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`zip_to` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`state` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`country` varchar(191) 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) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`remember_token` varchar(100) 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) 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) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`custom_title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`custom_heading` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`page_link` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`link_target` tinyint(1) NOT NULL DEFAULT '0',
|
|||
|
|
`catalog_type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|||
|
|
`products` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` varchar(191) 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 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`footer_left_content` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`footer_middle_content` text 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 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 COLLATE utf8mb4_unicode_ci,
|
|||
|
|
`locale` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`channel` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|||
|
|
`header_content_count` text 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 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 */;
|
|||
|
|
/*!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-07-13 10:46:52
|