-- Table structure for table `[[dbprefix]]review_entity`
--

CREATE TABLE `[[dbprefix]]review_entity` (
  `entity_id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Review entity ID',
  `entity_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Review entity code',
  PRIMARY KEY (`entity_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='Review entities';

--
-- Dumping data for table `[[dbprefix]]review_entity`
--

INSERT INTO `[[dbprefix]]review_entity` VALUES (1,'product'),(2,'customer'),(3,'category');

--
-- Table structure for table `[[dbprefix]]review_entity_summary`
--

CREATE TABLE `[[dbprefix]]review_entity_summary` (
  `primary_id` bigint NOT NULL AUTO_INCREMENT COMMENT 'Summary review entity ID',
  `entity_pk_value` bigint NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `entity_type` smallint NOT NULL DEFAULT '0' COMMENT 'Entity type ID',
  `reviews_count` smallint NOT NULL DEFAULT '0' COMMENT 'Qty of reviews',
  `rating_summary` smallint NOT NULL DEFAULT '0' COMMENT 'Summarized rating',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  PRIMARY KEY (`primary_id`),
  UNIQUE KEY `[[DBPREFIX]]REVIEW_ENTITY_SUMMARY_ENTITY_PK_VALUE_STORE_ID_ENTITY_TYPE` (`entity_pk_value`,`store_id`,`entity_type`),
  KEY `[[DBPREFIX]]REVIEW_ENTITY_SUMMARY_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]REVIEW_ENTITY_SUMMARY_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=251 DEFAULT CHARSET=utf8mb4 COMMENT='Review aggregates';

--
-- Dumping data for table `[[dbprefix]]review_entity_summary`
--

INSERT INTO `[[dbprefix]]review_entity_summary` VALUES (1,1,1,2,50,0),(2,1,1,2,50,1),(3,6,1,3,67,0),(4,6,1,3,67,1),(5,3,1,3,67,0),(6,3,1,3,67,1),(7,2,1,2,90,0),(8,2,1,2,90,1),(9,4,1,3,67,0),(10,4,1,3,67,1),(11,5,1,2,70,0),(12,5,1,2,70,1),(13,37,1,3,87,0),(14,37,1,3,87,1),(15,40,1,3,73,0),(16,40,1,3,73,1),(17,38,1,3,47,0),(18,38,1,3,47,1),(19,36,1,2,80,0),(20,36,1,2,80,1),(21,39,1,4,65,0),(22,39,1,4,65,1),(23,270,1,2,90,0),(24,270,1,2,90,1),(25,286,1,2,90,0),(26,286,1,2,90,1),(27,414,1,3,53,0),(28,414,1,3,53,1),(29,302,1,3,93,0),(30,302,1,3,93,1),(31,398,1,3,80,0),(32,398,1,3,80,1),(33,318,1,2,50,0),(34,318,1,2,50,1),(35,334,1,3,67,0),(36,334,1,3,67,1),(37,350,1,2,70,0),(38,350,1,2,70,1),(39,366,1,2,70,0),(40,366,1,2,70,1),(41,737,1,3,47,0),(42,737,1,3,47,1),(43,750,1,3,47,0),(44,750,1,3,47,1),(45,763,1,2,70,0),(46,763,1,2,70,1),(47,776,1,3,87,0),(48,776,1,3,87,1),(49,789,1,3,73,0),(50,789,1,3,73,1),(51,558,1,3,80,0),(52,558,1,3,80,1),(53,574,1,2,90,0),(54,574,1,2,90,1),(55,526,1,2,60,0),(56,526,1,2,60,1),(57,446,1,3,67,0),(58,446,1,3,67,1),(59,462,1,3,80,0),(60,462,1,3,80,1),(61,542,1,2,70,0),(62,542,1,2,70,1),(63,606,1,3,67,0),(64,606,1,3,67,1),(65,622,1,4,65,0),(66,622,1,4,65,1),(67,478,1,3,73,0),(68,478,1,3,73,1),(69,590,1,3,60,0),(70,590,1,3,60,1),(71,494,1,3,80,0),(72,494,1,3,80,1),(73,510,1,3,53,0),(74,510,1,3,53,1),(75,893,1,3,80,0),(76,893,1,3,80,1),(77,911,1,3,73,0),(78,911,1,3,73,1),(79,924,1,3,60,0),(80,924,1,3,60,1),(81,937,1,3,73,0),(82,937,1,3,73,1),(83,950,1,2,70,0),(84,950,1,2,70,1),(85,963,1,3,87,0),(86,963,1,3,87,1),(87,976,1,2,60,0),(88,976,1,2,60,1),(89,989,1,3,67,0),(90,989,1,3,67,1),(91,638,1,4,55,0),(92,638,1,4,55,1),(93,654,1,3,80,0),(94,654,1,3,80,1),(95,670,1,3,53,0),(96,670,1,3,53,1),(97,676,1,4,70,0),(98,676,1,4,70,1),(99,7,1,3,80,0),(100,7,1,3,80,1),(101,20,1,3,67,0),(102,20,1,3,67,1),(103,18,1,2,60,0),(104,18,1,2,60,1),(105,23,1,3,60,0),(106,23,1,3,60,1),(107,17,1,3,93,0),(108,17,1,3,93,1),(109,19,1,3,87,0),(110,19,1,3,87,1),(111,15,1,1,60,0),(112,15,1,1,60,1),(113,16,1,2,100,0),(114,16,1,2,100,1),(115,8,1,3,67,0),(116,8,1,3,67,1),(117,9,1,2,70,0),(118,9,1,2,70,1),(119,12,1,2,90,0),(120,12,1,2,90,1),(121,14,1,3,67,0),(122,14,1,3,67,1),(123,10,1,2,80,0),(124,10,1,2,80,1),(125,11,1,3,73,0),(126,11,1,3,73,1),(127,13,1,3,60,0),(128,13,1,3,60,1),(129,42,1,3,67,0),(130,42,1,3,67,1),(131,44,1,2,70,0),(132,44,1,2,70,1),(133,43,1,3,53,0),(134,43,1,3,53,1),(135,41,1,2,80,0),(136,41,1,2,80,1),(137,1044,1,3,87,0),(138,1044,1,3,87,1),(139,1060,1,3,67,0),(140,1060,1,3,67,1),(141,1076,1,3,60,0),(142,1076,1,3,60,1),(143,1092,1,3,60,0),(144,1092,1,3,60,1),(145,1108,1,3,80,0),(146,1108,1,3,80,1),(147,1114,1,2,80,0),(148,1114,1,2,80,1),(149,1220,1,3,67,0),(150,1220,1,3,67,1),(151,1236,1,4,70,0),(152,1236,1,4,70,1),(153,1252,1,3,87,0),(154,1252,1,3,87,1),(155,1268,1,2,90,0),(156,1268,1,2,90,1),(157,1284,1,3,87,0),(158,1284,1,3,87,1),(159,1380,1,3,87,0),(160,1380,1,3,87,1),(161,1300,1,3,67,0),(162,1300,1,3,67,1),(163,1316,1,2,60,0),(164,1316,1,2,60,1),(165,1332,1,3,87,0),(166,1332,1,3,87,1),(167,1348,1,3,60,0),(168,1348,1,3,60,1),(169,1364,1,3,87,0),(170,1364,1,3,87,1),(171,1819,1,2,80,0),(172,1819,1,2,80,1),(173,1826,1,3,93,0),(174,1826,1,3,93,1),(175,1833,1,3,67,0),(176,1833,1,3,67,1),(177,1840,1,4,80,0),(178,1840,1,4,80,1),(179,1847,1,2,60,0),(180,1847,1,2,60,1),(181,1854,1,3,67,0),(182,1854,1,3,67,1),(183,1572,1,3,87,0),(184,1572,1,3,87,1),(185,1412,1,3,73,0),(186,1412,1,3,73,1),(187,1428,1,4,60,0),(188,1428,1,4,60,1),(189,1444,1,2,60,0),(190,1444,1,2,60,1),(191,1588,1,3,73,0),(192,1588,1,3,73,1),(193,1476,1,2,60,0),(194,1476,1,2,60,1),(195,1492,1,3,47,0),(196,1492,1,3,47,1),(197,1508,1,3,73,0),(198,1508,1,3,73,1),(199,1524,1,3,80,0),(200,1524,1,3,80,1),(201,1540,1,3,87,0),(202,1540,1,3,87,1),(203,1556,1,3,60,0),(204,1556,1,3,60,1),(205,1919,1,3,60,0),(206,1919,1,3,60,1),(207,1935,1,3,80,0),(208,1935,1,3,80,1),(209,1951,1,2,90,0),(210,1951,1,2,90,1),(211,1967,1,2,80,0),(212,1967,1,2,80,1),(213,1983,1,3,73,0),(214,1983,1,3,73,1),(215,1990,1,2,70,0),(216,1990,1,2,70,1),(217,1997,1,3,67,0),(218,1997,1,3,67,1),(219,2003,1,3,93,0),(220,2003,1,3,93,1),(221,2010,1,3,67,0),(222,2010,1,3,67,1),(223,2017,1,3,80,0),(224,2017,1,3,80,1),(225,2024,1,3,73,0),(226,2024,1,3,73,1),(227,2040,1,3,60,0),(228,2040,1,3,60,1),(229,1604,1,4,75,0),(230,1604,1,4,75,1),(231,1620,1,4,60,0),(232,1620,1,4,60,1),(233,1636,1,3,67,0),(234,1636,1,3,67,1),(235,1652,1,3,60,0),(236,1652,1,3,60,1),(237,1668,1,3,40,0),(238,1668,1,3,40,1),(239,1764,1,3,73,0),(240,1764,1,3,73,1),(241,1780,1,1,80,0),(242,1780,1,1,80,1),(243,1796,1,3,60,0),(244,1796,1,3,60,1),(245,1812,1,2,70,0),(246,1812,1,2,70,1),(247,1684,1,2,80,0),(248,1684,1,2,80,1),(249,1700,1,3,53,0),(250,1700,1,3,53,1);

--
-- Table structure for table `[[dbprefix]]review_status`
--

CREATE TABLE `[[dbprefix]]review_status` (
  `status_id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Status ID',
  `status_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Status code',
  PRIMARY KEY (`status_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='Review statuses';

--
-- Dumping data for table `[[dbprefix]]review_status`
--

INSERT INTO `[[dbprefix]]review_status` VALUES (1,'Approved'),(2,'Pending'),(3,'Not Approved');

--
-- Table structure for table `[[dbprefix]]review_store`
--

CREATE TABLE `[[dbprefix]]review_store` (
  `review_id` bigint unsigned NOT NULL COMMENT 'Review ID',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  PRIMARY KEY (`review_id`,`store_id`),
  KEY `[[DBPREFIX]]REVIEW_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]REVIEW_STORE_REVIEW_ID_[[DBPREFIX]]REVIEW_REVIEW_ID` FOREIGN KEY (`review_id`) REFERENCES `[[dbprefix]]review` (`review_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]REVIEW_STORE_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Review Store';

--
-- Dumping data for table `[[dbprefix]]review_store`
--

INSERT INTO `[[dbprefix]]review_store` VALUES (1,0),(2,0),(3,0),(4,0),(5,0),(6,0),(7,0),(8,0),(9,0),(10,0),(11,0),(12,0),(13,0),(14,0),(15,0),(16,0),(17,0),(18,0),(19,0),(20,0),(21,0),(22,0),(23,0),(24,0),(25,0),(26,0),(27,0),(28,0),(29,0),(30,0),(31,0),(32,0),(33,0),(34,0),(35,0),(36,0),(37,0),(38,0),(39,0),(40,0),(41,0),(42,0),(43,0),(44,0),(45,0),(46,0),(47,0),(48,0),(49,0),(50,0),(51,0),(52,0),(53,0),(54,0),(55,0),(56,0),(57,0),(58,0),(59,0),(60,0),(61,0),(62,0),(63,0),(64,0),(65,0),(66,0),(67,0),(68,0),(69,0),(70,0),(71,0),(72,0),(73,0),(74,0),(75,0),(76,0),(77,0),(78,0),(79,0),(80,0),(81,0),(82,0),(83,0),(84,0),(85,0),(86,0),(87,0),(88,0),(89,0),(90,0),(91,0),(92,0),(93,0),(94,0),(95,0),(96,0),(97,0),(98,0),(99,0),(100,0),(101,0),(102,0),(103,0),(104,0),(105,0),(106,0),(107,0),(108,0),(109,0),(110,0),(111,0),(112,0),(113,0),(114,0),(115,0),(116,0),(117,0),(118,0),(119,0),(120,0),(121,0),(122,0),(123,0),(124,0),(125,0),(126,0),(127,0),(128,0),(129,0),(130,0),(131,0),(132,0),(133,0),(134,0),(135,0),(136,0),(137,0),(138,0),(139,0),(140,0),(141,0),(142,0),(143,0),(144,0),(145,0),(146,0),(147,0),(148,0),(149,0),(150,0),(151,0),(152,0),(153,0),(154,0),(155,0),(156,0),(157,0),(158,0),(159,0),(160,0),(161,0),(162,0),(163,0),(164,0),(165,0),(166,0),(167,0),(168,0),(169,0),(170,0),(171,0),(172,0),(173,0),(174,0),(175,0),(176,0),(177,0),(178,0),(179,0),(180,0),(181,0),(182,0),(183,0),(184,0),(185,0),(186,0),(187,0),(188,0),(189,0),(190,0),(191,0),(192,0),(193,0),(194,0),(195,0),(196,0),(197,0),(198,0),(199,0),(200,0),(201,0),(202,0),(203,0),(204,0),(205,0),(206,0),(207,0),(208,0),(209,0),(210,0),(211,0),(212,0),(213,0),(214,0),(215,0),(216,0),(217,0),(218,0),(219,0),(220,0),(221,0),(222,0),(223,0),(224,0),(225,0),(226,0),(227,0),(228,0),(229,0),(230,0),(231,0),(232,0),(233,0),(234,0),(235,0),(236,0),(237,0),(238,0),(239,0),(240,0),(241,0),(242,0),(243,0),(244,0),(245,0),(246,0),(247,0),(248,0),(249,0),(250,0),(251,0),(252,0),(253,0),(254,0),(255,0),(256,0),(257,0),(258,0),(259,0),(260,0),(261,0),(262,0),(263,0),(264,0),(265,0),(266,0),(267,0),(268,0),(269,0),(270,0),(271,0),(272,0),(273,0),(274,0),(275,0),(276,0),(277,0),(278,0),(279,0),(280,0),(281,0),(282,0),(283,0),(284,0),(285,0),(286,0),(287,0),(288,0),(289,0),(290,0),(291,0),(292,0),(293,0),(294,0),(295,0),(296,0),(297,0),(298,0),(299,0),(300,0),(301,0),(302,0),(303,0),(304,0),(305,0),(306,0),(307,0),(308,0),(309,0),(310,0),(311,0),(312,0),(313,0),(314,0),(315,0),(316,0),(317,0),(318,0),(319,0),(320,0),(321,0),(322,0),(323,0),(324,0),(325,0),(326,0),(327,0),(328,0),(329,0),(330,0),(331,0),(332,0),(333,0),(334,0),(335,0),(336,0),(337,0),(338,0),(339,0),(340,0),(341,0),(342,0),(343,0),(344,0),(345,0),(346,0),(1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,1),(11,1),(12,1),(13,1),(14,1),(15,1),(16,1),(17,1),(18,1),(19,1),(20,1),(21,1),(22,1),(23,1),(24,1),(25,1),(26,1),(27,1),(28,1),(29,1),(30,1),(31,1),(32,1),(33,1),(34,1),(35,1),(36,1),(37,1),(38,1),(39,1),(40,1),(41,1),(42,1),(43,1),(44,1),(45,1),(46,1),(47,1),(48,1),(49,1),(50,1),(51,1),(52,1),(53,1),(54,1),(55,1),(56,1),(57,1),(58,1),(59,1),(60,1),(61,1),(62,1),(63,1),(64,1),(65,1),(66,1),(67,1),(68,1),(69,1),(70,1),(71,1),(72,1),(73,1),(74,1),(75,1),(76,1),(77,1),(78,1),(79,1),(80,1),(81,1),(82,1),(83,1),(84,1),(85,1),(86,1),(87,1),(88,1),(89,1),(90,1),(91,1),(92,1),(93,1),(94,1),(95,1),(96,1),(97,1),(98,1),(99,1),(100,1),(101,1),(102,1),(103,1),(104,1),(105,1),(106,1),(107,1),(108,1),(109,1),(110,1),(111,1),(112,1),(113,1),(114,1),(115,1),(116,1),(117,1),(118,1),(119,1),(120,1),(121,1),(122,1),(123,1),(124,1),(125,1),(126,1),(127,1),(128,1),(129,1),(130,1),(131,1),(132,1),(133,1),(134,1),(135,1),(136,1),(137,1),(138,1),(139,1),(140,1),(141,1),(142,1),(143,1),(144,1),(145,1),(146,1),(147,1),(148,1),(149,1),(150,1),(151,1),(152,1),(153,1),(154,1),(155,1),(156,1),(157,1),(158,1),(159,1),(160,1),(161,1),(162,1),(163,1),(164,1),(165,1),(166,1),(167,1),(168,1),(169,1),(170,1),(171,1),(172,1),(173,1),(174,1),(175,1),(176,1),(177,1),(178,1),(179,1),(180,1),(181,1),(182,1),(183,1),(184,1),(185,1),(186,1),(187,1),(188,1),(189,1),(190,1),(191,1),(192,1),(193,1),(194,1),(195,1),(196,1),(197,1),(198,1),(199,1),(200,1),(201,1),(202,1),(203,1),(204,1),(205,1),(206,1),(207,1),(208,1),(209,1),(210,1),(211,1),(212,1),(213,1),(214,1),(215,1),(216,1),(217,1),(218,1),(219,1),(220,1),(221,1),(222,1),(223,1),(224,1),(225,1),(226,1),(227,1),(228,1),(229,1),(230,1),(231,1),(232,1),(233,1),(234,1),(235,1),(236,1),(237,1),(238,1),(239,1),(240,1),(241,1),(242,1),(243,1),(244,1),(245,1),(246,1),(247,1),(248,1),(249,1),(250,1),(251,1),(252,1),(253,1),(254,1),(255,1),(256,1),(257,1),(258,1),(259,1),(260,1),(261,1),(262,1),(263,1),(264,1),(265,1),(266,1),(267,1),(268,1),(269,1),(270,1),(271,1),(272,1),(273,1),(274,1),(275,1),(276,1),(277,1),(278,1),(279,1),(280,1),(281,1),(282,1),(283,1),(284,1),(285,1),(286,1),(287,1),(288,1),(289,1),(290,1),(291,1),(292,1),(293,1),(294,1),(295,1),(296,1),(297,1),(298,1),(299,1),(300,1),(301,1),(302,1),(303,1),(304,1),(305,1),(306,1),(307,1),(308,1),(309,1),(310,1),(311,1),(312,1),(313,1),(314,1),(315,1),(316,1),(317,1),(318,1),(319,1),(320,1),(321,1),(322,1),(323,1),(324,1),(325,1),(326,1),(327,1),(328,1),(329,1),(330,1),(331,1),(332,1),(333,1),(334,1),(335,1),(336,1),(337,1),(338,1),(339,1),(340,1),(341,1),(342,1),(343,1),(344,1),(345,1),(346,1);

--
-- Table structure for table `[[dbprefix]]sales_bestsellers_aggregated_daily`
--

CREATE TABLE `[[dbprefix]]sales_bestsellers_aggregated_daily` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `product_id` int unsigned DEFAULT NULL COMMENT 'Product ID',
  `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Product Name',
  `product_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Product Price',
  `qty_ordered` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty Ordered',
  `rating_pos` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGRED_DAILY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_DAILY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_BESTSELLERS_AGGRED_DAILY_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Bestsellers Aggregated Daily';

--
-- Dumping data for table `[[dbprefix]]sales_bestsellers_aggregated_daily`
--


--
-- Table structure for table `[[dbprefix]]sales_bestsellers_aggregated_monthly`
--

CREATE TABLE `[[dbprefix]]sales_bestsellers_aggregated_monthly` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `product_id` int unsigned DEFAULT NULL COMMENT 'Product ID',
  `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Product Name',
  `product_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Product Price',
  `qty_ordered` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty Ordered',
  `rating_pos` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGRED_MONTHLY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_MONTHLY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_917F1D21C8B65498447CACB6C2C45EC5` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Bestsellers Aggregated Monthly';

--
-- Dumping data for table `[[dbprefix]]sales_bestsellers_aggregated_monthly`
--


--
-- Table structure for table `[[dbprefix]]sales_bestsellers_aggregated_yearly`
--

CREATE TABLE `[[dbprefix]]sales_bestsellers_aggregated_yearly` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `product_id` int unsigned DEFAULT NULL COMMENT 'Product ID',
  `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Product Name',
  `product_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Product Price',
  `qty_ordered` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty Ordered',
  `rating_pos` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGRED_YEARLY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_BESTSELLERS_AGGREGATED_YEARLY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_C2B58A114880F6D0AF2DE1C5DADF9AF1` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Bestsellers Aggregated Yearly';

--
-- Dumping data for table `[[dbprefix]]sales_bestsellers_aggregated_yearly`
--


--
-- Table structure for table `[[dbprefix]]sales_creditmemo`
--

CREATE TABLE `[[dbprefix]]sales_creditmemo` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `adjustment_positive` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Positive',
  `base_shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `store_to_order_rate` decimal(20,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `base_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_to_order_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Grand Total',
  `base_adjustment_negative` decimal(20,4) DEFAULT NULL COMMENT 'Base Adjustment Negative',
  `base_subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `adjustment_negative` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Negative',
  `base_shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `store_to_base_rate` decimal(20,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `base_to_global_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_adjustment` decimal(20,4) DEFAULT NULL COMMENT 'Base Adjustment',
  `base_subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Amount',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `adjustment` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_adjustment_positive` decimal(20,4) DEFAULT NULL COMMENT 'Base Adjustment Positive',
  `base_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Amount',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `email_sent` smallint DEFAULT NULL COMMENT 'Email Sent',
  `send_email` smallint unsigned DEFAULT NULL COMMENT 'Send Email',
  `creditmemo_status` int DEFAULT NULL COMMENT 'Creditmemo Status',
  `state` int DEFAULT NULL COMMENT 'State',
  `shipping_address_id` int DEFAULT NULL COMMENT 'Shipping Address ID',
  `billing_address_id` int DEFAULT NULL COMMENT 'Billing Address ID',
  `invoice_id` int DEFAULT NULL COMMENT 'Invoice ID',
  `store_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Currency Code',
  `order_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Global Currency Code',
  `transaction_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Transaction ID',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `shipping_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Discount Tax Compensation Amount',
  `base_shipping_discount_tax_compensation_amnt` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Discount Tax Compensation Amount',
  `shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  `discount_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Discount Description',
  `customer_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Customer Note',
  `customer_note_notify` smallint unsigned DEFAULT NULL COMMENT 'Customer Note Notify',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_CREDITMEMO_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_CREDITMEMO_STATUS` (`creditmemo_status`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_STATE` (`state`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_SEND_EMAIL` (`send_email`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_EMAIL_SENT` (`email_sent`),
  CONSTRAINT `[[DBPREFIX]]SALES_CREDITMEMO_ORDER_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_CREDITMEMO_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Creditmemo';

--
-- Dumping data for table `[[dbprefix]]sales_creditmemo`
--

INSERT INTO `[[dbprefix]]sales_creditmemo` VALUES (1,1,NULL,0.0000,0.0000,0.0000,1.0000,39.6400,NULL,34.6400,5.0000,34.6400,NULL,5.0000,0.0000,1.0000,0.0000,32.0000,0.0000,32.0000,0.0000,39.6400,NULL,2.6400,0.0000,2.6400,2,NULL,NULL,NULL,2,3,4,NULL,'USD','USD','USD','USD',NULL,'000000001','[[regtime]]','[[regtime]]',0.0000,0.0000,NULL,NULL,5.0000,5.0000,NULL,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]sales_creditmemo_comment`
--

CREATE TABLE `[[dbprefix]]sales_creditmemo_comment` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `is_customer_notified` int DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible On Front',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Comment',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `user_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Admin User ID',
  `user_type` int unsigned NOT NULL DEFAULT '0' COMMENT 'User Type',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_CREDITMEMO_COMMENT_ENTITY_ID_USER_ID_USER_TYPE` (`entity_id`,`user_id`,`user_type`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_COMMENT_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_5387631F2834DD79690F101F14F382AF` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_creditmemo` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Creditmemo Comment';

--
-- Dumping data for table `[[dbprefix]]sales_creditmemo_comment`
--


--
-- Table structure for table `[[dbprefix]]sales_creditmemo_grid`
--

CREATE TABLE `[[dbprefix]]sales_creditmemo_grid` (
  `entity_id` int unsigned NOT NULL COMMENT 'Entity ID',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `order_increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Increment ID',
  `order_created_at` timestamp NULL DEFAULT NULL COMMENT 'Order Created At',
  `billing_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Name',
  `state` int DEFAULT NULL COMMENT 'Status',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `order_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `billing_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Address',
  `shipping_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Address',
  `customer_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Customer Name',
  `customer_email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Email',
  `customer_group_id` smallint DEFAULT NULL COMMENT 'Customer Group ID',
  `payment_method` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Payment Method',
  `shipping_information` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Method Name',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `shipping_and_handling` decimal(20,4) DEFAULT NULL COMMENT 'Shipping and handling amount',
  `adjustment_positive` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Positive',
  `adjustment_negative` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Negative',
  `order_base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Order Grand Total',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_STATE` (`state`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_BILLING_NAME` (`billing_name`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_ORDER_STATUS` (`order_status`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_BASE_GRAND_TOTAL` (`base_grand_total`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_ORDER_BASE_GRAND_TOTAL` (`order_base_grand_total`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_GRID_ORDER_ID` (`order_id`),
  FULLTEXT KEY `FTI_9C333DEACC23DC368A7AFA455B8ED6D1` (`increment_id`,`order_increment_id`,`billing_name`,`billing_address`,`shipping_address`,`customer_name`,`customer_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Creditmemo Grid';

--
-- Dumping data for table `[[dbprefix]]sales_creditmemo_grid`
--

INSERT INTO `[[dbprefix]]sales_creditmemo_grid` VALUES (1,'000000001','[[regtime]]','[[regtime]]',2,'000000002','[[regtime]]','Veronica Costello',2,39.6400,'closed',1,'6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Veronica Costello','roni_cost@example.com',1,'checkmo','Flat Rate - Fixed',32.0000,5.0000,NULL,NULL,39.6400);

--
-- Table structure for table `[[dbprefix]]sales_creditmemo_item`
--

CREATE TABLE `[[dbprefix]]sales_creditmemo_item` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `base_price` decimal(20,4) DEFAULT NULL COMMENT 'Base Price',
  `tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_row_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Row Total',
  `discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Amount',
  `row_total` decimal(20,4) DEFAULT NULL COMMENT 'Row Total',
  `base_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `base_price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `base_cost` decimal(20,4) DEFAULT NULL COMMENT 'Base Cost',
  `price` decimal(20,4) DEFAULT NULL COMMENT 'Price',
  `base_row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `product_id` int DEFAULT NULL COMMENT 'Product ID',
  `order_item_id` int DEFAULT NULL COMMENT 'Order Item ID',
  `additional_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Data',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Name',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `tax_ratio` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Ratio of tax in the creditmemo item over tax of the order item',
  `weee_tax_applied` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Weee Tax Applied',
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Amount',
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Row Amount',
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Disposition',
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Row Disposition',
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Amount',
  `base_weee_tax_applied_row_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Row Amnt',
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Disposition',
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Row Disposition',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_CREDITMEMO_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_101F8955078B497273D57F534EA8BB34` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_creditmemo` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Creditmemo Item';

--
-- Dumping data for table `[[dbprefix]]sales_creditmemo_item`
--

INSERT INTO `[[dbprefix]]sales_creditmemo_item` VALUES (1,1,32.0000,2.6400,32.0000,NULL,32.0000,NULL,34.6400,2.6400,34.6400,1.0000,NULL,32.0000,34.6400,34.6400,1492,2,NULL,NULL,'WS08-XS-Blue','Minerva LumaTech&trade; V-Tee',0.0000,0.0000,NULL,'[]',NULL,0.0000,NULL,0.0000,NULL,NULL,NULL,0.0000);

--
-- Table structure for table `[[dbprefix]]sales_data_exporter_order_statuses`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_order_statuses` (
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'status',
  `feed_data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Feed Data',
  `modified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modified At',
  PRIMARY KEY (`status`),
  KEY `[[DBPREFIX]]SALES_DATA_EXPORTER_ORDER_STATUSES_MODIFIED_AT` (`modified_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Statuses Feed Storage';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_order_statuses`
--

INSERT INTO `[[dbprefix]]sales_data_exporter_order_statuses` VALUES ('canceled','{\"status\":\"canceled\",\"label\":\"Canceled\"}','[[regtime]]'),('closed','{\"status\":\"closed\",\"label\":\"Closed\"}','[[regtime]]'),('complete','{\"status\":\"complete\",\"label\":\"Complete\"}','[[regtime]]'),('fraud','{\"status\":\"fraud\",\"label\":\"Suspected Fraud\"}','[[regtime]]'),('holded','{\"status\":\"holded\",\"label\":\"On Hold\"}','[[regtime]]'),('payment_review','{\"status\":\"payment_review\",\"label\":\"Payment Review\"}','[[regtime]]'),('paypal_canceled_reversal','{\"status\":\"paypal_canceled_reversal\",\"label\":\"PayPal Canceled Reversal\"}','[[regtime]]'),('paypal_reversed','{\"status\":\"paypal_reversed\",\"label\":\"PayPal Reversed\"}','[[regtime]]'),('pending','{\"status\":\"pending\",\"label\":\"Pending\"}','[[regtime]]'),('pending_payment','{\"status\":\"pending_payment\",\"label\":\"Pending Payment\"}','[[regtime]]'),('pending_paypal','{\"status\":\"pending_paypal\",\"label\":\"Pending PayPal\"}','[[regtime]]'),('processing','{\"status\":\"processing\",\"label\":\"Processing\"}','[[regtime]]');

--
-- Table structure for table `[[dbprefix]]sales_data_exporter_order_statuses_index_batches`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_order_statuses_index_batches` (
  `batch_number` int NOT NULL COMMENT 'Batch Number',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Status',
  PRIMARY KEY (`batch_number`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_data_exporter_order_statuses_index_batches';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_order_statuses_index_batches`
--

INSERT INTO `[[dbprefix]]sales_data_exporter_order_statuses_index_batches` VALUES (1,'canceled'),(1,'closed'),(1,'complete'),(1,'fraud'),(1,'holded'),(1,'payment_review'),(1,'paypal_canceled_reversal'),(1,'paypal_reversed'),(1,'pending'),(1,'pending_payment'),(1,'pending_paypal'),(1,'processing');

--
-- Table structure for table `[[dbprefix]]sales_data_exporter_order_statuses_index_sequence`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_order_statuses_index_sequence` (
  `i` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Auto Increment ID',
  PRIMARY KEY (`i`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_data_exporter_order_statuses_index_sequence';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_order_statuses_index_sequence`
--

INSERT INTO `[[dbprefix]]sales_data_exporter_order_statuses_index_sequence` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]sales_data_exporter_orders`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_orders` (
  `id` int unsigned NOT NULL COMMENT 'ID',
  `mode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Payment Mode',
  `feed_data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Feed Data',
  `modified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modified At',
  PRIMARY KEY (`id`),
  KEY `[[DBPREFIX]]SALES_DATA_EXPORTER_ORDERS_MODIFIED_AT` (`modified_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Orders Feed Storage';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_orders`
--


--
-- Table structure for table `[[dbprefix]]sales_data_exporter_orders_index_batches`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_orders_index_batches` (
  `batch_number` int NOT NULL COMMENT 'Batch Number',
  `entity_id` int unsigned NOT NULL COMMENT 'Entity Id',
  PRIMARY KEY (`batch_number`,`entity_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_data_exporter_orders_index_batches';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_orders_index_batches`
--

INSERT INTO `[[dbprefix]]sales_data_exporter_orders_index_batches` VALUES (1,1),(1,2);

--
-- Table structure for table `[[dbprefix]]sales_data_exporter_orders_index_sequence`
--

CREATE TABLE `[[dbprefix]]sales_data_exporter_orders_index_sequence` (
  `i` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Auto Increment ID',
  PRIMARY KEY (`i`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_data_exporter_orders_index_sequence';

--
-- Dumping data for table `[[dbprefix]]sales_data_exporter_orders_index_sequence`
--

INSERT INTO `[[dbprefix]]sales_data_exporter_orders_index_sequence` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]sales_invoice`
--

CREATE TABLE `[[dbprefix]]sales_invoice` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `store_to_order_rate` decimal(20,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `base_shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `base_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_to_order_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Grand Total',
  `shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `base_subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `store_to_base_rate` decimal(20,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `base_shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `total_qty` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty',
  `base_to_global_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `base_subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Amount',
  `billing_address_id` int DEFAULT NULL COMMENT 'Billing Address ID',
  `is_used_for_refund` smallint unsigned DEFAULT NULL COMMENT 'Is Used For Refund',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `email_sent` smallint DEFAULT NULL COMMENT 'Email Sent',
  `send_email` smallint unsigned DEFAULT NULL COMMENT 'Send Email',
  `can_void_flag` smallint unsigned DEFAULT NULL COMMENT 'Can Void Flag',
  `state` int DEFAULT NULL COMMENT 'State',
  `shipping_address_id` int DEFAULT NULL COMMENT 'Shipping Address ID',
  `store_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Currency Code',
  `transaction_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Transaction ID',
  `order_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Global Currency Code',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `shipping_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Discount Tax Compensation Amount',
  `base_shipping_discount_tax_compensation_amnt` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Discount Tax Compensation Amount',
  `shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  `base_total_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Refunded',
  `discount_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Discount Description',
  `customer_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Customer Note',
  `customer_note_notify` smallint unsigned DEFAULT NULL COMMENT 'Customer Note Notify',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_INVOICE_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRAND_TOTAL` (`grand_total`),
  KEY `[[DBPREFIX]]SALES_INVOICE_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_STATE` (`state`),
  KEY `[[DBPREFIX]]SALES_INVOICE_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_SEND_EMAIL` (`send_email`),
  KEY `[[DBPREFIX]]SALES_INVOICE_EMAIL_SENT` (`email_sent`),
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICE_ORDER_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICE_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Invoice';

--
-- Dumping data for table `[[dbprefix]]sales_invoice`
--

INSERT INTO `[[dbprefix]]sales_invoice` VALUES (1,1,36.3900,0.0000,2.3900,2.3900,0.0000,0.0000,0.0000,1.0000,36.3900,5.0000,31.3900,31.3900,0.0000,5.0000,1.0000,1.0000,29.0000,29.0000,0.0000,2,NULL,1,NULL,NULL,0,2,1,'USD',NULL,'USD','USD','USD','000000001','[[regtime]]','[[regtime]]',0.0000,0.0000,0.0000,0.0000,5.0000,5.0000,NULL,NULL,NULL,NULL),(2,1,39.6400,0.0000,2.6400,2.6400,0.0000,0.0000,0.0000,1.0000,39.6400,5.0000,34.6400,34.6400,0.0000,5.0000,1.0000,1.0000,32.0000,32.0000,0.0000,4,NULL,2,NULL,NULL,0,2,3,'USD',NULL,'USD','USD','USD','000000002','[[regtime]]','[[regtime]]',0.0000,0.0000,0.0000,0.0000,5.0000,5.0000,NULL,NULL,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]sales_invoice_comment`
--

CREATE TABLE `[[dbprefix]]sales_invoice_comment` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `is_customer_notified` smallint unsigned DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible On Front',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Comment',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `user_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Admin User ID',
  `user_type` int unsigned NOT NULL DEFAULT '0' COMMENT 'User Type',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_INVOICE_COMMENT_ENTITY_ID_USER_ID_USER_TYPE` (`entity_id`,`user_id`,`user_type`),
  KEY `[[DBPREFIX]]SALES_INVOICE_COMMENT_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICE_COMMENT_PARENT_ID_[[DBPREFIX]]SALES_INVOICE_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_invoice` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Invoice Comment';

--
-- Dumping data for table `[[dbprefix]]sales_invoice_comment`
--


--
-- Table structure for table `[[dbprefix]]sales_invoice_grid`
--

CREATE TABLE `[[dbprefix]]sales_invoice_grid` (
  `entity_id` int unsigned NOT NULL COMMENT 'Entity ID',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `state` int DEFAULT NULL COMMENT 'State',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Name',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `order_increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Increment ID',
  `order_created_at` timestamp NULL DEFAULT NULL COMMENT 'Order Created At',
  `customer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Name',
  `customer_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Email',
  `customer_group_id` int DEFAULT NULL,
  `payment_method` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Payment Method',
  `store_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Currency Code',
  `order_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Global Currency Code',
  `billing_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Name',
  `billing_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Address',
  `shipping_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Address',
  `shipping_information` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Method Name',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `shipping_and_handling` decimal(20,4) DEFAULT NULL COMMENT 'Shipping and handling amount',
  `grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Grand Total',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_INVOICE_GRID_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_GRAND_TOTAL` (`grand_total`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_STATE` (`state`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_BILLING_NAME` (`billing_name`),
  KEY `[[DBPREFIX]]SALES_INVOICE_GRID_BASE_GRAND_TOTAL` (`base_grand_total`),
  FULLTEXT KEY `FTI_A0EE7B3CDB178999DE2AC511FD6ACE5D` (`increment_id`,`order_increment_id`,`billing_name`,`billing_address`,`shipping_address`,`customer_name`,`customer_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Invoice Grid';

--
-- Dumping data for table `[[dbprefix]]sales_invoice_grid`
--

INSERT INTO `[[dbprefix]]sales_invoice_grid` VALUES (1,'000000001',2,1,'Main Website\nMain Website Store\nDefault Store View',1,'000000001','[[regtime]]','Veronica Costello','roni_cost@example.com',1,'checkmo','USD','USD','USD','USD','Veronica Costello','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Flat Rate - Fixed',29.0000,5.0000,36.3900,'[[regtime]]','[[regtime]]',36.3900),(2,'000000002',2,1,'Main Website\nMain Website Store\nDefault Store View',2,'000000002','[[regtime]]','Veronica Costello','roni_cost@example.com',1,'checkmo','USD','USD','USD','USD','Veronica Costello','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Flat Rate - Fixed',32.0000,5.0000,39.6400,'[[regtime]]','[[regtime]]',39.6400);

--
-- Table structure for table `[[dbprefix]]sales_invoice_item`
--

CREATE TABLE `[[dbprefix]]sales_invoice_item` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `base_price` decimal(20,4) DEFAULT NULL COMMENT 'Base Price',
  `tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_row_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Row Total',
  `discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Amount',
  `row_total` decimal(20,4) DEFAULT NULL COMMENT 'Row Total',
  `base_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `base_price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `base_cost` decimal(20,4) DEFAULT NULL COMMENT 'Base Cost',
  `price` decimal(20,4) DEFAULT NULL COMMENT 'Price',
  `base_row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `product_id` int DEFAULT NULL COMMENT 'Product ID',
  `order_item_id` int DEFAULT NULL COMMENT 'Order Item ID',
  `additional_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Data',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Name',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `tax_ratio` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Ratio of tax invoiced over tax of the order item',
  `weee_tax_applied` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Weee Tax Applied',
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Amount',
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Row Amount',
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Disposition',
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Row Disposition',
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Amount',
  `base_weee_tax_applied_row_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Row Amnt',
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Disposition',
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Row Disposition',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_INVOICE_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICE_ITEM_PARENT_ID_[[DBPREFIX]]SALES_INVOICE_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_invoice` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Invoice Item';

--
-- Dumping data for table `[[dbprefix]]sales_invoice_item`
--

INSERT INTO `[[dbprefix]]sales_invoice_item` VALUES (1,1,29.0000,2.3900,29.0000,NULL,29.0000,NULL,31.3900,2.3900,31.3900,1.0000,NULL,29.0000,31.3900,31.3900,1428,1,NULL,NULL,'WS03-XS-Red','Iris Workout Top',0.0000,0.0000,NULL,'[]',NULL,0.0000,NULL,0.0000,NULL,NULL,NULL,0.0000),(2,2,32.0000,2.6400,32.0000,NULL,32.0000,NULL,34.6400,2.6400,34.6400,1.0000,NULL,32.0000,34.6400,34.6400,1492,2,NULL,NULL,'WS08-XS-Blue','Minerva LumaTech&trade; V-Tee',0.0000,0.0000,NULL,'[]',NULL,0.0000,NULL,0.0000,NULL,NULL,NULL,0.0000);

--
-- Table structure for table `[[dbprefix]]sales_invoiced_aggregated`
--

CREATE TABLE `[[dbprefix]]sales_invoiced_aggregated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `orders_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Orders Invoiced',
  `invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced',
  `invoiced_captured` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced Captured',
  `invoiced_not_captured` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced Not Captured',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_INVOICED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_INVOICED_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICED_AGGREGATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Invoiced Aggregated';

--
-- Dumping data for table `[[dbprefix]]sales_invoiced_aggregated`
--


--
-- Table structure for table `[[dbprefix]]sales_invoiced_aggregated_order`
--

CREATE TABLE `[[dbprefix]]sales_invoiced_aggregated_order` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `orders_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Orders Invoiced',
  `invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced',
  `invoiced_captured` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced Captured',
  `invoiced_not_captured` decimal(20,4) DEFAULT NULL COMMENT 'Invoiced Not Captured',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_INVOICED_AGGRED_ORDER_PERIOD_STORE_ID_ORDER_STS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_INVOICED_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_INVOICED_AGGRED_ORDER_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Invoiced Aggregated Order';

--
-- Dumping data for table `[[dbprefix]]sales_invoiced_aggregated_order`
--


--
-- Table structure for table `[[dbprefix]]sales_order`
--

CREATE TABLE `[[dbprefix]]sales_order` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `state` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'State',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Status',
  `coupon_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Coupon Code',
  `protect_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Protect Code',
  `shipping_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Description',
  `is_virtual` smallint unsigned DEFAULT NULL COMMENT 'Is Virtual',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `customer_id` int unsigned DEFAULT NULL COMMENT 'Customer ID',
  `base_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_discount_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Canceled',
  `base_discount_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Invoiced',
  `base_discount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Refunded',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `base_shipping_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Canceled',
  `base_shipping_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Invoiced',
  `base_shipping_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Refunded',
  `base_shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `base_shipping_tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Tax Refunded',
  `base_subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `base_subtotal_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Canceled',
  `base_subtotal_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Invoiced',
  `base_subtotal_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Refunded',
  `base_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `base_tax_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Canceled',
  `base_tax_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Invoiced',
  `base_tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Refunded',
  `base_to_global_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_to_order_rate` decimal(20,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `base_total_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Canceled',
  `base_total_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Invoiced',
  `base_total_invoiced_cost` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Invoiced Cost',
  `base_total_offline_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Offline Refunded',
  `base_total_online_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Online Refunded',
  `base_total_paid` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Paid',
  `base_total_qty_ordered` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Qty Ordered',
  `base_total_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Refunded',
  `discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Amount',
  `discount_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Discount Canceled',
  `discount_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Discount Invoiced',
  `discount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Discount Refunded',
  `grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Grand Total',
  `shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `shipping_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Canceled',
  `shipping_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Invoiced',
  `shipping_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Refunded',
  `shipping_tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `shipping_tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Tax Refunded',
  `store_to_base_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `store_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `subtotal_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Canceled',
  `subtotal_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Invoiced',
  `subtotal_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Refunded',
  `tax_amount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Amount',
  `tax_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Tax Canceled',
  `tax_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Tax Invoiced',
  `tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Tax Refunded',
  `total_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Total Canceled',
  `total_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Total Invoiced',
  `total_offline_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Total Offline Refunded',
  `total_online_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Total Online Refunded',
  `total_paid` decimal(20,4) DEFAULT NULL COMMENT 'Total Paid',
  `total_qty_ordered` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty Ordered',
  `total_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Total Refunded',
  `can_ship_partially` smallint unsigned DEFAULT NULL COMMENT 'Can Ship Partially',
  `can_ship_partially_item` smallint unsigned DEFAULT NULL COMMENT 'Can Ship Partially Item',
  `customer_is_guest` smallint unsigned DEFAULT NULL COMMENT 'Customer Is Guest',
  `customer_note_notify` smallint unsigned DEFAULT NULL COMMENT 'Customer Note Notify',
  `billing_address_id` int DEFAULT NULL COMMENT 'Billing Address ID',
  `customer_group_id` int DEFAULT NULL,
  `edit_increment` int DEFAULT NULL COMMENT 'Edit Increment',
  `email_sent` smallint DEFAULT NULL COMMENT 'Email Sent',
  `send_email` smallint unsigned DEFAULT NULL COMMENT 'Send Email',
  `forced_shipment_with_invoice` smallint unsigned DEFAULT NULL COMMENT 'Forced Do Shipment With Invoice',
  `payment_auth_expiration` int DEFAULT NULL COMMENT 'Payment Authorization Expiration',
  `quote_address_id` int DEFAULT NULL COMMENT 'Quote Address ID',
  `quote_id` int DEFAULT NULL COMMENT 'Quote ID',
  `shipping_address_id` int DEFAULT NULL COMMENT 'Shipping Address ID',
  `adjustment_negative` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Negative',
  `adjustment_positive` decimal(20,4) DEFAULT NULL COMMENT 'Adjustment Positive',
  `base_adjustment_negative` decimal(20,4) DEFAULT NULL COMMENT 'Base Adjustment Negative',
  `base_adjustment_positive` decimal(20,4) DEFAULT NULL COMMENT 'Base Adjustment Positive',
  `base_shipping_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Discount Amount',
  `base_subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `base_total_due` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Due',
  `payment_authorization_amount` decimal(20,4) DEFAULT NULL COMMENT 'Payment Authorization Amount',
  `shipping_discount_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Discount Amount',
  `subtotal_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `total_due` decimal(20,4) DEFAULT NULL COMMENT 'Total Due',
  `weight` decimal(12,4) DEFAULT NULL COMMENT 'Weight',
  `customer_dob` datetime DEFAULT NULL COMMENT 'Customer Dob',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `applied_rule_ids` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Applied Rule Ids',
  `base_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Base Currency Code',
  `customer_email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Email',
  `customer_firstname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Firstname',
  `customer_lastname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Lastname',
  `customer_middlename` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Middlename',
  `customer_prefix` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Prefix',
  `customer_suffix` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Suffix',
  `customer_taxvat` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Taxvat',
  `discount_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Discount Description',
  `ext_customer_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Ext Customer ID',
  `ext_order_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Ext Order ID',
  `global_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Global Currency Code',
  `hold_before_state` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Hold Before State',
  `hold_before_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Hold Before Status',
  `order_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Currency Code',
  `original_increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Original Increment ID',
  `relation_child_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Relation Child ID',
  `relation_child_real_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Relation Child Real ID',
  `relation_parent_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Relation Parent ID',
  `relation_parent_real_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Relation Parent Real ID',
  `remote_ip` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Remote Ip',
  `shipping_method` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `store_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Currency Code',
  `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Name',
  `x_forwarded_for` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'X Forwarded For',
  `customer_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Customer Note',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `total_item_count` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Total Item Count',
  `customer_gender` int DEFAULT NULL COMMENT 'Customer Gender',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `shipping_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Discount Tax Compensation Amount',
  `base_shipping_discount_tax_compensation_amnt` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Discount Tax Compensation Amount',
  `discount_tax_compensation_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Invoiced',
  `base_discount_tax_compensation_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Invoiced',
  `discount_tax_compensation_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Refunded',
  `base_discount_tax_compensation_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Refunded',
  `shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  `coupon_rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Coupon Sales Rule Name',
  `gift_message_id` int DEFAULT NULL COMMENT 'Gift Message ID',
  `paypal_ipn_customer_notified` int DEFAULT '0' COMMENT 'Paypal Ipn Customer Notified',
  `dispute_status` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Braintree Dispute Status',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_ORDER_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_STATUS` (`status`),
  KEY `[[DBPREFIX]]SALES_ORDER_STATE` (`state`),
  KEY `[[DBPREFIX]]SALES_ORDER_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_ORDER_CUSTOMER_ID` (`customer_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_EXT_ORDER_ID` (`ext_order_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_QUOTE_ID` (`quote_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_ORDER_SEND_EMAIL` (`send_email`),
  KEY `[[DBPREFIX]]SALES_ORDER_EMAIL_SENT` (`email_sent`),
  KEY `[[DBPREFIX]]SALES_ORDER_STORE_ID_STATE_CREATED_AT` (`store_id`,`state`,`created_at`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_CUSTOMER_ID_[[DBPREFIX]]CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `[[dbprefix]]customer_entity` (`entity_id`) ON DELETE SET NULL,
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order';

--
-- Dumping data for table `[[dbprefix]]sales_order`
--

INSERT INTO `[[dbprefix]]sales_order` VALUES (1,'processing','processing',NULL,'[[protect_code]]','Flat Rate - Fixed',0,1,1,0.0000,NULL,0.0000,NULL,36.3900,5.0000,NULL,5.0000,NULL,0.0000,NULL,29.0000,NULL,29.0000,NULL,2.3900,NULL,2.3900,NULL,1.0000,1.0000,NULL,36.3900,0.0000,NULL,NULL,36.3900,NULL,NULL,0.0000,NULL,0.0000,NULL,36.3900,5.0000,NULL,5.0000,NULL,0.0000,NULL,0.0000,0.0000,29.0000,NULL,29.0000,NULL,2.3900,NULL,2.3900,NULL,NULL,36.3900,NULL,NULL,36.3900,1.0000,NULL,NULL,NULL,0,1,2,1,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL,NULL,0.0000,31.3900,36.3900,NULL,0.0000,31.3900,36.3900,1.0000,'1973-12-15 00:00:00','000000001',NULL,'USD','roni_cost@example.com','Veronica','Costello',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,'flatrate_flatrate','USD','Main Website\nMain Website Store\nDefault Store View',NULL,NULL,'[[regtime]]','[[regtime]]',1,2,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,5.0000,5.0000,NULL,NULL,0,NULL),(2,'closed','closed',NULL,'[[protect_code1]]','Flat Rate - Fixed',0,1,1,0.0000,NULL,0.0000,0.0000,39.6400,5.0000,NULL,5.0000,5.0000,0.0000,0.0000,32.0000,NULL,32.0000,32.0000,2.6400,NULL,2.6400,2.6400,1.0000,1.0000,NULL,39.6400,0.0000,39.6400,NULL,39.6400,NULL,39.6400,0.0000,NULL,0.0000,0.0000,39.6400,5.0000,NULL,5.0000,5.0000,0.0000,0.0000,0.0000,0.0000,32.0000,NULL,32.0000,32.0000,2.6400,NULL,2.6400,2.6400,NULL,39.6400,39.6400,NULL,39.6400,1.0000,39.6400,NULL,NULL,0,1,4,1,NULL,NULL,NULL,NULL,NULL,NULL,2,3,0.0000,0.0000,0.0000,0.0000,0.0000,34.6400,0.0000,NULL,0.0000,34.6400,0.0000,1.0000,'1973-12-15 00:00:00','000000002',NULL,'USD','roni_cost@example.com','Veronica','Costello',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,'flatrate_flatrate','USD','Main Website\nMain Website Store\nDefault Store View',NULL,NULL,'[[regtime]]','[[regtime]]',1,2,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,5.0000,5.0000,NULL,NULL,0,NULL);

--
-- Table structure for table `[[dbprefix]]sales_order_address`
--

CREATE TABLE `[[dbprefix]]sales_order_address` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned DEFAULT NULL COMMENT 'Parent ID',
  `customer_address_id` int DEFAULT NULL COMMENT 'Customer Address ID',
  `quote_address_id` int DEFAULT NULL COMMENT 'Quote Address ID',
  `region_id` int DEFAULT NULL COMMENT 'Region ID',
  `customer_id` int DEFAULT NULL COMMENT 'Customer ID',
  `fax` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Fax',
  `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Region',
  `postcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Postcode',
  `lastname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Lastname',
  `street` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Street',
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'City',
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Email',
  `telephone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Phone Number',
  `country_id` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Country ID',
  `firstname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Firstname',
  `address_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Address Type',
  `prefix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Prefix',
  `middlename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Middlename',
  `suffix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Suffix',
  `company` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Company',
  `vat_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Vat ID',
  `vat_is_valid` smallint DEFAULT NULL COMMENT 'Vat Is Valid',
  `vat_request_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Vat Request ID',
  `vat_request_date` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Vat Request Date',
  `vat_request_success` smallint DEFAULT NULL COMMENT 'Vat Request Success',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_ADDRESS_PARENT_ID` (`parent_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_ADDRESS_PARENT_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order Address';

--
-- Dumping data for table `[[dbprefix]]sales_order_address`
--

INSERT INTO `[[dbprefix]]sales_order_address` VALUES (1,1,1,2,33,NULL,NULL,'Michigan','49628-7978','Costello','6146 Honey Bluff Parkway','Calder','roni_cost@example.com','(555) 229-3326','US','Veronica','shipping',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,1,1,1,33,NULL,NULL,'Michigan','49628-7978','Costello','6146 Honey Bluff Parkway','Calder','roni_cost@example.com','(555) 229-3326','US','Veronica','billing',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,2,1,4,33,NULL,NULL,'Michigan','49628-7978','Costello','6146 Honey Bluff Parkway','Calder','roni_cost@example.com','(555) 229-3326','US','Veronica','shipping',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,2,1,3,33,NULL,NULL,'Michigan','49628-7978','Costello','6146 Honey Bluff Parkway','Calder','roni_cost@example.com','(555) 229-3326','US','Veronica','billing',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]sales_order_aggregated_created`
--

CREATE TABLE `[[dbprefix]]sales_order_aggregated_created` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `total_qty_ordered` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Qty Ordered',
  `total_qty_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Qty Invoiced',
  `total_income_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Income Amount',
  `total_revenue_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Revenue Amount',
  `total_profit_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Profit Amount',
  `total_invoiced_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Invoiced Amount',
  `total_canceled_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Canceled Amount',
  `total_paid_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Paid Amount',
  `total_refunded_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Refunded Amount',
  `total_tax_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount',
  `total_tax_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount Actual',
  `total_shipping_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount',
  `total_shipping_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount Actual',
  `total_discount_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount',
  `total_discount_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_ORDER_AGGREGATED_CREATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_ORDER_AGGREGATED_CREATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_AGGREGATED_CREATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Aggregated Created';

--
-- Dumping data for table `[[dbprefix]]sales_order_aggregated_created`
--


--
-- Table structure for table `[[dbprefix]]sales_order_aggregated_updated`
--

CREATE TABLE `[[dbprefix]]sales_order_aggregated_updated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `total_qty_ordered` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Qty Ordered',
  `total_qty_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Qty Invoiced',
  `total_income_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Income Amount',
  `total_revenue_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Revenue Amount',
  `total_profit_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Profit Amount',
  `total_invoiced_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Invoiced Amount',
  `total_canceled_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Canceled Amount',
  `total_paid_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Paid Amount',
  `total_refunded_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Refunded Amount',
  `total_tax_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount',
  `total_tax_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount Actual',
  `total_shipping_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount',
  `total_shipping_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount Actual',
  `total_discount_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount',
  `total_discount_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_ORDER_AGGREGATED_UPDATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_AGGREGATED_UPDATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Aggregated Updated';

--
-- Dumping data for table `[[dbprefix]]sales_order_aggregated_updated`
--


--
-- Table structure for table `[[dbprefix]]sales_order_confirm_cancel`
--

CREATE TABLE `[[dbprefix]]sales_order_confirm_cancel` (
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `confirmation_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Random key',
  `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Cancellation reason',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created at',
  PRIMARY KEY (`order_id`),
  CONSTRAINT `FK_03CCFA99C5B542E2E2B2E14012FA1F07` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Save the confirmation key to cancel guest order';

--
-- Dumping data for table `[[dbprefix]]sales_order_confirm_cancel`
--


--
-- Table structure for table `[[dbprefix]]sales_order_data_exporter_cl`
--

CREATE TABLE `[[dbprefix]]sales_order_data_exporter_cl` (
  `version_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Version ID',
  `entity_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  PRIMARY KEY (`version_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_order_data_exporter_cl';

--
-- Dumping data for table `[[dbprefix]]sales_order_data_exporter_cl`
--

INSERT INTO `[[dbprefix]]sales_order_data_exporter_cl` VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,2),(9,2),(10,2),(11,2),(12,2),(13,2),(14,2),(15,2),(16,2);

--
-- Table structure for table `[[dbprefix]]sales_order_grid`
--

CREATE TABLE `[[dbprefix]]sales_order_grid` (
  `entity_id` int unsigned NOT NULL COMMENT 'Entity ID',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Status',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store Name',
  `customer_id` int unsigned DEFAULT NULL COMMENT 'Customer ID',
  `base_grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_total_paid` decimal(20,4) DEFAULT NULL COMMENT 'Base Total Paid',
  `grand_total` decimal(20,4) DEFAULT NULL COMMENT 'Grand Total',
  `total_paid` decimal(20,4) DEFAULT NULL COMMENT 'Total Paid',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `base_currency_code` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Base Currency Code',
  `order_currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Currency Code',
  `shipping_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Name',
  `billing_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Name',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `billing_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Address',
  `shipping_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Address',
  `shipping_information` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Method Name',
  `customer_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Email',
  `customer_group` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Group',
  `subtotal` decimal(20,4) DEFAULT NULL COMMENT 'Subtotal',
  `shipping_and_handling` decimal(20,4) DEFAULT NULL COMMENT 'Shipping and handling amount',
  `customer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Name',
  `payment_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Payment Method',
  `total_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Total Refunded',
  `pickup_location_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Pickup Location Code',
  `dispute_status` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Braintree Dispute Status',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_ORDER_GRID_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_STATUS` (`status`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_BASE_GRAND_TOTAL` (`base_grand_total`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_BASE_TOTAL_PAID` (`base_total_paid`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_GRAND_TOTAL` (`grand_total`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_TOTAL_PAID` (`total_paid`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_SHIPPING_NAME` (`shipping_name`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_BILLING_NAME` (`billing_name`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_CUSTOMER_ID` (`customer_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_ORDER_GRID_PICKUP_LOCATION_CODE` (`pickup_location_code`),
  FULLTEXT KEY `FTI_B1EE20E09A9B65FBC10BE8CC9A273F85` (`increment_id`,`billing_name`,`shipping_name`,`shipping_address`,`billing_address`,`customer_name`,`customer_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order Grid';

--
-- Dumping data for table `[[dbprefix]]sales_order_grid`
--

INSERT INTO `[[dbprefix]]sales_order_grid` VALUES (1,'processing',1,'Main Website\nMain Website Store\nDefault Store View',1,36.3900,36.3900,36.3900,36.3900,'000000001','USD','USD','Veronica Costello','Veronica Costello','[[regtime]]','[[regtime]]','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Flat Rate - Fixed','roni_cost@example.com','1',29.0000,5.0000,'Veronica Costello','checkmo',NULL,NULL,NULL),(2,'closed',1,'Main Website\nMain Website Store\nDefault Store View',1,39.6400,39.6400,39.6400,39.6400,'000000002','USD','USD','Veronica Costello','Veronica Costello','[[regtime]]','[[regtime]]','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Flat Rate - Fixed','roni_cost@example.com','1',32.0000,5.0000,'Veronica Costello','checkmo',39.6400,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]sales_order_item`
--

CREATE TABLE `[[dbprefix]]sales_order_item` (
  `item_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item ID',
  `order_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Order ID',
  `parent_item_id` int unsigned DEFAULT NULL COMMENT 'Parent Item ID',
  `quote_item_id` int unsigned DEFAULT NULL COMMENT 'Quote Item ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `product_id` int unsigned DEFAULT NULL COMMENT 'Product ID',
  `product_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Product Type',
  `product_options` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Product Options',
  `weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Weight',
  `is_virtual` smallint unsigned DEFAULT NULL COMMENT 'Is Virtual',
  `sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Name',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `applied_rule_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Applied Rule Ids',
  `additional_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Data',
  `is_qty_decimal` smallint unsigned DEFAULT NULL COMMENT 'Is Qty Decimal',
  `no_discount` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'No Discount',
  `qty_backordered` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Backordered',
  `qty_canceled` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Canceled',
  `qty_invoiced` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Invoiced',
  `qty_ordered` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Ordered',
  `qty_refunded` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Refunded',
  `qty_shipped` decimal(12,4) DEFAULT '0.0000' COMMENT 'Qty Shipped',
  `base_cost` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Cost',
  `price` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `base_price` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Price',
  `original_price` decimal(20,4) DEFAULT NULL COMMENT 'Original Price',
  `base_original_price` decimal(20,4) DEFAULT NULL COMMENT 'Base Original Price',
  `tax_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Percent',
  `tax_amount` decimal(20,4) DEFAULT '0.0000' COMMENT 'Tax Amount',
  `base_tax_amount` decimal(20,4) DEFAULT '0.0000' COMMENT 'Base Tax Amount',
  `tax_invoiced` decimal(20,4) DEFAULT '0.0000' COMMENT 'Tax Invoiced',
  `base_tax_invoiced` decimal(20,4) DEFAULT '0.0000' COMMENT 'Base Tax Invoiced',
  `discount_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Percent',
  `discount_amount` decimal(20,4) DEFAULT '0.0000' COMMENT 'Discount Amount',
  `base_discount_amount` decimal(20,4) DEFAULT '0.0000' COMMENT 'Base Discount Amount',
  `discount_invoiced` decimal(20,4) DEFAULT '0.0000' COMMENT 'Discount Invoiced',
  `base_discount_invoiced` decimal(20,4) DEFAULT '0.0000' COMMENT 'Base Discount Invoiced',
  `amount_refunded` decimal(20,4) DEFAULT '0.0000' COMMENT 'Amount Refunded',
  `base_amount_refunded` decimal(20,4) DEFAULT '0.0000' COMMENT 'Base Amount Refunded',
  `row_total` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Total',
  `base_row_total` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Total',
  `row_invoiced` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Invoiced',
  `base_row_invoiced` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Invoiced',
  `row_weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Weight',
  `base_tax_before_discount` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Before Discount',
  `tax_before_discount` decimal(20,4) DEFAULT NULL COMMENT 'Tax Before Discount',
  `ext_order_item_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Ext Order Item ID',
  `locked_do_invoice` smallint unsigned DEFAULT NULL COMMENT 'Locked Do Invoice',
  `locked_do_ship` smallint unsigned DEFAULT NULL COMMENT 'Locked Do Ship',
  `price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_price_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `base_row_total_incl_tax` decimal(20,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Amount',
  `base_discount_tax_compensation_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Amount',
  `discount_tax_compensation_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Invoiced',
  `base_discount_tax_compensation_invoiced` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Invoiced',
  `discount_tax_compensation_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Refunded',
  `base_discount_tax_compensation_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Tax Compensation Refunded',
  `tax_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Tax Canceled',
  `discount_tax_compensation_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Discount Tax Compensation Canceled',
  `tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Tax Refunded',
  `base_tax_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Tax Refunded',
  `discount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Discount Refunded',
  `base_discount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Discount Refunded',
  `weee_tax_applied` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Weee Tax Applied',
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Amount',
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Row Amount',
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Disposition',
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Row Disposition',
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Amount',
  `base_weee_tax_applied_row_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Row Amnt',
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Disposition',
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Row Disposition',
  `gift_message_id` int DEFAULT NULL COMMENT 'Gift Message ID',
  `gift_message_available` int DEFAULT NULL COMMENT 'Gift Message Available',
  `free_shipping` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Free Shipping',
  PRIMARY KEY (`item_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_ITEM_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_ITEM_ORDER_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_ITEM_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order Item';

--
-- Dumping data for table `[[dbprefix]]sales_order_item`
--

INSERT INTO `[[dbprefix]]sales_order_item` VALUES (1,1,NULL,NULL,1,'[[regtime]]','[[regtime]]',1428,'configurable','{\"info_buyRequest\":{\"qty\":1,\"super_attribute\":{\"142\":\"166\",\"93\":\"58\"},\"options\":[]},\"attributes_info\":[{\"label\":\"Size\",\"value\":\"XS\",\"option_id\":142,\"option_value\":\"166\"},{\"label\":\"Color\",\"value\":\"Red\",\"option_id\":93,\"option_value\":\"58\"}],\"simple_name\":\"Iris Workout Top-XS-Red\",\"simple_sku\":\"WS03-XS-Red\",\"product_calculations\":1,\"shipment_type\":0}',1.0000,NULL,'WS03-XS-Red','Iris Workout Top',NULL,NULL,NULL,0,0,NULL,0.0000,1.0000,1.0000,0.0000,1.0000,NULL,29.0000,29.0000,29.0000,29.0000,8.2500,2.3900,2.3900,2.3900,2.3900,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,29.0000,29.0000,29.0000,29.0000,1.0000,NULL,NULL,NULL,NULL,NULL,31.3900,31.3900,31.3900,31.3900,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0),(2,2,NULL,NULL,1,'[[regtime]]','[[regtime]]',1492,'configurable','{\"info_buyRequest\":{\"qty\":\"1.0000\",\"super_attribute\":{\"142\":\"166\",\"93\":\"50\"},\"options\":[]},\"attributes_info\":[{\"label\":\"Size\",\"value\":\"XS\",\"option_id\":142,\"option_value\":\"166\"},{\"label\":\"Color\",\"value\":\"Blue\",\"option_id\":93,\"option_value\":\"50\"}],\"simple_name\":\"Minerva LumaTech&trade; V-Tee-XS-Blue\",\"simple_sku\":\"WS08-XS-Blue\",\"product_calculations\":1,\"shipment_type\":0}',1.0000,NULL,'WS08-XS-Blue','Minerva LumaTech&trade; V-Tee',NULL,NULL,NULL,0,0,NULL,0.0000,1.0000,1.0000,1.0000,1.0000,NULL,32.0000,32.0000,32.0000,32.0000,8.2500,2.6400,2.6400,2.6400,2.6400,0.0000,0.0000,0.0000,0.0000,0.0000,32.0000,32.0000,32.0000,32.0000,32.0000,32.0000,1.0000,NULL,NULL,NULL,NULL,NULL,34.6400,34.6400,34.6400,34.6400,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,2.6400,2.6400,0.0000,0.0000,'[]',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0);

--
-- Table structure for table `[[dbprefix]]sales_order_payment`
--

CREATE TABLE `[[dbprefix]]sales_order_payment` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `base_shipping_captured` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Captured',
  `shipping_captured` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Captured',
  `amount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Amount Refunded',
  `base_amount_paid` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Paid',
  `amount_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Amount Canceled',
  `base_amount_authorized` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Authorized',
  `base_amount_paid_online` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Paid Online',
  `base_amount_refunded_online` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Refunded Online',
  `base_shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `shipping_amount` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `amount_paid` decimal(20,4) DEFAULT NULL COMMENT 'Amount Paid',
  `amount_authorized` decimal(20,4) DEFAULT NULL COMMENT 'Amount Authorized',
  `base_amount_ordered` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Ordered',
  `base_shipping_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Shipping Refunded',
  `shipping_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Shipping Refunded',
  `base_amount_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Refunded',
  `amount_ordered` decimal(20,4) DEFAULT NULL COMMENT 'Amount Ordered',
  `base_amount_canceled` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount Canceled',
  `quote_payment_id` int DEFAULT NULL COMMENT 'Quote Payment ID',
  `additional_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Data',
  `cc_exp_month` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Exp Month',
  `cc_ss_start_year` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Ss Start Year',
  `echeck_bank_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Echeck Bank Name',
  `method` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Method',
  `cc_debug_request_body` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Debug Request Body',
  `cc_secure_verify` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Secure Verify',
  `protection_eligibility` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Protection Eligibility',
  `cc_approval` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Approval',
  `cc_last_4` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Last 4',
  `cc_status_description` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Status Description',
  `echeck_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Echeck Type',
  `cc_debug_response_serialized` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Debug Response Serialized',
  `cc_ss_start_month` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Ss Start Month',
  `echeck_account_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Echeck Account Type',
  `last_trans_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Last Trans ID',
  `cc_cid_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Cid Status',
  `cc_owner` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Owner',
  `cc_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Type',
  `po_number` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Po Number',
  `cc_exp_year` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Exp Year',
  `cc_status` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Status',
  `echeck_routing_number` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Echeck Routing Number',
  `account_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Account Status',
  `anet_trans_method` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Anet Trans Method',
  `cc_debug_response_body` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Debug Response Body',
  `cc_ss_issue` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Ss Issue',
  `echeck_account_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Echeck Account Name',
  `cc_avs_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Avs Status',
  `cc_number_enc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `cc_trans_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Cc Trans ID',
  `address_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Address Status',
  `additional_information` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Information',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_PAYMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_PAYMENT_PARENT_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order Payment';

--
-- Dumping data for table `[[dbprefix]]sales_order_payment`
--

INSERT INTO `[[dbprefix]]sales_order_payment` VALUES (1,1,5.0000,5.0000,NULL,36.3900,NULL,NULL,NULL,NULL,5.0000,5.0000,36.3900,NULL,36.3900,NULL,NULL,NULL,36.3900,NULL,NULL,NULL,NULL,NULL,NULL,'checkmo',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{\"method_title\":\"Check \\/ Money order\"}'),(2,2,5.0000,5.0000,39.6400,39.6400,NULL,NULL,NULL,NULL,5.0000,5.0000,39.6400,NULL,39.6400,5.0000,5.0000,39.6400,39.6400,NULL,NULL,NULL,NULL,NULL,NULL,'checkmo',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{\"method_title\":\"Check \\/ Money order\"}');

--
-- Table structure for table `[[dbprefix]]sales_order_status`
--

CREATE TABLE `[[dbprefix]]sales_order_status` (
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Status',
  `label` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Label',
  PRIMARY KEY (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Status Table';

--
-- Dumping data for table `[[dbprefix]]sales_order_status`
--

INSERT INTO `[[dbprefix]]sales_order_status` VALUES ('canceled','Canceled'),('closed','Closed'),('complete','Complete'),('fraud','Suspected Fraud'),('holded','On Hold'),('payment_review','Payment Review'),('paypal_canceled_reversal','PayPal Canceled Reversal'),('paypal_reversed','PayPal Reversed'),('pending','Pending'),('pending_payment','Pending Payment'),('pending_paypal','Pending PayPal'),('processing','Processing');

--
-- Table structure for table `[[dbprefix]]sales_order_status_change_history`
--

CREATE TABLE `[[dbprefix]]sales_order_status_change_history` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Order status updated at',
  PRIMARY KEY (`entity_id`),
  KEY `FK_DA8CBD7803251060EDE247D400FBBD93` (`order_id`),
  CONSTRAINT `FK_DA8CBD7803251060EDE247D400FBBD93` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='Save the updated order status with timestamp';

--
-- Dumping data for table `[[dbprefix]]sales_order_status_change_history`
--

INSERT INTO `[[dbprefix]]sales_order_status_change_history` VALUES (1,1,'pending','[[regtime]]'),(2,1,'processing','[[regtime]]'),(3,1,'processing','[[regtime]]'),(4,2,'pending','[[regtime]]'),(5,2,'processing','[[regtime]]'),(6,2,'processing','[[regtime]]'),(7,2,'closed','[[regtime]]');

--
-- Table structure for table `[[dbprefix]]sales_order_status_data_exporter_cl`
--

CREATE TABLE `[[dbprefix]]sales_order_status_data_exporter_cl` (
  `version_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Version ID',
  `entity_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'Order status',
  PRIMARY KEY (`version_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]sales_order_status_data_exporter_cl';

--
-- Dumping data for table `[[dbprefix]]sales_order_status_data_exporter_cl`
--

INSERT INTO `[[dbprefix]]sales_order_status_data_exporter_cl` VALUES (1,'pending'),(2,'pending_payment'),(3,'processing'),(4,'holded'),(5,'complete'),(6,'closed'),(7,'canceled'),(8,'fraud'),(9,'payment_review'),(10,'pending_paypal'),(11,'paypal_reversed'),(12,'paypal_canceled_reversal');

--
-- Table structure for table `[[dbprefix]]sales_order_status_history`
--

CREATE TABLE `[[dbprefix]]sales_order_status_history` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `is_customer_notified` int DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible On Front',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Comment',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Status',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `entity_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shows what entity history is bind to.',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_STATUS_HISTORY_PARENT_ID` (`parent_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_STATUS_HISTORY_CREATED_AT` (`created_at`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_STS_HISTORY_PARENT_ID_[[DBPREFIX]]SALES_ORDER_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Order Status History';

--
-- Dumping data for table `[[dbprefix]]sales_order_status_history`
--

INSERT INTO `[[dbprefix]]sales_order_status_history` VALUES (1,2,1,0,'We refunded $39.64 offline.','closed','[[regtime]]','creditmemo');

--
-- Table structure for table `[[dbprefix]]sales_order_status_label`
--

CREATE TABLE `[[dbprefix]]sales_order_status_label` (
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Status',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  `label` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Label',
  PRIMARY KEY (`status`,`store_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_STATUS_LABEL_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_STATUS_LABEL_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_STS_LBL_STS_[[DBPREFIX]]SALES_ORDER_STS_STS` FOREIGN KEY (`status`) REFERENCES `[[dbprefix]]sales_order_status` (`status`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Status Label Table';

--
-- Dumping data for table `[[dbprefix]]sales_order_status_label`
--


--
-- Table structure for table `[[dbprefix]]sales_order_status_state`
--

CREATE TABLE `[[dbprefix]]sales_order_status_state` (
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Status',
  `state` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Label',
  `is_default` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is Default',
  `visible_on_front` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Visible on front',
  PRIMARY KEY (`status`,`state`),
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_STS_STATE_STS_[[DBPREFIX]]SALES_ORDER_STS_STS` FOREIGN KEY (`status`) REFERENCES `[[dbprefix]]sales_order_status` (`status`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Status Table';

--
-- Dumping data for table `[[dbprefix]]sales_order_status_state`
--

INSERT INTO `[[dbprefix]]sales_order_status_state` VALUES ('canceled','canceled',1,1),('closed','closed',1,1),('complete','complete',1,1),('fraud','payment_review',0,1),('fraud','processing',0,1),('holded','holded',1,1),('payment_review','payment_review',1,1),('pending','new',1,1),('pending_payment','pending_payment',1,0),('processing','processing',1,1);

--
-- Table structure for table `[[dbprefix]]sales_order_tax`
--

CREATE TABLE `[[dbprefix]]sales_order_tax` (
  `tax_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tax ID',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Code',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Title',
  `percent` decimal(12,4) DEFAULT NULL COMMENT 'Percent',
  `amount` decimal(20,4) DEFAULT NULL COMMENT 'Amount',
  `priority` int NOT NULL COMMENT 'Priority',
  `position` int NOT NULL COMMENT 'Position',
  `base_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Amount',
  `process` smallint NOT NULL COMMENT 'Process',
  `base_real_amount` decimal(20,4) DEFAULT NULL COMMENT 'Base Real Amount',
  PRIMARY KEY (`tax_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_TAX_ORDER_ID_PRIORITY_POSITION` (`order_id`,`priority`,`position`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Tax Table';

--
-- Dumping data for table `[[dbprefix]]sales_order_tax`
--

INSERT INTO `[[dbprefix]]sales_order_tax` VALUES (1,1,'US-MI-*-Rate 1','US-MI-*-Rate 1',8.2500,2.3900,0,0,2.3900,0,2.3900),(2,2,'US-MI-*-Rate 1','US-MI-*-Rate 1',8.2500,2.6400,0,0,2.6400,0,2.6400);

--
-- Table structure for table `[[dbprefix]]sales_order_tax_item`
--

CREATE TABLE `[[dbprefix]]sales_order_tax_item` (
  `tax_item_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tax Item ID',
  `tax_id` int unsigned NOT NULL COMMENT 'Tax ID',
  `item_id` int unsigned DEFAULT NULL COMMENT 'Item ID',
  `tax_percent` decimal(12,4) NOT NULL COMMENT 'Real Tax Percent For Item',
  `amount` decimal(20,4) NOT NULL COMMENT 'Tax amount for the item and tax rate',
  `base_amount` decimal(20,4) NOT NULL COMMENT 'Base tax amount for the item and tax rate',
  `real_amount` decimal(20,4) NOT NULL COMMENT 'Real tax amount for the item and tax rate',
  `real_base_amount` decimal(20,4) NOT NULL COMMENT 'Real base tax amount for the item and tax rate',
  `associated_item_id` int unsigned DEFAULT NULL COMMENT 'Id of the associated item',
  `taxable_item_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Type of the taxable item',
  PRIMARY KEY (`tax_item_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_ORDER_TAX_ITEM_TAX_ID_ITEM_ID` (`tax_id`,`item_id`),
  KEY `FK_C5158D2E6E4CE4AE5A4588108F277924` (`associated_item_id`),
  KEY `[[DBPREFIX]]SALES_ORDER_TAX_ITEM_ITEM_ID` (`item_id`),
  CONSTRAINT `FK_C5158D2E6E4CE4AE5A4588108F277924` FOREIGN KEY (`associated_item_id`) REFERENCES `[[dbprefix]]sales_order_item` (`item_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_TAX_ITEM_ITEM_ID_[[DBPREFIX]]SALES_ORDER_ITEM_ITEM_ID` FOREIGN KEY (`item_id`) REFERENCES `[[dbprefix]]sales_order_item` (`item_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_ORDER_TAX_ITEM_TAX_ID_[[DBPREFIX]]SALES_ORDER_TAX_TAX_ID` FOREIGN KEY (`tax_id`) REFERENCES `[[dbprefix]]sales_order_tax` (`tax_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Order Tax Item';

--
-- Dumping data for table `[[dbprefix]]sales_order_tax_item`
--

INSERT INTO `[[dbprefix]]sales_order_tax_item` VALUES (1,1,NULL,8.2500,2.3900,2.3900,2.3900,2.3900,NULL,'product'),(2,2,NULL,8.2500,2.6400,2.6400,2.6400,2.6400,NULL,'product');

--
-- Table structure for table `[[dbprefix]]sales_payment_transaction`
--

CREATE TABLE `[[dbprefix]]sales_payment_transaction` (
  `transaction_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Transaction ID',
  `parent_id` int unsigned DEFAULT NULL COMMENT 'Parent ID',
  `order_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Order ID',
  `payment_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Payment ID',
  `txn_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Txn ID',
  `parent_txn_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Parent Txn ID',
  `txn_type` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Txn Type',
  `is_closed` smallint unsigned NOT NULL DEFAULT '1' COMMENT 'Is Closed',
  `additional_information` blob COMMENT 'Additional Information',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  PRIMARY KEY (`transaction_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_PAYMENT_TRANSACTION_ORDER_ID_PAYMENT_ID_TXN_ID` (`order_id`,`payment_id`,`txn_id`),
  KEY `[[DBPREFIX]]SALES_PAYMENT_TRANSACTION_PARENT_ID` (`parent_id`),
  KEY `[[DBPREFIX]]SALES_PAYMENT_TRANSACTION_PAYMENT_ID` (`payment_id`),
  CONSTRAINT `FK_73B7F4264FB521058F4E709F99A54F3A` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_payment_transaction` (`transaction_id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A76BCDC6CC14CF321955BB90C26EF2B1` FOREIGN KEY (`payment_id`) REFERENCES `[[dbprefix]]sales_order_payment` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_PAYMENT_TRANSACTION_ORDER_ID_[[DBPREFIX]]SALES_ORDER_ENTT_ID` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Payment Transaction';

--
-- Dumping data for table `[[dbprefix]]sales_payment_transaction`
--


--
-- Table structure for table `[[dbprefix]]sales_refunded_aggregated`
--

CREATE TABLE `[[dbprefix]]sales_refunded_aggregated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `refunded` decimal(20,4) DEFAULT NULL COMMENT 'Refunded',
  `online_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Online Refunded',
  `offline_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Offline Refunded',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_REFUNDED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_REFUNDED_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_REFUNDED_AGGREGATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Refunded Aggregated';

--
-- Dumping data for table `[[dbprefix]]sales_refunded_aggregated`
--


--
-- Table structure for table `[[dbprefix]]sales_refunded_aggregated_order`
--

CREATE TABLE `[[dbprefix]]sales_refunded_aggregated_order` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `refunded` decimal(20,4) DEFAULT NULL COMMENT 'Refunded',
  `online_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Online Refunded',
  `offline_refunded` decimal(20,4) DEFAULT NULL COMMENT 'Offline Refunded',
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_REFUNDED_AGGRED_ORDER_PERIOD_STORE_ID_ORDER_STS` (`period`,`store_id`,`order_status`),
  KEY `[[DBPREFIX]]SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_REFUNDED_AGGRED_ORDER_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Refunded Aggregated Order';

--
-- Dumping data for table `[[dbprefix]]sales_refunded_aggregated_order`
--


--
-- Table structure for table `[[dbprefix]]sales_sequence_meta`
--

CREATE TABLE `[[dbprefix]]sales_sequence_meta` (
  `meta_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `entity_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Prefix',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  `sequence_table` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'table for sequence',
  PRIMARY KEY (`meta_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_SEQUENCE_META_ENTITY_TYPE_STORE_ID` (`entity_type`,`store_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='sales_sequence_meta';

--
-- Dumping data for table `[[dbprefix]]sales_sequence_meta`
--

INSERT INTO `[[dbprefix]]sales_sequence_meta` VALUES (1,'order',0,'[[dbprefix]]sequence_order_0'),(2,'invoice',0,'[[dbprefix]]sequence_invoice_0'),(3,'creditmemo',0,'[[dbprefix]]sequence_creditmemo_0'),(4,'shipment',0,'[[dbprefix]]sequence_shipment_0'),(5,'order',1,'[[dbprefix]]sequence_order_1'),(6,'invoice',1,'[[dbprefix]]sequence_invoice_1'),(7,'creditmemo',1,'[[dbprefix]]sequence_creditmemo_1'),(8,'shipment',1,'[[dbprefix]]sequence_shipment_1');

--
-- Table structure for table `[[dbprefix]]sales_sequence_profile`
--

CREATE TABLE `[[dbprefix]]sales_sequence_profile` (
  `profile_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `meta_id` int unsigned NOT NULL COMMENT 'Meta_id',
  `prefix` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Prefix',
  `suffix` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Suffix',
  `start_value` int unsigned NOT NULL DEFAULT '1' COMMENT 'Start value for sequence',
  `step` int unsigned NOT NULL DEFAULT '1' COMMENT 'Step for sequence',
  `max_value` int unsigned NOT NULL COMMENT 'MaxValue for sequence',
  `warning_value` int unsigned NOT NULL COMMENT 'WarningValue for sequence',
  `is_active` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'isActive flag',
  PRIMARY KEY (`profile_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_SEQUENCE_PROFILE_META_ID_PREFIX_SUFFIX` (`meta_id`,`prefix`,`suffix`),
  CONSTRAINT `FK_FF2697E40702A51DC607A883D7D1418F` FOREIGN KEY (`meta_id`) REFERENCES `[[dbprefix]]sales_sequence_meta` (`meta_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='sales_sequence_profile';

--
-- Dumping data for table `[[dbprefix]]sales_sequence_profile`
--

INSERT INTO `[[dbprefix]]sales_sequence_profile` VALUES (1,1,NULL,NULL,1,1,4294967295,4294966295,1),(2,2,NULL,NULL,1,1,4294967295,4294966295,1),(3,3,NULL,NULL,1,1,4294967295,4294966295,1),(4,4,NULL,NULL,1,1,4294967295,4294966295,1),(5,5,NULL,NULL,1,1,4294967295,4294966295,1),(6,6,NULL,NULL,1,1,4294967295,4294966295,1),(7,7,NULL,NULL,1,1,4294967295,4294966295,1),(8,8,NULL,NULL,1,1,4294967295,4294966295,1);

--
-- Table structure for table `[[dbprefix]]sales_shipment`
--

CREATE TABLE `[[dbprefix]]sales_shipment` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `total_weight` decimal(12,4) DEFAULT NULL COMMENT 'Total Weight',
  `total_qty` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty',
  `email_sent` smallint DEFAULT NULL COMMENT 'Email Sent',
  `send_email` smallint unsigned DEFAULT NULL COMMENT 'Send Email',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `customer_id` int DEFAULT NULL COMMENT 'Customer ID',
  `shipping_address_id` int DEFAULT NULL COMMENT 'Shipping Address ID',
  `billing_address_id` int DEFAULT NULL COMMENT 'Billing Address ID',
  `shipment_status` int DEFAULT NULL COMMENT 'Shipment Status',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `packages` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Packed Products in Packages',
  `shipping_label` mediumblob COMMENT 'Shipping Label Content',
  `customer_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Customer Note',
  `customer_note_notify` smallint unsigned DEFAULT NULL COMMENT 'Customer Note Notify',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_SHIPMENT_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_TOTAL_QTY` (`total_qty`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_SEND_EMAIL` (`send_email`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_EMAIL_SENT` (`email_sent`),
  CONSTRAINT `[[DBPREFIX]]SALES_SHIPMENT_ORDER_ID_[[DBPREFIX]]SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]sales_order` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALES_SHIPMENT_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Shipment';

--
-- Dumping data for table `[[dbprefix]]sales_shipment`
--

INSERT INTO `[[dbprefix]]sales_shipment` VALUES (1,1,NULL,1.0000,NULL,NULL,1,1,1,2,NULL,'000000001','[[regtime]]','[[regtime]]','[]',NULL,NULL,NULL),(2,1,NULL,1.0000,NULL,NULL,2,1,3,4,NULL,'000000002','[[regtime]]','[[regtime]]','[]',NULL,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]sales_shipment_comment`
--

CREATE TABLE `[[dbprefix]]sales_shipment_comment` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `is_customer_notified` int DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible On Front',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Comment',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  `user_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Admin User ID',
  `user_type` int unsigned NOT NULL DEFAULT '0' COMMENT 'User Type',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_SHIPMENT_COMMENT_ENTITY_ID_USER_ID_USER_TYPE` (`entity_id`,`user_id`,`user_type`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_COMMENT_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_189F8F82DC76F0FCED78AFF20039A3A2` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_shipment` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Shipment Comment';

--
-- Dumping data for table `[[dbprefix]]sales_shipment_comment`
--


--
-- Table structure for table `[[dbprefix]]sales_shipment_grid`
--

CREATE TABLE `[[dbprefix]]sales_shipment_grid` (
  `entity_id` int unsigned NOT NULL COMMENT 'Entity ID',
  `increment_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Increment ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_increment_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Increment ID',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `order_created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Order Increment ID',
  `customer_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Customer Name',
  `total_qty` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty',
  `shipment_status` int DEFAULT NULL COMMENT 'Shipment Status',
  `order_status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order',
  `billing_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Address',
  `shipping_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Address',
  `billing_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Billing Name',
  `shipping_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Name',
  `customer_email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Customer Email',
  `customer_group_id` int DEFAULT NULL,
  `payment_method` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Payment Method',
  `shipping_information` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Method Name',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_INCREMENT_ID_STORE_ID` (`increment_id`,`store_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_TOTAL_QTY` (`total_qty`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_SHIPMENT_STATUS` (`shipment_status`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_ORDER_STATUS` (`order_status`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_CREATED_AT` (`created_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_UPDATED_AT` (`updated_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_SHIPPING_NAME` (`shipping_name`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_BILLING_NAME` (`billing_name`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_GRID_ORDER_ID` (`order_id`),
  FULLTEXT KEY `FTI_0660C059FCD64B594430BAD2A34B0BA9` (`increment_id`,`order_increment_id`,`shipping_name`,`customer_name`,`customer_email`,`billing_address`,`shipping_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Shipment Grid';

--
-- Dumping data for table `[[dbprefix]]sales_shipment_grid`
--

INSERT INTO `[[dbprefix]]sales_shipment_grid` VALUES (1,'000000001',1,'000000001',1,'[[regtime]]','Veronica Costello',1.0000,NULL,'processing','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Veronica Costello','Veronica Costello','roni_cost@example.com',1,'checkmo','Flat Rate - Fixed','[[regtime]]','[[regtime]]'),(2,'000000002',1,'000000002',2,'[[regtime]]','Veronica Costello',1.0000,NULL,'processing','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','6146 Honey Bluff Parkway,Calder,Michigan,49628-7978','Veronica Costello','Veronica Costello','roni_cost@example.com',1,'checkmo','Flat Rate - Fixed','[[regtime]]','[[regtime]]');

--
-- Table structure for table `[[dbprefix]]sales_shipment_item`
--

CREATE TABLE `[[dbprefix]]sales_shipment_item` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `row_total` decimal(20,4) DEFAULT NULL COMMENT 'Row Total',
  `price` decimal(20,4) DEFAULT NULL COMMENT 'Price',
  `weight` decimal(12,4) DEFAULT NULL COMMENT 'Weight',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `product_id` int DEFAULT NULL COMMENT 'Product ID',
  `order_item_id` int DEFAULT NULL COMMENT 'Order Item ID',
  `additional_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional Data',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Name',
  `sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sku',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_SHIPMENT_ITEM_PARENT_ID_[[DBPREFIX]]SALES_SHIPMENT_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_shipment` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Shipment Item';

--
-- Dumping data for table `[[dbprefix]]sales_shipment_item`
--

INSERT INTO `[[dbprefix]]sales_shipment_item` VALUES (1,1,NULL,29.0000,1.0000,1.0000,1428,1,NULL,NULL,'Iris Workout Top','WS03-XS-Red'),(2,2,NULL,32.0000,1.0000,1.0000,1492,2,NULL,NULL,'Minerva LumaTech&trade; V-Tee','WS08-XS-Blue');

--
-- Table structure for table `[[dbprefix]]sales_shipment_track`
--

CREATE TABLE `[[dbprefix]]sales_shipment_track` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `parent_id` int unsigned NOT NULL COMMENT 'Parent ID',
  `weight` decimal(12,4) DEFAULT NULL COMMENT 'Weight',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `order_id` int unsigned NOT NULL COMMENT 'Order ID',
  `track_number` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Number',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Title',
  `carrier_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Carrier Code',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
  PRIMARY KEY (`entity_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_TRACK_PARENT_ID` (`parent_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_TRACK_ORDER_ID` (`order_id`),
  KEY `[[DBPREFIX]]SALES_SHIPMENT_TRACK_CREATED_AT` (`created_at`),
  CONSTRAINT `[[DBPREFIX]]SALES_SHIPMENT_TRACK_PARENT_ID_[[DBPREFIX]]SALES_SHIPMENT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `[[dbprefix]]sales_shipment` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Flat Shipment Track';

--
-- Dumping data for table `[[dbprefix]]sales_shipment_track`
--


--
-- Table structure for table `[[dbprefix]]sales_shipping_aggregated`
--

CREATE TABLE `[[dbprefix]]sales_shipping_aggregated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `shipping_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Description',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `total_shipping` decimal(20,4) DEFAULT NULL COMMENT 'Total Shipping',
  `total_shipping_actual` decimal(20,4) DEFAULT NULL COMMENT 'Total Shipping Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_9BA127FB00B9D4A14A37F6574D5E1628` (`period`,`store_id`,`order_status`,`shipping_description`),
  KEY `[[DBPREFIX]]SALES_SHIPPING_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_SHIPPING_AGGREGATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Shipping Aggregated';

--
-- Dumping data for table `[[dbprefix]]sales_shipping_aggregated`
--


--
-- Table structure for table `[[dbprefix]]sales_shipping_aggregated_order`
--

CREATE TABLE `[[dbprefix]]sales_shipping_aggregated_order` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `shipping_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Shipping Description',
  `orders_count` int NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `total_shipping` decimal(20,4) DEFAULT NULL COMMENT 'Total Shipping',
  `total_shipping_actual` decimal(20,4) DEFAULT NULL COMMENT 'Total Shipping Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_FFC00FD9A23ABEF57E740B0115D76980` (`period`,`store_id`,`order_status`,`shipping_description`),
  KEY `[[DBPREFIX]]SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALES_SHPP_AGGRED_ORDER_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Shipping Aggregated Order';

--
-- Dumping data for table `[[dbprefix]]sales_shipping_aggregated_order`
--


--
-- Table structure for table `[[dbprefix]]salesrule`
--

CREATE TABLE `[[dbprefix]]salesrule` (
  `rule_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Name',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Description',
  `from_date` date DEFAULT NULL COMMENT 'From',
  `to_date` date DEFAULT NULL COMMENT 'To',
  `uses_per_customer` int NOT NULL DEFAULT '0' COMMENT 'Uses Per Customer',
  `is_active` smallint NOT NULL DEFAULT '0' COMMENT 'Is Active',
  `conditions_serialized` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Conditions Serialized',
  `actions_serialized` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Actions Serialized',
  `stop_rules_processing` smallint NOT NULL DEFAULT '1' COMMENT 'Stop Rules Processing',
  `is_advanced` smallint unsigned NOT NULL DEFAULT '1' COMMENT 'Is Advanced',
  `product_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Product Ids',
  `sort_order` int unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `simple_action` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Simple Action',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `discount_qty` decimal(12,4) DEFAULT NULL COMMENT 'Discount Qty',
  `discount_step` int unsigned NOT NULL DEFAULT '0' COMMENT 'Discount Step',
  `apply_to_shipping` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Apply To Shipping',
  `times_used` int NOT NULL DEFAULT '0' COMMENT 'Times Used',
  `is_rss` smallint NOT NULL DEFAULT '0' COMMENT 'Is Rss',
  `coupon_type` smallint unsigned NOT NULL DEFAULT '1' COMMENT 'Coupon Type',
  `use_auto_generation` smallint NOT NULL DEFAULT '0' COMMENT 'Use Auto Generation',
  `uses_per_coupon` int NOT NULL DEFAULT '0' COMMENT 'User Per Coupon',
  `simple_free_shipping` smallint unsigned DEFAULT NULL COMMENT 'Simple Free Shipping',
  PRIMARY KEY (`rule_id`),
  KEY `[[DBPREFIX]]SALESRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE` (`is_active`,`sort_order`,`to_date`,`from_date`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule';

--
-- Dumping data for table `[[dbprefix]]salesrule`
--

INSERT INTO `[[dbprefix]]salesrule` VALUES (1,'Buy 3 tee shirts and get the 4th free','Buy 3 tee shirts and get the 4th free',NULL,NULL,0,1,'{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Found\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\",\"attribute\":\"category_ids\",\"operator\":\"()\",\"value\":\"25,16\",\"is_value_processed\":false,\"attribute_scope\":null}]}]}','{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\"}',0,1,NULL,0,'buy_x_get_y',1.0000,NULL,3,0,0,1,1,0,0,0),(2,'Spend $50 or more - shipping is free!','Free shipping on any purchase over $50',NULL,NULL,0,1,'{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Address\",\"attribute\":\"base_subtotal\",\"operator\":\">=\",\"value\":\"50\",\"is_value_processed\":false}]}','{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\"}',0,1,NULL,0,'by_percent',0.0000,NULL,0,0,0,1,1,0,0,2),(3,'20% OFF Ever $200-plus purchase!*','Shopping cart price rule for the cart over $200. Does not applied on other sales items',NULL,NULL,0,1,'{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Address\",\"attribute\":\"base_subtotal\",\"operator\":\">=\",\"value\":\"200\",\"is_value_processed\":false}]}','{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"0\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\",\"attribute\":\"category_ids\",\"operator\":\"==\",\"value\":\"6\",\"is_value_processed\":false,\"attribute_scope\":null},{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\",\"attribute\":\"sale\",\"operator\":\"==\",\"value\":\"1\",\"is_value_processed\":false,\"attribute_scope\":null}]}]}',0,1,NULL,0,'by_percent',20.0000,NULL,0,0,0,1,1,0,0,0),(4,'$4 Luma water bottle (save 70%)','Use promo code H20 at checkout',NULL,NULL,1,1,'{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Found\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\"}]}','{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\\\\Combine\",\"attribute\":null,\"operator\":null,\"value\":\"1\",\"is_value_processed\":null,\"aggregator\":\"all\",\"conditions\":[{\"type\":\"Magento\\\\SalesRule\\\\Model\\\\Rule\\\\Condition\\\\Product\",\"attribute\":\"sku\",\"operator\":\"==\",\"value\":\"24-UG06\",\"is_value_processed\":false,\"attribute_scope\":null}]}',0,1,NULL,0,'by_percent',70.0000,NULL,0,0,0,1,2,0,0,0);

--
-- Table structure for table `[[dbprefix]]salesrule_coupon`
--

CREATE TABLE `[[dbprefix]]salesrule_coupon` (
  `coupon_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Coupon ID',
  `rule_id` int unsigned NOT NULL COMMENT 'Rule ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Code',
  `usage_limit` int unsigned DEFAULT NULL COMMENT 'Usage Limit',
  `usage_per_customer` int unsigned DEFAULT NULL COMMENT 'Usage Per Customer',
  `times_used` int unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  `expiration_date` datetime DEFAULT NULL COMMENT 'Expiration Date',
  `is_primary` smallint unsigned DEFAULT NULL COMMENT 'Is Primary',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Coupon Code Creation Date',
  `type` smallint DEFAULT '0' COMMENT 'Coupon Code Type',
  PRIMARY KEY (`coupon_id`),
  UNIQUE KEY `[[DBPREFIX]]SALESRULE_COUPON_CODE` (`code`),
  UNIQUE KEY `[[DBPREFIX]]SALESRULE_COUPON_RULE_ID_IS_PRIMARY` (`rule_id`,`is_primary`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_RULE_ID` (`rule_id`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_COUPON_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Coupon';

--
-- Dumping data for table `[[dbprefix]]salesrule_coupon`
--

INSERT INTO `[[dbprefix]]salesrule_coupon` VALUES (1,4,'H20',0,1,0,NULL,1,'[[regtime]]',0);

--
-- Table structure for table `[[dbprefix]]salesrule_coupon_aggregated`
--

CREATE TABLE `[[dbprefix]]salesrule_coupon_aggregated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `subtotal_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount Actual',
  `discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount Actual',
  `total_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount Actual',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_CBEFEADB1C2A9B55DFAD3BE4F646432A` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_RULE_NAME` (`rule_name`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Coupon Aggregated';

--
-- Dumping data for table `[[dbprefix]]salesrule_coupon_aggregated`
--


--
-- Table structure for table `[[dbprefix]]salesrule_coupon_aggregated_order`
--

CREATE TABLE `[[dbprefix]]salesrule_coupon_aggregated_order` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_D1503F028B39D307208B5D4A55397962` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_ORDER_RULE_NAME` (`rule_name`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_COUPON_AGGRED_ORDER_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Coupon Aggregated Order';

--
-- Dumping data for table `[[dbprefix]]salesrule_coupon_aggregated_order`
--


--
-- Table structure for table `[[dbprefix]]salesrule_coupon_aggregated_updated`
--

CREATE TABLE `[[dbprefix]]salesrule_coupon_aggregated_updated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `subtotal_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount Actual',
  `discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount Actual',
  `total_amount_actual` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount Actual',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_9EAC53B231F77BB66B08377A38D018A0` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_AGGREGATED_UPDATED_RULE_NAME` (`rule_name`),
  CONSTRAINT `FK_6C3A3678E3576613EF8DC515B44E3B30` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Coupon Aggregated Updated';

--
-- Dumping data for table `[[dbprefix]]salesrule_coupon_aggregated_updated`
--


--
-- Table structure for table `[[dbprefix]]salesrule_coupon_usage`
--

CREATE TABLE `[[dbprefix]]salesrule_coupon_usage` (
  `coupon_id` int unsigned NOT NULL COMMENT 'Coupon ID',
  `customer_id` int unsigned NOT NULL COMMENT 'Customer ID',
  `times_used` int unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  PRIMARY KEY (`coupon_id`,`customer_id`),
  KEY `[[DBPREFIX]]SALESRULE_COUPON_USAGE_CUSTOMER_ID` (`customer_id`),
  CONSTRAINT `FK_6A5DE9DEF99C62F7A570746C7D477433` FOREIGN KEY (`coupon_id`) REFERENCES `[[dbprefix]]salesrule_coupon` (`coupon_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_COUPON_USAGE_CSTR_ID_[[DBPREFIX]]CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `[[dbprefix]]customer_entity` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Coupon Usage';

--
-- Dumping data for table `[[dbprefix]]salesrule_coupon_usage`
--


--
-- Table structure for table `[[dbprefix]]salesrule_customer`
--

CREATE TABLE `[[dbprefix]]salesrule_customer` (
  `rule_customer_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rule Customer ID',
  `rule_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Rule ID',
  `customer_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Customer ID',
  `times_used` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  PRIMARY KEY (`rule_customer_id`),
  KEY `[[DBPREFIX]]SALESRULE_CUSTOMER_RULE_ID_CUSTOMER_ID` (`rule_id`,`customer_id`),
  KEY `[[DBPREFIX]]SALESRULE_CUSTOMER_CUSTOMER_ID_RULE_ID` (`customer_id`,`rule_id`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_CSTR_CSTR_ID_[[DBPREFIX]]CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `[[dbprefix]]customer_entity` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_CUSTOMER_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Customer';

--
-- Dumping data for table `[[dbprefix]]salesrule_customer`
--


--
-- Table structure for table `[[dbprefix]]salesrule_customer_group`
--

CREATE TABLE `[[dbprefix]]salesrule_customer_group` (
  `rule_id` int unsigned NOT NULL COMMENT 'Rule ID',
  `customer_group_id` int unsigned NOT NULL COMMENT 'Customer Group ID',
  PRIMARY KEY (`rule_id`,`customer_group_id`),
  KEY `[[DBPREFIX]]SALESRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`),
  CONSTRAINT `FK_F599EAF5E3C8694AB0B05FD19A9F7C41` FOREIGN KEY (`customer_group_id`) REFERENCES `[[dbprefix]]customer_group` (`customer_group_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_CUSTOMER_GROUP_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Rules To Customer Groups Relations';

--
-- Dumping data for table `[[dbprefix]]salesrule_customer_group`
--

INSERT INTO `[[dbprefix]]salesrule_customer_group` VALUES (1,0),(2,0),(3,0),(4,0),(1,1),(2,1),(3,1),(4,1),(1,2),(2,2),(3,2),(4,2),(1,3),(2,3),(3,3),(4,3);

--
-- Table structure for table `[[dbprefix]]salesrule_label`
--

CREATE TABLE `[[dbprefix]]salesrule_label` (
  `label_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Label ID',
  `rule_id` int unsigned NOT NULL COMMENT 'Rule ID',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Label',
  PRIMARY KEY (`label_id`),
  UNIQUE KEY `[[DBPREFIX]]SALESRULE_LABEL_RULE_ID_STORE_ID` (`rule_id`,`store_id`),
  KEY `[[DBPREFIX]]SALESRULE_LABEL_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_LABEL_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_LABEL_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Label';

--
-- Dumping data for table `[[dbprefix]]salesrule_label`
--


--
-- Table structure for table `[[dbprefix]]salesrule_product_attribute`
--

CREATE TABLE `[[dbprefix]]salesrule_product_attribute` (
  `rule_id` int unsigned NOT NULL COMMENT 'Rule ID',
  `website_id` smallint unsigned NOT NULL COMMENT 'Website ID',
  `customer_group_id` int unsigned NOT NULL COMMENT 'Customer Group ID',
  `attribute_id` smallint unsigned NOT NULL COMMENT 'Attribute ID',
  PRIMARY KEY (`rule_id`,`website_id`,`customer_group_id`,`attribute_id`),
  KEY `[[DBPREFIX]]SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID` (`website_id`),
  KEY `[[DBPREFIX]]SALESRULE_PRODUCT_ATTRIBUTE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `[[DBPREFIX]]SALESRULE_PRODUCT_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_5C6FB5B778D1DB61AA765B7085E71E13` FOREIGN KEY (`customer_group_id`) REFERENCES `[[dbprefix]]customer_group` (`customer_group_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_PRD_ATTR_ATTR_ID_[[DBPREFIX]]EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `[[dbprefix]]eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_PRD_ATTR_WS_ID_[[DBPREFIX]]STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_PRODUCT_ATTRIBUTE_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Salesrule Product Attribute';

--
-- Dumping data for table `[[dbprefix]]salesrule_product_attribute`
--

INSERT INTO `[[dbprefix]]salesrule_product_attribute` VALUES (1,1,0,105),(1,1,1,105),(1,1,2,105),(1,1,3,105),(3,1,0,105),(3,1,0,147),(3,1,1,105),(3,1,1,147),(3,1,2,105),(3,1,2,147),(3,1,3,105),(3,1,3,147),(4,1,0,74),(4,1,1,74),(4,1,2,74),(4,1,3,74);

--
-- Table structure for table `[[dbprefix]]salesrule_website`
--

CREATE TABLE `[[dbprefix]]salesrule_website` (
  `rule_id` int unsigned NOT NULL COMMENT 'Rule ID',
  `website_id` smallint unsigned NOT NULL COMMENT 'Website ID',
  PRIMARY KEY (`rule_id`,`website_id`),
  KEY `[[DBPREFIX]]SALESRULE_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `[[DBPREFIX]]SALESRULE_WEBSITE_RULE_ID_[[DBPREFIX]]SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `[[dbprefix]]salesrule` (`rule_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SALESRULE_WEBSITE_WEBSITE_ID_[[DBPREFIX]]STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Sales Rules To Websites Relations';

--
-- Dumping data for table `[[dbprefix]]salesrule_website`
--

INSERT INTO `[[dbprefix]]salesrule_website` VALUES (1,1),(2,1),(3,1),(4,1);

--
-- Table structure for table `[[dbprefix]]search_query`
--

CREATE TABLE `[[dbprefix]]search_query` (
  `query_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Query ID',
  `query_text` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Query text',
  `num_results` int unsigned NOT NULL DEFAULT '0' COMMENT 'Num results',
  `popularity` int unsigned NOT NULL DEFAULT '0' COMMENT 'Popularity',
  `redirect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Redirect',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `display_in_terms` smallint NOT NULL DEFAULT '1' COMMENT 'Display in terms',
  `is_active` smallint DEFAULT '1' COMMENT 'Active status',
  `is_processed` smallint DEFAULT '0' COMMENT 'Processed status',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated at',
  PRIMARY KEY (`query_id`),
  UNIQUE KEY `[[DBPREFIX]]SEARCH_QUERY_QUERY_TEXT_STORE_ID` (`query_text`,`store_id`),
  KEY `[[DBPREFIX]]SEARCH_QUERY_IS_PROCESSED` (`is_processed`),
  KEY `[[DBPREFIX]]SEARCH_QUERY_STORE_ID_NUM_RESULTS_POPULARITY` (`store_id`,`num_results`,`popularity`),
  KEY `[[DBPREFIX]]SEARCH_QUERY_QUERY_TEXT_STORE_ID_NUM_RESULTS_POPULARITY` (`query_text`,`store_id`,`num_results`,`popularity`),
  CONSTRAINT `[[DBPREFIX]]SEARCH_QUERY_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Search query table';

--
-- Dumping data for table `[[dbprefix]]search_query`
--


--
-- Table structure for table `[[dbprefix]]search_synonyms`
--

CREATE TABLE `[[dbprefix]]search_synonyms` (
  `group_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Synonyms Group ID',
  `synonyms` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'list of synonyms making up this group',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID - identifies the store view these synonyms belong to',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID - identifies the website ID these synonyms belong to',
  PRIMARY KEY (`group_id`),
  KEY `[[DBPREFIX]]SEARCH_SYNONYMS_STORE_ID` (`store_id`),
  KEY `[[DBPREFIX]]SEARCH_SYNONYMS_WEBSITE_ID` (`website_id`),
  FULLTEXT KEY `[[DBPREFIX]]SEARCH_SYNONYMS_SYNONYMS` (`synonyms`),
  CONSTRAINT `[[DBPREFIX]]SEARCH_SYNONYMS_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]SEARCH_SYNONYMS_WEBSITE_ID_[[DBPREFIX]]STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='table storing various synonyms groups';

--
-- Dumping data for table `[[dbprefix]]search_synonyms`
--


--
-- Table structure for table `[[dbprefix]]sendfriend_log`
--

CREATE TABLE `[[dbprefix]]sendfriend_log` (
  `log_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Log ID',
  `ip` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'Customer IP address',
  `time` int unsigned NOT NULL DEFAULT '0' COMMENT 'Log time',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  PRIMARY KEY (`log_id`),
  KEY `[[DBPREFIX]]SENDFRIEND_LOG_IP` (`ip`),
  KEY `[[DBPREFIX]]SENDFRIEND_LOG_TIME` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Send to friend function log storage table';

--
-- Dumping data for table `[[dbprefix]]sendfriend_log`
--


--
-- Table structure for table `[[dbprefix]]sequence_creditmemo_0`
--

CREATE TABLE `[[dbprefix]]sequence_creditmemo_0` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_creditmemo_0`
--


--
-- Table structure for table `[[dbprefix]]sequence_creditmemo_1`
--

CREATE TABLE `[[dbprefix]]sequence_creditmemo_1` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_creditmemo_1`
--

INSERT INTO `[[dbprefix]]sequence_creditmemo_1` VALUES (1);

--
-- Table structure for table `[[dbprefix]]sequence_invoice_0`
--

CREATE TABLE `[[dbprefix]]sequence_invoice_0` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_invoice_0`
--


--
-- Table structure for table `[[dbprefix]]sequence_invoice_1`
--

CREATE TABLE `[[dbprefix]]sequence_invoice_1` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_invoice_1`
--

INSERT INTO `[[dbprefix]]sequence_invoice_1` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]sequence_order_0`
--

CREATE TABLE `[[dbprefix]]sequence_order_0` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_order_0`
--


--
-- Table structure for table `[[dbprefix]]sequence_order_1`
--

CREATE TABLE `[[dbprefix]]sequence_order_1` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_order_1`
--

INSERT INTO `[[dbprefix]]sequence_order_1` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]sequence_shipment_0`
--

CREATE TABLE `[[dbprefix]]sequence_shipment_0` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_shipment_0`
--


--
-- Table structure for table `[[dbprefix]]sequence_shipment_1`
--

CREATE TABLE `[[dbprefix]]sequence_shipment_1` (
  `sequence_value` int unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`sequence_value`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `[[dbprefix]]sequence_shipment_1`
--

INSERT INTO `[[dbprefix]]sequence_shipment_1` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]session`
--

CREATE TABLE `[[dbprefix]]session` (
  `session_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Session Id',
  `session_expires` int unsigned NOT NULL DEFAULT '0' COMMENT 'Date of Session Expiration',
  `session_data` mediumblob NOT NULL COMMENT 'Session Data',
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Database Sessions Storage';

--
-- Dumping data for table `[[dbprefix]]session`
--


--
-- Table structure for table `[[dbprefix]]setup_module`
--

CREATE TABLE `[[dbprefix]]setup_module` (
  `module` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Module',
  `schema_version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Schema Version',
  `data_version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Data Version',
  PRIMARY KEY (`module`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Module versions registry';

--
-- Dumping data for table `[[dbprefix]]setup_module`
--

INSERT INTO `[[dbprefix]]setup_module` VALUES ('Magento_DataExporter','42.0.1','42.0.1'),('Magento_PageBuilderImageAttribute','1.0.0','1.0.0'),('Magento_QueryXml','42.0.0','42.0.0'),('Magento_Securitytxt','1.0.0','1.0.0'),('Magento_ServicesConnector','1.1.0','1.1.0'),('Magento_ServicesId','1.1.0','1.1.0'),('Magento_ServicesIdLayout','1.0.0','1.0.0'),('PayPal_Braintree','4.6.1','4.6.1');

--
-- Table structure for table `[[dbprefix]]shipping_tablerate`
--

CREATE TABLE `[[dbprefix]]shipping_tablerate` (
  `pk` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `website_id` int NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `dest_country_id` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT 'Destination coutry ISO/2 or ISO/3 code',
  `dest_region_id` int NOT NULL DEFAULT '0' COMMENT 'Destination Region ID',
  `dest_zip` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '*' COMMENT 'Destination Post Code (Zip)',
  `condition_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Rate Condition name',
  `condition_value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Rate condition value',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `cost` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Cost',
  PRIMARY KEY (`pk`),
  UNIQUE KEY `UNQ_50E5FB6F6AB78252AFB1BF28E771F980` (`website_id`,`dest_country_id`,`dest_region_id`,`dest_zip`,`condition_name`,`condition_value`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='Shipping Tablerate';

--
-- Dumping data for table `[[dbprefix]]shipping_tablerate`
--

INSERT INTO `[[dbprefix]]shipping_tablerate` VALUES (1,1,'US',0,'*','package_value_with_discount',0.0000,15.0000,0.0000),(2,1,'US',0,'*','package_value_with_discount',50.0000,10.0000,0.0000),(3,1,'US',0,'*','package_value_with_discount',100.0000,5.0000,0.0000),(4,1,'US',2,'*','package_value_with_discount',0.0000,20.0000,0.0000),(5,1,'US',2,'*','package_value_with_discount',50.0000,15.0000,0.0000),(6,1,'US',2,'*','package_value_with_discount',100.0000,10.0000,0.0000),(7,1,'US',21,'*','package_value_with_discount',0.0000,20.0000,0.0000),(8,1,'US',21,'*','package_value_with_discount',50.0000,15.0000,0.0000),(9,1,'US',21,'*','package_value_with_discount',100.0000,10.0000,0.0000);

--
-- Table structure for table `[[dbprefix]]sitemap`
--

CREATE TABLE `[[dbprefix]]sitemap` (
  `sitemap_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Sitemap ID',
  `sitemap_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sitemap Type',
  `sitemap_filename` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sitemap Filename',
  `sitemap_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sitemap Path',
  `sitemap_time` timestamp NULL DEFAULT NULL COMMENT 'Sitemap Time',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  PRIMARY KEY (`sitemap_id`),
  KEY `[[DBPREFIX]]SITEMAP_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]SITEMAP_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='XML Sitemap';

--
-- Dumping data for table `[[dbprefix]]sitemap`
--


--
-- Table structure for table `[[dbprefix]]store`
--

CREATE TABLE `[[dbprefix]]store` (
  `store_id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Store ID',
  `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Code',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `group_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Group ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Store Name',
  `sort_order` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store Sort Order',
  `is_active` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store Activity',
  PRIMARY KEY (`store_id`),
  UNIQUE KEY `[[DBPREFIX]]STORE_CODE` (`code`),
  KEY `[[DBPREFIX]]STORE_WEBSITE_ID` (`website_id`),
  KEY `[[DBPREFIX]]STORE_IS_ACTIVE_SORT_ORDER` (`is_active`,`sort_order`),
  KEY `[[DBPREFIX]]STORE_GROUP_ID` (`group_id`),
  CONSTRAINT `[[DBPREFIX]]STORE_GROUP_ID_[[DBPREFIX]]STORE_GROUP_GROUP_ID` FOREIGN KEY (`group_id`) REFERENCES `[[dbprefix]]store_group` (`group_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]STORE_WEBSITE_ID_[[DBPREFIX]]STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Stores';

--
-- Dumping data for table `[[dbprefix]]store`
--

INSERT INTO `[[dbprefix]]store` VALUES (0,'admin',0,0,'Admin',0,1),(1,'default',1,1,'Default Store View',0,1);

--
-- Table structure for table `[[dbprefix]]store_data_exporter_cl`
--

CREATE TABLE `[[dbprefix]]store_data_exporter_cl` (
  `version_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Version ID',
  `entity_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  PRIMARY KEY (`version_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]store_data_exporter_cl';

--
-- Dumping data for table `[[dbprefix]]store_data_exporter_cl`
--

INSERT INTO `[[dbprefix]]store_data_exporter_cl` VALUES (1,0),(2,1);

--
-- Table structure for table `[[dbprefix]]store_group`
--

CREATE TABLE `[[dbprefix]]store_group` (
  `group_id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Group ID',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Store Group Name',
  `root_category_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Root Category ID',
  `default_store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Default Store ID',
  `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Store group unique code',
  PRIMARY KEY (`group_id`),
  UNIQUE KEY `[[DBPREFIX]]STORE_GROUP_CODE` (`code`),
  KEY `[[DBPREFIX]]STORE_GROUP_WEBSITE_ID` (`website_id`),
  KEY `[[DBPREFIX]]STORE_GROUP_DEFAULT_STORE_ID` (`default_store_id`),
  CONSTRAINT `[[DBPREFIX]]STORE_GROUP_WEBSITE_ID_[[DBPREFIX]]STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Store Groups';

--
-- Dumping data for table `[[dbprefix]]store_group`
--

INSERT INTO `[[dbprefix]]store_group` VALUES (0,0,'Default',0,0,'default'),(1,1,'Main Website Store',2,1,'main_website_store');

--
-- Table structure for table `[[dbprefix]]store_website`
--

CREATE TABLE `[[dbprefix]]store_website` (
  `website_id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'Website ID',
  `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Code',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Website Name',
  `sort_order` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `default_group_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Default Group ID',
  `is_default` smallint unsigned DEFAULT '0' COMMENT 'Defines Is Website Default',
  PRIMARY KEY (`website_id`),
  UNIQUE KEY `[[DBPREFIX]]STORE_WEBSITE_CODE` (`code`),
  KEY `[[DBPREFIX]]STORE_WEBSITE_SORT_ORDER` (`sort_order`),
  KEY `[[DBPREFIX]]STORE_WEBSITE_DEFAULT_GROUP_ID` (`default_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Websites';

--
-- Dumping data for table `[[dbprefix]]store_website`
--

INSERT INTO `[[dbprefix]]store_website` VALUES (0,'admin','Admin',0,0,0),(1,'base','Main Website',0,1,1);

--
-- Table structure for table `[[dbprefix]]stores_data_exporter`
--

CREATE TABLE `[[dbprefix]]stores_data_exporter` (
  `id` int unsigned NOT NULL COMMENT 'ID',
  `feed_data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Feed Data',
  `modified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modified At',
  PRIMARY KEY (`id`),
  KEY `[[DBPREFIX]]STORES_DATA_EXPORTER_MODIFIED_AT` (`modified_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Stores Feed Storage';

--
-- Dumping data for table `[[dbprefix]]stores_data_exporter`
--

INSERT INTO `[[dbprefix]]stores_data_exporter` VALUES (1,'{\"store_view_id\":\"1\",\"store_id\":1,\"website_id\":1,\"store_view_name\":\"Default Store View\",\"store_name\":\"Main Website Store\",\"website_name\":\"Main Website\"}','[[regtime]]');

--
-- Table structure for table `[[dbprefix]]stores_data_exporter_index_batches`
--

CREATE TABLE `[[dbprefix]]stores_data_exporter_index_batches` (
  `batch_number` int NOT NULL COMMENT 'Batch Number',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  PRIMARY KEY (`batch_number`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]stores_data_exporter_index_batches';

--
-- Dumping data for table `[[dbprefix]]stores_data_exporter_index_batches`
--

INSERT INTO `[[dbprefix]]stores_data_exporter_index_batches` VALUES (1,1);

--
-- Table structure for table `[[dbprefix]]stores_data_exporter_index_sequence`
--

CREATE TABLE `[[dbprefix]]stores_data_exporter_index_sequence` (
  `i` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Auto Increment ID',
  PRIMARY KEY (`i`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='[[dbprefix]]stores_data_exporter_index_sequence';

--
-- Dumping data for table `[[dbprefix]]stores_data_exporter_index_sequence`
--

INSERT INTO `[[dbprefix]]stores_data_exporter_index_sequence` VALUES (1),(2);

--
-- Table structure for table `[[dbprefix]]tax_calculation`
--

CREATE TABLE `[[dbprefix]]tax_calculation` (
  `tax_calculation_id` int NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation ID',
  `tax_calculation_rate_id` int NOT NULL COMMENT 'Tax Calculation Rate ID',
  `tax_calculation_rule_id` int NOT NULL COMMENT 'Tax Calculation Rule ID',
  `customer_tax_class_id` smallint NOT NULL COMMENT 'Customer Tax Class ID',
  `product_tax_class_id` smallint NOT NULL COMMENT 'Product Tax Class ID',
  PRIMARY KEY (`tax_calculation_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_TAX_CALCULATION_RULE_ID` (`tax_calculation_rule_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID` (`customer_tax_class_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_PRODUCT_TAX_CLASS_ID` (`product_tax_class_id`),
  KEY `IDX_DC62AA3A0515973AF9E40AD22777C73A` (`tax_calculation_rate_id`,`customer_tax_class_id`,`product_tax_class_id`),
  CONSTRAINT `FK_2B652BD3CC9AD34C7A2B33BAA2AB9BBB` FOREIGN KEY (`tax_calculation_rule_id`) REFERENCES `[[dbprefix]]tax_calculation_rule` (`tax_calculation_rule_id`) ON DELETE CASCADE,
  CONSTRAINT `FK_469DCE2C6AFE66A67F19F89821271A06` FOREIGN KEY (`tax_calculation_rate_id`) REFERENCES `[[dbprefix]]tax_calculation_rate` (`tax_calculation_rate_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]TAX_CALC_CSTR_TAX_CLASS_ID_[[DBPREFIX]]TAX_CLASS_CLASS_ID` FOREIGN KEY (`customer_tax_class_id`) REFERENCES `[[dbprefix]]tax_class` (`class_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]TAX_CALC_PRD_TAX_CLASS_ID_[[DBPREFIX]]TAX_CLASS_CLASS_ID` FOREIGN KEY (`product_tax_class_id`) REFERENCES `[[dbprefix]]tax_class` (`class_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Tax Calculation';

--
-- Dumping data for table `[[dbprefix]]tax_calculation`
--

INSERT INTO `[[dbprefix]]tax_calculation` VALUES (1,3,1,3,2);

--
-- Table structure for table `[[dbprefix]]tax_calculation_rate`
--

CREATE TABLE `[[dbprefix]]tax_calculation_rate` (
  `tax_calculation_rate_id` int NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rate ID',
  `tax_country_id` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Tax Country ID',
  `tax_region_id` int NOT NULL COMMENT 'Tax Region ID',
  `tax_postcode` varchar(21) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Tax Postcode',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Code',
  `rate` decimal(12,4) NOT NULL COMMENT 'Rate',
  `zip_is_range` smallint DEFAULT NULL COMMENT 'Zip Is Range',
  `zip_from` int unsigned DEFAULT NULL COMMENT 'Zip From',
  `zip_to` int unsigned DEFAULT NULL COMMENT 'Zip To',
  PRIMARY KEY (`tax_calculation_rate_id`),
  KEY `[[DBPREFIX]]TAX_CALC_RATE_TAX_COUNTRY_ID_TAX_REGION_ID_TAX_POSTCODE` (`tax_country_id`,`tax_region_id`,`tax_postcode`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_RATE_CODE` (`code`),
  KEY `IDX_A3AD8DCACB38995910B5FDF5D42127A2` (`tax_calculation_rate_id`,`tax_country_id`,`tax_region_id`,`zip_is_range`,`tax_postcode`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='Tax Calculation Rate';

--
-- Dumping data for table `[[dbprefix]]tax_calculation_rate`
--

INSERT INTO `[[dbprefix]]tax_calculation_rate` VALUES (1,'US',12,'*','US-CA-*-Rate 1',8.2500,NULL,NULL,NULL),(2,'US',43,'*','US-NY-*-Rate 1',8.3750,NULL,NULL,NULL),(3,'US',33,'*','US-MI-*-Rate 1',8.2500,NULL,NULL,NULL);

--
-- Table structure for table `[[dbprefix]]tax_calculation_rate_title`
--

CREATE TABLE `[[dbprefix]]tax_calculation_rate_title` (
  `tax_calculation_rate_title_id` int NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rate Title ID',
  `tax_calculation_rate_id` int NOT NULL COMMENT 'Tax Calculation Rate ID',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Value',
  PRIMARY KEY (`tax_calculation_rate_title_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_RATE_TITLE_TAX_CALCULATION_RATE_ID_STORE_ID` (`tax_calculation_rate_id`,`store_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_RATE_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_D28111D1128C56F7BE39EF301F9F32B2` FOREIGN KEY (`tax_calculation_rate_id`) REFERENCES `[[dbprefix]]tax_calculation_rate` (`tax_calculation_rate_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]TAX_CALCULATION_RATE_TITLE_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Tax Calculation Rate Title';

--
-- Dumping data for table `[[dbprefix]]tax_calculation_rate_title`
--


--
-- Table structure for table `[[dbprefix]]tax_calculation_rule`
--

CREATE TABLE `[[dbprefix]]tax_calculation_rule` (
  `tax_calculation_rule_id` int NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rule ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Code',
  `priority` int NOT NULL COMMENT 'Priority',
  `position` int NOT NULL COMMENT 'Position',
  `calculate_subtotal` int NOT NULL COMMENT 'Calculate off subtotal option',
  PRIMARY KEY (`tax_calculation_rule_id`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_RULE_PRIORITY_POSITION` (`priority`,`position`),
  KEY `[[DBPREFIX]]TAX_CALCULATION_RULE_CODE` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='Tax Calculation Rule';

--
-- Dumping data for table `[[dbprefix]]tax_calculation_rule`
--

INSERT INTO `[[dbprefix]]tax_calculation_rule` VALUES (1,'Rule1',0,0,0);

--
-- Table structure for table `[[dbprefix]]tax_class`
--

CREATE TABLE `[[dbprefix]]tax_class` (
  `class_id` smallint NOT NULL AUTO_INCREMENT COMMENT 'Class ID',
  `class_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Class Name',
  `class_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'CUSTOMER' COMMENT 'Class Type',
  PRIMARY KEY (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='Tax Class';

--
-- Dumping data for table `[[dbprefix]]tax_class`
--

INSERT INTO `[[dbprefix]]tax_class` VALUES (2,'Taxable Goods','PRODUCT'),(3,'Retail Customer','CUSTOMER');

--
-- Table structure for table `[[dbprefix]]tax_order_aggregated_created`
--

CREATE TABLE `[[dbprefix]]tax_order_aggregated_created` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Code',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `percent` float DEFAULT NULL COMMENT 'Percent',
  `orders_count` int unsigned NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float DEFAULT NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_A719D9444F7B979B92D2369CE724F9D0` (`period`,`store_id`,`code`,`percent`,`order_status`),
  KEY `[[DBPREFIX]]TAX_ORDER_AGGREGATED_CREATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]TAX_ORDER_AGGREGATED_CREATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Tax Order Aggregation';

--
-- Dumping data for table `[[dbprefix]]tax_order_aggregated_created`
--


--
-- Table structure for table `[[dbprefix]]tax_order_aggregated_updated`
--

CREATE TABLE `[[dbprefix]]tax_order_aggregated_updated` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Code',
  `order_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Order Status',
  `percent` float DEFAULT NULL COMMENT 'Percent',
  `orders_count` int unsigned NOT NULL DEFAULT '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float DEFAULT NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_6C22B67A5EB5D08555BC3FA3F54DD8F3` (`period`,`store_id`,`code`,`percent`,`order_status`),
  KEY `[[DBPREFIX]]TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]TAX_ORDER_AGGREGATED_UPDATED_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Tax Order Aggregated Updated';

--
-- Dumping data for table `[[dbprefix]]tax_order_aggregated_updated`
--


--
-- Table structure for table `[[dbprefix]]tfa_country_codes`
--

CREATE TABLE `[[dbprefix]]tfa_country_codes` (
  `country_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'TFA admin user ID',
  `code` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Country code',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Country name',
  `dial_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Prefix',
  PRIMARY KEY (`country_id`),
  KEY `[[DBPREFIX]]TFA_COUNTRY_CODES_CODE` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=242 DEFAULT CHARSET=utf8mb4 COMMENT='tfa_country_codes';

--
-- Dumping data for table `[[dbprefix]]tfa_country_codes`
--

INSERT INTO `[[dbprefix]]tfa_country_codes` VALUES (1,'IL','Israel','+972'),(2,'AF','Afghanistan','+93'),(3,'AL','Albania','+355'),(4,'DZ','Algeria','+213'),(5,'AS','AmericanSamoa','+1 684'),(6,'AD','Andorra','+376'),(7,'AO','Angola','+244'),(8,'AI','Anguilla','+1 264'),(9,'AG','Antigua and Barbuda','+1268'),(10,'AR','Argentina','+54'),(11,'AM','Armenia','+374'),(12,'AW','Aruba','+297'),(13,'AU','Australia','+61'),(14,'AT','Austria','+43'),(15,'AZ','Azerbaijan','+994'),(16,'BS','Bahamas','+1 242'),(17,'BH','Bahrain','+973'),(18,'BD','Bangladesh','+880'),(19,'BB','Barbados','+1 246'),(20,'BY','Belarus','+375'),(21,'BE','Belgium','+32'),(22,'BZ','Belize','+501'),(23,'BJ','Benin','+229'),(24,'BM','Bermuda','+1 441'),(25,'BT','Bhutan','+975'),(26,'BA','Bosnia and Herzegovina','+387'),(27,'BW','Botswana','+267'),(28,'BR','Brazil','+55'),(29,'IO','British Indian Ocean Territory','+246'),(30,'BG','Bulgaria','+359'),(31,'BF','Burkina Faso','+226'),(32,'BI','Burundi','+257'),(33,'KH','Cambodia','+855'),(34,'CM','Cameroon','+237'),(35,'CA','Canada','+1'),(36,'CV','Cape Verde','+238'),(37,'KY','Cayman Islands','+ 345'),(38,'CF','Central African Republic','+236'),(39,'TD','Chad','+235'),(40,'CL','Chile','+56'),(41,'CN','China','+86'),(42,'CX','Christmas Island','+61'),(43,'CO','Colombia','+57'),(44,'KM','Comoros','+269'),(45,'CG','Congo','+242'),(46,'CK','Cook Islands','+682'),(47,'CR','Costa Rica','+506'),(48,'HR','Croatia','+385'),(49,'CU','Cuba','+53'),(50,'CY','Cyprus','+537'),(51,'CZ','Czech Republic','+420'),(52,'DK','Denmark','+45'),(53,'DJ','Djibouti','+253'),(54,'DM','Dominica','+1 767'),(55,'DO','Dominican Republic','+1 849'),(56,'EC','Ecuador','+593'),(57,'EG','Egypt','+20'),(58,'SV','El Salvador','+503'),(59,'GQ','Equatorial Guinea','+240'),(60,'ER','Eritrea','+291'),(61,'EE','Estonia','+372'),(62,'ET','Ethiopia','+251'),(63,'FO','Faroe Islands','+298'),(64,'FJ','Fiji','+679'),(65,'FI','Finland','+358'),(66,'FR','France','+33'),(67,'GF','French Guiana','+594'),(68,'PF','French Polynesia','+689'),(69,'GA','Gabon','+241'),(70,'GM','Gambia','+220'),(71,'GE','Georgia','+995'),(72,'DE','Germany','+49'),(73,'GH','Ghana','+233'),(74,'GI','Gibraltar','+350'),(75,'GR','Greece','+30'),(76,'GL','Greenland','+299'),(77,'GD','Grenada','+1 473'),(78,'GP','Guadeloupe','+590'),(79,'GU','Guam','+1 671'),(80,'GT','Guatemala','+502'),(81,'GN','Guinea','+224'),(82,'GW','Guinea-Bissau','+245'),(83,'GY','Guyana','+595'),(84,'HT','Haiti','+509'),(85,'HN','Honduras','+504'),(86,'HU','Hungary','+36'),(87,'IS','Iceland','+354'),(88,'IN','India','+91'),(89,'ID','Indonesia','+62'),(90,'IQ','Iraq','+964'),(91,'IE','Ireland','+353'),(92,'IL','Israel','+972'),(93,'IT','Italy','+39'),(94,'JM','Jamaica','+1 876'),(95,'JP','Japan','+81'),(96,'JO','Jordan','+962'),(97,'KZ','Kazakhstan','+7 7'),(98,'KE','Kenya','+254'),(99,'KI','Kiribati','+686'),(100,'KW','Kuwait','+965'),(101,'KG','Kyrgyzstan','+996'),(102,'LV','Latvia','+371'),(103,'LB','Lebanon','+961'),(104,'LS','Lesotho','+266'),(105,'LR','Liberia','+231'),(106,'LI','Liechtenstein','+423'),(107,'LT','Lithuania','+370'),(108,'LU','Luxembourg','+352'),(109,'MG','Madagascar','+261'),(110,'MW','Malawi','+265'),(111,'MY','Malaysia','+60'),(112,'MV','Maldives','+960'),(113,'ML','Mali','+223'),(114,'MT','Malta','+356'),(115,'MH','Marshall Islands','+692'),(116,'MQ','Martinique','+596'),(117,'MR','Mauritania','+222'),(118,'MU','Mauritius','+230'),(119,'YT','Mayotte','+262'),(120,'MX','Mexico','+52'),(121,'MC','Monaco','+377'),(122,'MN','Mongolia','+976'),(123,'ME','Montenegro','+382'),(124,'MS','Montserrat','+1664'),(125,'MA','Morocco','+212'),(126,'MM','Myanmar','+95'),(127,'NA','Namibia','+264'),(128,'NR','Nauru','+674'),(129,'NP','Nepal','+977'),(130,'NL','Netherlands','+31'),(131,'AN','Netherlands Antilles','+599'),(132,'NC','New Caledonia','+687'),(133,'NZ','New Zealand','+64'),(134,'NI','Nicaragua','+505'),(135,'NE','Niger','+227'),(136,'NG','Nigeria','+234'),(137,'NU','Niue','+683'),(138,'NF','Norfolk Island','+672'),(139,'MP','Northern Mariana Islands','+1 670'),(140,'NO','Norway','+47'),(141,'OM','Oman','+968'),(142,'PK','Pakistan','+92'),(143,'PW','Palau','+680'),(144,'PA','Panama','+507'),(145,'PG','Papua New Guinea','+675'),(146,'PY','Paraguay','+595'),(147,'PE','Peru','+51'),(148,'PH','Philippines','+63'),(149,'PL','Poland','+48'),(150,'PT','Portugal','+351'),(151,'PR','Puerto Rico','+1 939'),(152,'QA','Qatar','+974'),(153,'RO','Romania','+40'),(154,'RW','Rwanda','+250'),(155,'WS','Samoa','+685'),(156,'SM','San Marino','+378'),(157,'SA','Saudi Arabia','+966'),(158,'SN','Senegal','+221'),(159,'RS','Serbia','+381'),(160,'SC','Seychelles','+248'),(161,'SL','Sierra Leone','+232'),(162,'SG','Singapore','+65'),(163,'SK','Slovakia','+421'),(164,'SI','Slovenia','+386'),(165,'SB','Solomon Islands','+677'),(166,'ZA','South Africa','+27'),(167,'GS','South Georgia and the South Sandwich Islands','+500'),(168,'ES','Spain','+34'),(169,'LK','Sri Lanka','+94'),(170,'SD','Sudan','+249'),(171,'SR','Suriname','+597'),(172,'SZ','Swaziland','+268'),(173,'SE','Sweden','+46'),(174,'CH','Switzerland','+41'),(175,'TJ','Tajikistan','+992'),(176,'TH','Thailand','+66'),(177,'TG','Togo','+228'),(178,'TK','Tokelau','+690'),(179,'TO','Tonga','+676'),(180,'TT','Trinidad and Tobago','+1 868'),(181,'TN','Tunisia','+216'),(182,'TR','Turkey','+90'),(183,'TM','Turkmenistan','+993'),(184,'TC','Turks and Caicos Islands','+1 649'),(185,'TV','Tuvalu','+688'),(186,'UG','Uganda','+256'),(187,'UA','Ukraine','+380'),(188,'AE','United Arab Emirates','+971'),(189,'GB','United Kingdom','+44'),(190,'US','United States','+1'),(191,'UY','Uruguay','+598'),(192,'UZ','Uzbekistan','+998'),(193,'VU','Vanuatu','+678'),(194,'WF','Wallis and Futuna','+681'),(195,'YE','Yemen','+967'),(196,'ZM','Zambia','+260'),(197,'ZW','Zimbabwe','+263'),(198,'AX','land Islands',''),(199,'BO','Bolivia, Plurinational State of','+591'),(200,'BN','Brunei Darussalam','+673'),(201,'CC','Cocos (Keeling) Islands','+61'),(202,'CD','Congo, The Democratic Republic of the','+243'),(203,'CI','Cote d\'Ivoire','+225'),(204,'FK','Falkland Islands (Malvinas)','+500'),(205,'GG','Guernsey','+44'),(206,'VA','Holy See (Vatican City State)','+379'),(207,'HK','Hong Kong','+852'),(208,'IR','Iran, Islamic Republic of','+98'),(209,'IM','Isle of Man','+44'),(210,'JE','Jersey','+44'),(211,'KP','Korea, Democratic People\'s Republic of','+850'),(212,'KR','Korea, Republic of','+82'),(213,'LA','Lao People\'s Democratic Republic','+856'),(214,'LY','Libyan Arab Jamahiriya','+218'),(215,'MO','Macao','+853'),(216,'MK','Macedonia, The Former Yugoslav Republic of','+389'),(217,'FM','Micronesia, Federated States of','+691'),(218,'MD','Moldova, Republic of','+373'),(219,'MZ','Mozambique','+258'),(220,'PS','Palestinian Territory, Occupied','+970'),(221,'PN','Pitcairn','+872'),(222,'RE','Réunion','+262'),(223,'RU','Russia','+7'),(224,'BL','Saint Barthélemy','+590'),(225,'SH','Saint Helena, Ascension and Tristan Da Cunha','+290'),(226,'KN','Saint Kitts and Nevis','+1 869'),(227,'LC','Saint Lucia','+1 758'),(228,'MF','Saint Martin','+590'),(229,'PM','Saint Pierre and Miquelon','+508'),(230,'VC','Saint Vincent and the Grenadines','+1 784'),(231,'ST','Sao Tome and Principe','+239'),(232,'SO','Somalia','+252'),(233,'SJ','Svalbard and Jan Mayen','+47'),(234,'SY','Syrian Arab Republic','+963'),(235,'TW','Taiwan, Province of China','+886'),(236,'TZ','Tanzania, United Republic of','+255'),(237,'TL','Timor-Leste','+670'),(238,'VE','Venezuela, Bolivarian Republic of','+58'),(239,'VN','Viet Nam','+84'),(240,'VG','Virgin Islands, British','+1 284'),(241,'VI','Virgin Islands, U.S.','+1 340');

--
-- Table structure for table `[[dbprefix]]tfa_user_config`
--

CREATE TABLE `[[dbprefix]]tfa_user_config` (
  `config_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'TFA admin user ID',
  `user_id` int unsigned NOT NULL COMMENT 'User ID',
  `encoded_providers` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Encoded providers list',
  `encoded_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Encoded providers configuration',
  `default_provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Default provider',
  PRIMARY KEY (`config_id`),
  KEY `[[DBPREFIX]]TFA_USER_CONFIG_USER_ID_[[DBPREFIX]]ADMIN_USER_USER_ID` (`user_id`),
  CONSTRAINT `[[DBPREFIX]]TFA_USER_CONFIG_USER_ID_[[DBPREFIX]]ADMIN_USER_USER_ID` FOREIGN KEY (`user_id`) REFERENCES `[[dbprefix]]admin_user` (`user_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='tfa_user_config';

--
-- Dumping data for table `[[dbprefix]]tfa_user_config`
--


--
-- Table structure for table `[[dbprefix]]theme`
--

CREATE TABLE `[[dbprefix]]theme` (
  `theme_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Theme identifier',
  `parent_id` int DEFAULT NULL COMMENT 'Parent ID',
  `theme_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Theme Path',
  `theme_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Theme Title',
  `preview_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Preview Image',
  `is_featured` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Is Theme Featured',
  `area` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Theme Area',
  `type` smallint NOT NULL COMMENT 'Theme type: 0:physical, 1:virtual, 2:staging',
  `code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Full theme code, including package',
  PRIMARY KEY (`theme_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='Core theme';

--
-- Dumping data for table `[[dbprefix]]theme`
--

INSERT INTO `[[dbprefix]]theme` VALUES (1,NULL,'Magento/blank','Magento Blank','preview_image_67f765171fb3d.jpeg',0,'frontend',0,'Magento/blank'),(2,NULL,'Magento/backend','Magento 2 backend',NULL,0,'adminhtml',0,'Magento/backend'),(3,1,'Magento/luma','Magento Luma','preview_image_67f7651731e30.jpeg',0,'frontend',0,'Magento/luma');

--
-- Table structure for table `[[dbprefix]]theme_file`
--

CREATE TABLE `[[dbprefix]]theme_file` (
  `theme_files_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Theme files identifier',
  `theme_id` int unsigned NOT NULL COMMENT 'Theme ID',
  `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Relative path to file',
  `file_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'File Type',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'File Content',
  `sort_order` smallint NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `is_temporary` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Is Temporary File',
  PRIMARY KEY (`theme_files_id`),
  KEY `[[DBPREFIX]]THEME_FILE_THEME_ID_[[DBPREFIX]]THEME_THEME_ID` (`theme_id`),
  CONSTRAINT `[[DBPREFIX]]THEME_FILE_THEME_ID_[[DBPREFIX]]THEME_THEME_ID` FOREIGN KEY (`theme_id`) REFERENCES `[[dbprefix]]theme` (`theme_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Core theme files';

--
-- Dumping data for table `[[dbprefix]]theme_file`
--


--
-- Table structure for table `[[dbprefix]]translation`
--

CREATE TABLE `[[dbprefix]]translation` (
  `key_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Key ID of Translation',
  `string` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Translate String' COMMENT 'Translation String',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `translate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Translate',
  `locale` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'en_US' COMMENT 'Locale',
  `crc_string` bigint NOT NULL DEFAULT '1591228201' COMMENT 'Translation String CRC32 Hash',
  PRIMARY KEY (`key_id`),
  UNIQUE KEY `[[DBPREFIX]]TRANSLATION_STORE_ID_LOCALE_CRC_STRING_STRING` (`store_id`,`locale`,`crc_string`,`string`),
  CONSTRAINT `[[DBPREFIX]]TRANSLATION_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Translations';

--
-- Dumping data for table `[[dbprefix]]translation`
--


--
-- Table structure for table `[[dbprefix]]ui_bookmark`
--

CREATE TABLE `[[dbprefix]]ui_bookmark` (
  `bookmark_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Bookmark identifier',
  `user_id` int unsigned NOT NULL COMMENT 'User ID',
  `namespace` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Bookmark namespace',
  `identifier` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Bookmark Identifier',
  `current` smallint NOT NULL COMMENT 'Mark current bookmark per user and identifier',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Bookmark title',
  `config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Bookmark config',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Bookmark created at',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Bookmark updated at',
  PRIMARY KEY (`bookmark_id`),
  KEY `[[DBPREFIX]]UI_BOOKMARK_USER_ID_NAMESPACE_IDENTIFIER` (`user_id`,`namespace`,`identifier`),
  CONSTRAINT `[[DBPREFIX]]UI_BOOKMARK_USER_ID_[[DBPREFIX]]ADMIN_USER_USER_ID` FOREIGN KEY (`user_id`) REFERENCES `[[dbprefix]]admin_user` (`user_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Bookmark';

--
-- Dumping data for table `[[dbprefix]]ui_bookmark`
--


--
-- Table structure for table `[[dbprefix]]url_rewrite`
--

CREATE TABLE `[[dbprefix]]url_rewrite` (
  `url_rewrite_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rewrite ID',
  `entity_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Entity type code',
  `entity_id` int unsigned NOT NULL COMMENT 'Entity ID',
  `request_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Request Path',
  `target_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Target Path',
  `redirect_type` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Redirect Type',
  `store_id` smallint unsigned NOT NULL COMMENT 'Store ID',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Description',
  `is_autogenerated` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Is rewrite generated automatically flag',
  `metadata` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Meta data for url rewrite',
  PRIMARY KEY (`url_rewrite_id`),
  UNIQUE KEY `[[DBPREFIX]]URL_REWRITE_REQUEST_PATH_STORE_ID` (`request_path`,`store_id`),
  KEY `[[DBPREFIX]]URL_REWRITE_TARGET_PATH` (`target_path`),
  KEY `[[DBPREFIX]]URL_REWRITE_STORE_ID_ENTITY_ID` (`store_id`,`entity_id`),
  KEY `[[DBPREFIX]]URL_REWRITE_ENTITY_ID` (`entity_id`),
  KEY `[[DBPREFIX]]URL_REWRITE_IS_AUTOGENERATED_METADATA` (`is_autogenerated`,`metadata`)
) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=utf8mb4 COMMENT='Url Rewrites';

--
-- Dumping data for table `[[dbprefix]]url_rewrite`
--

INSERT INTO `[[dbprefix]]url_rewrite` VALUES (1,'cms-page',1,'no-route','cms/page/view/page_id/1',0,1,NULL,1,NULL),(2,'cms-page',2,'home','cms/page/view/page_id/2',0,1,NULL,1,NULL),(3,'cms-page',3,'enable-cookies','cms/page/view/page_id/3',0,1,NULL,1,NULL),(4,'cms-page',4,'privacy-policy-cookie-restriction-mode','cms/page/view/page_id/4',0,1,NULL,1,NULL),(5,'category',3,'gear.html','catalog/category/view/id/3',0,1,NULL,1,NULL),(6,'category',4,'gear/bags.html','catalog/category/view/id/4',0,1,NULL,1,NULL),(7,'category',5,'gear/fitness-equipment.html','catalog/category/view/id/5',0,1,NULL,1,NULL),(8,'category',6,'gear/watches.html','catalog/category/view/id/6',0,1,NULL,1,NULL),(9,'category',7,'collections.html','catalog/category/view/id/7',0,1,NULL,1,NULL),(10,'category',8,'collections/yoga-new.html','catalog/category/view/id/8',0,1,NULL,1,NULL),(11,'product',1,'joust-duffle-bag.html','catalog/product/view/id/1',0,1,NULL,1,NULL),(12,'product',2,'strive-shoulder-pack.html','catalog/product/view/id/2',0,1,NULL,1,NULL),(13,'product',3,'crown-summit-backpack.html','catalog/product/view/id/3',0,1,NULL,1,NULL),(14,'product',4,'wayfarer-messenger-bag.html','catalog/product/view/id/4',0,1,NULL,1,NULL),(15,'product',5,'rival-field-messenger.html','catalog/product/view/id/5',0,1,NULL,1,NULL),(16,'product',6,'fusion-backpack.html','catalog/product/view/id/6',0,1,NULL,1,NULL),(17,'product',7,'impulse-duffle.html','catalog/product/view/id/7',0,1,NULL,1,NULL),(18,'product',8,'voyage-yoga-bag.html','catalog/product/view/id/8',0,1,NULL,1,NULL),(19,'product',9,'compete-track-tote.html','catalog/product/view/id/9',0,1,NULL,1,NULL),(20,'product',10,'savvy-shoulder-tote.html','catalog/product/view/id/10',0,1,NULL,1,NULL),(21,'product',11,'endeavor-daytrip-backpack.html','catalog/product/view/id/11',0,1,NULL,1,NULL),(22,'product',12,'driven-backpack.html','catalog/product/view/id/12',0,1,NULL,1,NULL),(23,'product',13,'overnight-duffle.html','catalog/product/view/id/13',0,1,NULL,1,NULL),(24,'product',14,'push-it-messenger-bag.html','catalog/product/view/id/14',0,1,NULL,1,NULL),(25,'product',15,'affirm-water-bottle.html','catalog/product/view/id/15',0,1,NULL,1,NULL),(26,'product',16,'dual-handle-cardio-ball.html','catalog/product/view/id/16',0,1,NULL,1,NULL),(27,'product',17,'zing-jump-rope.html','catalog/product/view/id/17',0,1,NULL,1,NULL),(28,'product',18,'pursuit-lumaflex-trade-tone-band.html','catalog/product/view/id/18',0,1,NULL,1,NULL),(29,'product',19,'go-get-r-pushup-grips.html','catalog/product/view/id/19',0,1,NULL,1,NULL),(30,'product',20,'quest-lumaflex-trade-band.html','catalog/product/view/id/20',0,1,NULL,1,NULL),(31,'product',21,'sprite-foam-yoga-brick.html','catalog/product/view/id/21',0,1,NULL,1,NULL),(32,'product',22,'sprite-foam-roller.html','catalog/product/view/id/22',0,1,NULL,1,NULL),(33,'product',23,'harmony-lumaflex-trade-strength-band-kit.html','catalog/product/view/id/23',0,1,NULL,1,NULL),(34,'product',36,'aim-analog-watch.html','catalog/product/view/id/36',0,1,NULL,1,NULL),(35,'product',37,'endurance-watch.html','catalog/product/view/id/37',0,1,NULL,1,NULL),(36,'product',38,'summit-watch.html','catalog/product/view/id/38',0,1,NULL,1,NULL),(37,'product',39,'cruise-dual-analog-watch.html','catalog/product/view/id/39',0,1,NULL,1,NULL),(38,'product',40,'dash-digital-watch.html','catalog/product/view/id/40',0,1,NULL,1,NULL),(39,'product',41,'luma-analog-watch.html','catalog/product/view/id/41',0,1,NULL,1,NULL),(40,'product',42,'bolo-sport-watch.html','catalog/product/view/id/42',0,1,NULL,1,NULL),(41,'product',43,'clamber-watch.html','catalog/product/view/id/43',0,1,NULL,1,NULL),(42,'product',44,'didi-sport-watch.html','catalog/product/view/id/44',0,1,NULL,1,NULL),(43,'product',45,'sprite-yoga-companion-kit.html','catalog/product/view/id/45',0,1,NULL,1,NULL),(44,'product',46,'set-of-sprite-yoga-straps.html','catalog/product/view/id/46',0,1,NULL,1,NULL),(45,'category',9,'training.html','catalog/category/view/id/9',0,1,NULL,1,NULL),(46,'category',10,'training/training-video.html','catalog/category/view/id/10',0,1,NULL,1,NULL),(47,'category',11,'men.html','catalog/category/view/id/11',0,1,NULL,1,NULL),(48,'category',12,'men/tops-men.html','catalog/category/view/id/12',0,1,NULL,1,NULL),(49,'category',13,'men/bottoms-men.html','catalog/category/view/id/13',0,1,NULL,1,NULL),(50,'category',14,'men/tops-men/jackets-men.html','catalog/category/view/id/14',0,1,NULL,1,NULL),(51,'category',15,'men/tops-men/hoodies-and-sweatshirts-men.html','catalog/category/view/id/15',0,1,NULL,1,NULL),(52,'category',16,'men/tops-men/tees-men.html','catalog/category/view/id/16',0,1,NULL,1,NULL),(53,'category',17,'men/tops-men/tanks-men.html','catalog/category/view/id/17',0,1,NULL,1,NULL),(54,'category',18,'men/bottoms-men/pants-men.html','catalog/category/view/id/18',0,1,NULL,1,NULL),(55,'category',19,'men/bottoms-men/shorts-men.html','catalog/category/view/id/19',0,1,NULL,1,NULL),(56,'category',20,'women.html','catalog/category/view/id/20',0,1,NULL,1,NULL),(57,'category',21,'women/tops-women.html','catalog/category/view/id/21',0,1,NULL,1,NULL),(58,'category',22,'women/bottoms-women.html','catalog/category/view/id/22',0,1,NULL,1,NULL),(59,'category',23,'women/tops-women/jackets-women.html','catalog/category/view/id/23',0,1,NULL,1,NULL),(60,'category',24,'women/tops-women/hoodies-and-sweatshirts-women.html','catalog/category/view/id/24',0,1,NULL,1,NULL),(61,'category',25,'women/tops-women/tees-women.html','catalog/category/view/id/25',0,1,NULL,1,NULL),(62,'category',26,'women/tops-women/tanks-women.html','catalog/category/view/id/26',0,1,NULL,1,NULL),(63,'category',27,'women/bottoms-women/pants-women.html','catalog/category/view/id/27',0,1,NULL,1,NULL),(64,'category',28,'women/bottoms-women/shorts-women.html','catalog/category/view/id/28',0,1,NULL,1,NULL),(65,'category',29,'promotions.html','catalog/category/view/id/29',0,1,NULL,1,NULL),(66,'category',30,'promotions/women-sale.html','catalog/category/view/id/30',0,1,NULL,1,NULL),(67,'category',31,'promotions/men-sale.html','catalog/category/view/id/31',0,1,NULL,1,NULL),(68,'category',32,'promotions/pants-all.html','catalog/category/view/id/32',0,1,NULL,1,NULL),(69,'category',33,'promotions/tees-all.html','catalog/category/view/id/33',0,1,NULL,1,NULL),(70,'category',34,'collections/erin-recommends.html','catalog/category/view/id/34',0,1,NULL,1,NULL),(71,'category',35,'collections/performance-fabrics.html','catalog/category/view/id/35',0,1,NULL,1,NULL),(72,'category',36,'collections/eco-friendly.html','catalog/category/view/id/36',0,1,NULL,1,NULL),(73,'product',62,'chaz-kangeroo-hoodie.html','catalog/product/view/id/62',0,1,NULL,1,NULL),(74,'product',78,'teton-pullover-hoodie.html','catalog/product/view/id/78',0,1,NULL,1,NULL),(75,'product',94,'bruno-compete-hoodie.html','catalog/product/view/id/94',0,1,NULL,1,NULL),(76,'product',110,'frankie-sweatshirt.html','catalog/product/view/id/110',0,1,NULL,1,NULL),(77,'product',126,'hollister-backyard-sweatshirt.html','catalog/product/view/id/126',0,1,NULL,1,NULL),(78,'product',142,'stark-fundamental-hoodie.html','catalog/product/view/id/142',0,1,NULL,1,NULL),(79,'product',158,'hero-hoodie.html','catalog/product/view/id/158',0,1,NULL,1,NULL),(80,'product',174,'oslo-trek-hoodie.html','catalog/product/view/id/174',0,1,NULL,1,NULL),(81,'product',190,'abominable-hoodie.html','catalog/product/view/id/190',0,1,NULL,1,NULL),(82,'product',206,'mach-street-sweatshirt.html','catalog/product/view/id/206',0,1,NULL,1,NULL),(83,'product',222,'grayson-crewneck-sweatshirt.html','catalog/product/view/id/222',0,1,NULL,1,NULL),(84,'product',238,'ajax-full-zip-sweatshirt.html','catalog/product/view/id/238',0,1,NULL,1,NULL),(85,'product',254,'marco-lightweight-active-hoodie.html','catalog/product/view/id/254',0,1,NULL,1,NULL),(86,'product',270,'beaumont-summit-kit.html','catalog/product/view/id/270',0,1,NULL,1,NULL),(87,'product',286,'hyperion-elements-jacket.html','catalog/product/view/id/286',0,1,NULL,1,NULL),(88,'product',302,'kenobi-trail-jacket.html','catalog/product/view/id/302',0,1,NULL,1,NULL),(89,'product',318,'orion-two-tone-fitted-jacket.html','catalog/product/view/id/318',0,1,NULL,1,NULL),(90,'product',334,'lando-gym-jacket.html','catalog/product/view/id/334',0,1,NULL,1,NULL),(91,'product',350,'taurus-elements-shell.html','catalog/product/view/id/350',0,1,NULL,1,NULL),(92,'product',366,'mars-heattech-trade-pullover.html','catalog/product/view/id/366',0,1,NULL,1,NULL),(93,'product',382,'typhon-performance-fleece-lined-jacket.html','catalog/product/view/id/382',0,1,NULL,1,NULL),(94,'product',398,'jupiter-all-weather-trainer.html','catalog/product/view/id/398',0,1,NULL,1,NULL),(95,'product',414,'montana-wind-jacket.html','catalog/product/view/id/414',0,1,NULL,1,NULL),(96,'product',430,'proteus-fitness-jackshirt.html','catalog/product/view/id/430',0,1,NULL,1,NULL),(97,'product',446,'gobi-heattec-reg-tee.html','catalog/product/view/id/446',0,1,NULL,1,NULL),(98,'product',462,'helios-evercool-trade-tee.html','catalog/product/view/id/462',0,1,NULL,1,NULL),(99,'product',478,'ryker-lumatech-trade-tee-crew-neck.html','catalog/product/view/id/478',0,1,NULL,1,NULL),(100,'product',494,'atomic-endurance-running-tee-v-neck.html','catalog/product/view/id/494',0,1,NULL,1,NULL),(101,'product',510,'atomic-endurance-running-tee-crew-neck.html','catalog/product/view/id/510',0,1,NULL,1,NULL),(102,'product',526,'balboa-persistence-tee.html','catalog/product/view/id/526',0,1,NULL,1,NULL),(103,'product',542,'zoltan-gym-tee.html','catalog/product/view/id/542',0,1,NULL,1,NULL),(104,'product',558,'aero-daily-fitness-tee.html','catalog/product/view/id/558',0,1,NULL,1,NULL),(105,'product',574,'ryker-lumatech-trade-tee-v-neck.html','catalog/product/view/id/574',0,1,NULL,1,NULL),(106,'product',590,'logan-heattec-reg-tee.html','catalog/product/view/id/590',0,1,NULL,1,NULL),(107,'product',606,'deion-long-sleeve-evercool-trade-tee.html','catalog/product/view/id/606',0,1,NULL,1,NULL),(108,'product',622,'strike-endurance-tee.html','catalog/product/view/id/622',0,1,NULL,1,NULL),(109,'product',638,'erikssen-cooltech-trade-fitness-tank.html','catalog/product/view/id/638',0,1,NULL,1,NULL),(110,'product',654,'tristan-endurance-tank.html','catalog/product/view/id/654',0,1,NULL,1,NULL),(111,'product',670,'primo-endurance-tank.html','catalog/product/view/id/670',0,1,NULL,1,NULL),(112,'product',676,'helios-endurance-tank.html','catalog/product/view/id/676',0,1,NULL,1,NULL),(113,'product',682,'rocco-gym-tank.html','catalog/product/view/id/682',0,1,NULL,1,NULL),(114,'product',688,'vulcan-weightlifting-tank.html','catalog/product/view/id/688',0,1,NULL,1,NULL),(115,'product',694,'argus-all-weather-tank.html','catalog/product/view/id/694',0,1,NULL,1,NULL),(116,'product',700,'sparta-gym-tank.html','catalog/product/view/id/700',0,1,NULL,1,NULL),(117,'product',706,'sinbad-fitness-tank.html','catalog/product/view/id/706',0,1,NULL,1,NULL),(118,'product',712,'tiberius-gym-tank.html','catalog/product/view/id/712',0,1,NULL,1,NULL),(119,'product',718,'atlas-fitness-tank.html','catalog/product/view/id/718',0,1,NULL,1,NULL),(120,'product',724,'cassius-sparring-tank.html','catalog/product/view/id/724',0,1,NULL,1,NULL),(121,'product',737,'caesar-warm-up-pant.html','catalog/product/view/id/737',0,1,NULL,1,NULL),(122,'product',750,'viktor-lumatech-trade-pant.html','catalog/product/view/id/750',0,1,NULL,1,NULL),(123,'product',763,'geo-insulated-jogging-pant.html','catalog/product/view/id/763',0,1,NULL,1,NULL),(124,'product',776,'supernova-sport-pant.html','catalog/product/view/id/776',0,1,NULL,1,NULL),(125,'product',789,'kratos-gym-pant.html','catalog/product/view/id/789',0,1,NULL,1,NULL),(126,'product',802,'mithra-warmup-pant.html','catalog/product/view/id/802',0,1,NULL,1,NULL),(127,'product',815,'thorpe-track-pant.html','catalog/product/view/id/815',0,1,NULL,1,NULL),(128,'product',828,'zeppelin-yoga-pant.html','catalog/product/view/id/828',0,1,NULL,1,NULL),(129,'product',841,'livingston-all-purpose-tight.html','catalog/product/view/id/841',0,1,NULL,1,NULL),(130,'product',854,'orestes-yoga-pant.html','catalog/product/view/id/854',0,1,NULL,1,NULL),(131,'product',867,'aether-gym-pant.html','catalog/product/view/id/867',0,1,NULL,1,NULL),(132,'product',880,'cronus-yoga-pant.html','catalog/product/view/id/880',0,1,NULL,1,NULL),(133,'product',893,'cobalt-cooltech-trade-fitness-short.html','catalog/product/view/id/893',0,1,NULL,1,NULL),(134,'product',898,'apollo-running-short.html','catalog/product/view/id/898',0,1,NULL,1,NULL),(135,'product',911,'meteor-workout-short.html','catalog/product/view/id/911',0,1,NULL,1,NULL),(136,'product',924,'torque-power-short.html','catalog/product/view/id/924',0,1,NULL,1,NULL),(137,'product',937,'hawkeye-yoga-short.html','catalog/product/view/id/937',0,1,NULL,1,NULL),(138,'product',950,'lono-yoga-short.html','catalog/product/view/id/950',0,1,NULL,1,NULL),(139,'product',963,'rapha-sports-short.html','catalog/product/view/id/963',0,1,NULL,1,NULL),(140,'product',976,'orestes-fitness-short.html','catalog/product/view/id/976',0,1,NULL,1,NULL),(141,'product',989,'troy-yoga-short.html','catalog/product/view/id/989',0,1,NULL,1,NULL),(142,'product',1002,'sol-active-short.html','catalog/product/view/id/1002',0,1,NULL,1,NULL),(143,'product',1015,'arcadio-gym-short.html','catalog/product/view/id/1015',0,1,NULL,1,NULL),(144,'product',1028,'pierce-gym-short.html','catalog/product/view/id/1028',0,1,NULL,1,NULL),(145,'product',1044,'mona-pullover-hoodlie.html','catalog/product/view/id/1044',0,1,NULL,1,NULL),(146,'product',1060,'hera-pullover-hoodie.html','catalog/product/view/id/1060',0,1,NULL,1,NULL),(147,'product',1076,'autumn-pullie.html','catalog/product/view/id/1076',0,1,NULL,1,NULL),(148,'product',1092,'miko-pullover-hoodie.html','catalog/product/view/id/1092',0,1,NULL,1,NULL),(149,'product',1108,'selene-yoga-hoodie.html','catalog/product/view/id/1108',0,1,NULL,1,NULL),(150,'product',1114,'daphne-full-zip-hoodie.html','catalog/product/view/id/1114',0,1,NULL,1,NULL),(151,'product',1130,'phoebe-zipper-sweatshirt.html','catalog/product/view/id/1130',0,1,NULL,1,NULL),(152,'product',1146,'cassia-funnel-sweatshirt.html','catalog/product/view/id/1146',0,1,NULL,1,NULL),(153,'product',1162,'ariel-roll-sleeve-sweatshirt.html','catalog/product/view/id/1162',0,1,NULL,1,NULL),(154,'product',1178,'helena-hooded-fleece.html','catalog/product/view/id/1178',0,1,NULL,1,NULL),(155,'product',1194,'eos-v-neck-hoodie.html','catalog/product/view/id/1194',0,1,NULL,1,NULL),(156,'product',1210,'circe-hooded-ice-fleece.html','catalog/product/view/id/1210',0,1,NULL,1,NULL),(157,'product',1220,'stellar-solar-jacket.html','catalog/product/view/id/1220',0,1,NULL,1,NULL),(158,'product',1236,'josie-yoga-jacket.html','catalog/product/view/id/1236',0,1,NULL,1,NULL),(159,'product',1252,'augusta-pullover-jacket.html','catalog/product/view/id/1252',0,1,NULL,1,NULL),(160,'product',1268,'ingrid-running-jacket.html','catalog/product/view/id/1268',0,1,NULL,1,NULL),(161,'product',1284,'riona-full-zip-jacket.html','catalog/product/view/id/1284',0,1,NULL,1,NULL),(162,'product',1300,'inez-full-zip-jacket.html','catalog/product/view/id/1300',0,1,NULL,1,NULL),(163,'product',1316,'adrienne-trek-jacket.html','catalog/product/view/id/1316',0,1,NULL,1,NULL),(164,'product',1332,'jade-yoga-jacket.html','catalog/product/view/id/1332',0,1,NULL,1,NULL),(165,'product',1348,'nadia-elements-shell.html','catalog/product/view/id/1348',0,1,NULL,1,NULL),(166,'product',1364,'neve-studio-dance-jacket.html','catalog/product/view/id/1364',0,1,NULL,1,NULL),(167,'product',1380,'juno-jacket.html','catalog/product/view/id/1380',0,1,NULL,1,NULL),(168,'product',1396,'olivia-1-4-zip-light-jacket.html','catalog/product/view/id/1396',0,1,NULL,1,NULL),(169,'product',1412,'gabrielle-micro-sleeve-top.html','catalog/product/view/id/1412',0,1,NULL,1,NULL),(170,'product',1428,'iris-workout-top.html','catalog/product/view/id/1428',0,1,NULL,1,NULL),(171,'product',1444,'layla-tee.html','catalog/product/view/id/1444',0,1,NULL,1,NULL),(172,'product',1460,'elisa-evercool-trade-tee.html','catalog/product/view/id/1460',0,1,NULL,1,NULL),(173,'product',1476,'juliana-short-sleeve-tee.html','catalog/product/view/id/1476',0,1,NULL,1,NULL),(174,'product',1492,'minerva-lumatech-trade-v-tee.html','catalog/product/view/id/1492',0,1,NULL,1,NULL),(175,'product',1508,'tiffany-fitness-tee.html','catalog/product/view/id/1508',0,1,NULL,1,NULL),(176,'product',1524,'karissa-v-neck-tee.html','catalog/product/view/id/1524',0,1,NULL,1,NULL),(177,'product',1540,'diva-gym-tee.html','catalog/product/view/id/1540',0,1,NULL,1,NULL),(178,'product',1556,'radiant-tee.html','catalog/product/view/id/1556',0,1,NULL,1,NULL),(179,'product',1572,'gwyn-endurance-tee.html','catalog/product/view/id/1572',0,1,NULL,1,NULL),(180,'product',1588,'desiree-fitness-tee.html','catalog/product/view/id/1588',0,1,NULL,1,NULL),(181,'product',1604,'electra-bra-top.html','catalog/product/view/id/1604',0,1,NULL,1,NULL),(182,'product',1620,'erica-evercool-sports-bra.html','catalog/product/view/id/1620',0,1,NULL,1,NULL),(183,'product',1636,'celeste-sports-bra.html','catalog/product/view/id/1636',0,1,NULL,1,NULL),(184,'product',1652,'prima-compete-bra-top.html','catalog/product/view/id/1652',0,1,NULL,1,NULL),(185,'product',1668,'lucia-cross-fit-bra.html','catalog/product/view/id/1668',0,1,NULL,1,NULL),(186,'product',1684,'bella-tank.html','catalog/product/view/id/1684',0,1,NULL,1,NULL),(187,'product',1700,'zoe-tank.html','catalog/product/view/id/1700',0,1,NULL,1,NULL),(188,'product',1716,'nora-practice-tank.html','catalog/product/view/id/1716',0,1,NULL,1,NULL),(189,'product',1732,'nona-fitness-tank.html','catalog/product/view/id/1732',0,1,NULL,1,NULL),(190,'product',1748,'leah-yoga-top.html','catalog/product/view/id/1748',0,1,NULL,1,NULL),(191,'product',1764,'chloe-compete-tank.html','catalog/product/view/id/1764',0,1,NULL,1,NULL),(192,'product',1780,'maya-tunic.html','catalog/product/view/id/1780',0,1,NULL,1,NULL),(193,'product',1796,'antonia-racer-tank.html','catalog/product/view/id/1796',0,1,NULL,1,NULL),(194,'product',1812,'breathe-easy-tank.html','catalog/product/view/id/1812',0,1,NULL,1,NULL),(195,'product',1819,'karmen-yoga-pant.html','catalog/product/view/id/1819',0,1,NULL,1,NULL),(196,'product',1826,'emma-leggings.html','catalog/product/view/id/1826',0,1,NULL,1,NULL),(197,'product',1833,'ida-workout-parachute-pant.html','catalog/product/view/id/1833',0,1,NULL,1,NULL),(198,'product',1840,'cora-parachute-pant.html','catalog/product/view/id/1840',0,1,NULL,1,NULL),(199,'product',1847,'sahara-leggings.html','catalog/product/view/id/1847',0,1,NULL,1,NULL),(200,'product',1854,'diana-tights.html','catalog/product/view/id/1854',0,1,NULL,1,NULL),(201,'product',1861,'aeon-capri.html','catalog/product/view/id/1861',0,1,NULL,1,NULL),(202,'product',1868,'bardot-capri.html','catalog/product/view/id/1868',0,1,NULL,1,NULL),(203,'product',1875,'carina-basic-capri.html','catalog/product/view/id/1875',0,1,NULL,1,NULL),(204,'product',1882,'daria-bikram-pant.html','catalog/product/view/id/1882',0,1,NULL,1,NULL),(205,'product',1889,'sylvia-capri.html','catalog/product/view/id/1889',0,1,NULL,1,NULL),(206,'product',1896,'deirdre-relaxed-fit-capri.html','catalog/product/view/id/1896',0,1,NULL,1,NULL),(207,'product',1903,'portia-capri.html','catalog/product/view/id/1903',0,1,NULL,1,NULL),(208,'product',1919,'fiona-fitness-short.html','catalog/product/view/id/1919',0,1,NULL,1,NULL),(209,'product',1935,'maxima-drawstring-short.html','catalog/product/view/id/1935',0,1,NULL,1,NULL),(210,'product',1951,'gwen-drawstring-bike-short.html','catalog/product/view/id/1951',0,1,NULL,1,NULL),(211,'product',1967,'artemis-running-short.html','catalog/product/view/id/1967',0,1,NULL,1,NULL),(212,'product',1983,'bess-yoga-short.html','catalog/product/view/id/1983',0,1,NULL,1,NULL),(213,'product',1990,'angel-light-running-short.html','catalog/product/view/id/1990',0,1,NULL,1,NULL),(214,'product',1997,'echo-fit-compression-short.html','catalog/product/view/id/1997',0,1,NULL,1,NULL),(215,'product',2003,'sybil-running-short.html','catalog/product/view/id/2003',0,1,NULL,1,NULL),(216,'product',2010,'mimi-all-purpose-short.html','catalog/product/view/id/2010',0,1,NULL,1,NULL),(217,'product',2017,'ana-running-short.html','catalog/product/view/id/2017',0,1,NULL,1,NULL),(218,'product',2024,'ina-compression-short.html','catalog/product/view/id/2024',0,1,NULL,1,NULL),(219,'product',2040,'erika-running-short.html','catalog/product/view/id/2040',0,1,NULL,1,NULL),(232,'category',37,'sale.html','catalog/category/view/id/37',0,1,NULL,1,NULL),(233,'category',38,'what-is-new.html','catalog/category/view/id/38',0,1,NULL,1,NULL),(234,'category',39,'collections/performance-new.html','catalog/category/view/id/39',0,1,NULL,1,NULL),(235,'category',40,'collections/eco-new.html','catalog/category/view/id/40',0,1,NULL,1,NULL),(236,'cms-page',5,'about-us','cms/page/view/page_id/5',0,1,NULL,1,NULL),(237,'cms-page',6,'customer-service','cms/page/view/page_id/6',0,1,NULL,1,NULL);

--
-- Table structure for table `[[dbprefix]]variable`
--

CREATE TABLE `[[dbprefix]]variable` (
  `variable_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Variable ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Variable Code',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Variable Name',
  PRIMARY KEY (`variable_id`),
  UNIQUE KEY `[[DBPREFIX]]VARIABLE_CODE` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Variables';

--
-- Dumping data for table `[[dbprefix]]variable`
--


--
-- Table structure for table `[[dbprefix]]variable_value`
--

CREATE TABLE `[[dbprefix]]variable_value` (
  `value_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Variable Value ID',
  `variable_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Variable ID',
  `store_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `plain_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Plain Text Value',
  `html_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Html Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `[[DBPREFIX]]VARIABLE_VALUE_VARIABLE_ID_STORE_ID` (`variable_id`,`store_id`),
  KEY `[[DBPREFIX]]VARIABLE_VALUE_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]VARIABLE_VALUE_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]VARIABLE_VALUE_VARIABLE_ID_[[DBPREFIX]]VARIABLE_VARIABLE_ID` FOREIGN KEY (`variable_id`) REFERENCES `[[dbprefix]]variable` (`variable_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Variable Value';

--
-- Dumping data for table `[[dbprefix]]variable_value`
--


--
-- Table structure for table `[[dbprefix]]vault_payment_token`
--

CREATE TABLE `[[dbprefix]]vault_payment_token` (
  `entity_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `customer_id` int unsigned DEFAULT NULL COMMENT 'Customer ID',
  `website_id` int unsigned DEFAULT NULL COMMENT 'Website ID',
  `public_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Hash code for using on frontend',
  `payment_method_code` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Payment method code',
  `type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Type',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
  `expires_at` timestamp NULL DEFAULT NULL COMMENT 'Expires At',
  `gateway_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Gateway Token',
  `details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Details',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `[[DBPREFIX]]VAULT_PAYMENT_TOKEN_PUBLIC_HASH` (`public_hash`),
  UNIQUE KEY `UNQ_8A3A66ADA892E72943DABBC512E7BA4B` (`payment_method_code`,`customer_id`,`gateway_token`),
  KEY `[[DBPREFIX]]VAULT_PAYMENT_TOKEN_CSTR_ID_[[DBPREFIX]]CSTR_ENTT_ENTT_ID` (`customer_id`),
  CONSTRAINT `[[DBPREFIX]]VAULT_PAYMENT_TOKEN_CSTR_ID_[[DBPREFIX]]CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `[[dbprefix]]customer_entity` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Vault tokens of payment';

--
-- Dumping data for table `[[dbprefix]]vault_payment_token`
--


--
-- Table structure for table `[[dbprefix]]vault_payment_token_order_payment_link`
--

CREATE TABLE `[[dbprefix]]vault_payment_token_order_payment_link` (
  `order_payment_id` int unsigned NOT NULL COMMENT 'Order payment ID',
  `payment_token_id` int unsigned NOT NULL COMMENT 'Payment token ID',
  PRIMARY KEY (`order_payment_id`,`payment_token_id`),
  KEY `FK_9DDDB313998578BE4AC6CAA0A85DD75C` (`payment_token_id`),
  CONSTRAINT `FK_9DDDB313998578BE4AC6CAA0A85DD75C` FOREIGN KEY (`payment_token_id`) REFERENCES `[[dbprefix]]vault_payment_token` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F2B3983591CCBE38509B9B3399D03DB2` FOREIGN KEY (`order_payment_id`) REFERENCES `[[dbprefix]]sales_order_payment` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Order payments to vault token';

--
-- Dumping data for table `[[dbprefix]]vault_payment_token_order_payment_link`
--


--
-- Table structure for table `[[dbprefix]]weee_tax`
--

CREATE TABLE `[[dbprefix]]weee_tax` (
  `value_id` int NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `website_id` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `entity_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `country` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Country',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  `state` int NOT NULL DEFAULT '0' COMMENT 'State',
  `attribute_id` smallint unsigned NOT NULL COMMENT 'Attribute ID',
  PRIMARY KEY (`value_id`),
  KEY `[[DBPREFIX]]WEEE_TAX_WEBSITE_ID` (`website_id`),
  KEY `[[DBPREFIX]]WEEE_TAX_ENTITY_ID` (`entity_id`),
  KEY `[[DBPREFIX]]WEEE_TAX_COUNTRY` (`country`),
  KEY `[[DBPREFIX]]WEEE_TAX_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `[[DBPREFIX]]WEEE_TAX_ATTRIBUTE_ID_[[DBPREFIX]]EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `[[dbprefix]]eav_attribute` (`attribute_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]WEEE_TAX_COUNTRY_[[DBPREFIX]]DIRECTORY_COUNTRY_COUNTRY_ID` FOREIGN KEY (`country`) REFERENCES `[[dbprefix]]directory_country` (`country_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]WEEE_TAX_ENTITY_ID_[[DBPREFIX]]CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `[[dbprefix]]catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]WEEE_TAX_WEBSITE_ID_[[DBPREFIX]]STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `[[dbprefix]]store_website` (`website_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Weee Tax';

--
-- Dumping data for table `[[dbprefix]]weee_tax`
--


--
-- Table structure for table `[[dbprefix]]widget`
--

CREATE TABLE `[[dbprefix]]widget` (
  `widget_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Widget ID',
  `widget_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Widget code for template directive',
  `widget_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Widget Type',
  `parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Parameters',
  PRIMARY KEY (`widget_id`),
  KEY `[[DBPREFIX]]WIDGET_WIDGET_CODE` (`widget_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Preconfigured Widgets';

--
-- Dumping data for table `[[dbprefix]]widget`
--


--
-- Table structure for table `[[dbprefix]]widget_instance`
--

CREATE TABLE `[[dbprefix]]widget_instance` (
  `instance_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Instance ID',
  `instance_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Instance Type',
  `theme_id` int unsigned NOT NULL COMMENT 'Theme ID',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Widget Title',
  `store_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT 'Store ids',
  `widget_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Widget parameters',
  `sort_order` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Sort order',
  PRIMARY KEY (`instance_id`),
  KEY `[[DBPREFIX]]WIDGET_INSTANCE_THEME_ID_[[DBPREFIX]]THEME_THEME_ID` (`theme_id`),
  CONSTRAINT `[[DBPREFIX]]WIDGET_INSTANCE_THEME_ID_[[DBPREFIX]]THEME_THEME_ID` FOREIGN KEY (`theme_id`) REFERENCES `[[dbprefix]]theme` (`theme_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COMMENT='Instances of Widget for Package Theme';

--
-- Dumping data for table `[[dbprefix]]widget_instance`
--

INSERT INTO `[[dbprefix]]widget_instance` VALUES (1,'Magento\\Cms\\Block\\Widget\\Block',3,'Contact us info','0','{\"block_id\":\"2\"}',0),(2,'Magento\\Cms\\Block\\Widget\\Block',3,'Footer Links','0','{\"block_id\":\"1\"}',0),(3,'Magento\\Cms\\Block\\Widget\\Block',3,'Sale Left Menu','0','{\"block_id\":\"3\"}',0),(4,'Magento\\Cms\\Block\\Widget\\Block',3,'Gear Left Menu','0','{\"block_id\":\"4\"}',0),(5,'Magento\\Cms\\Block\\Widget\\Block',3,'Men\'s Left Menu','0','{\"block_id\":\"5\"}',0),(6,'Magento\\Cms\\Block\\Widget\\Block',3,'Women\'s Left Menu','0','{\"block_id\":\"6\"}',0),(7,'Magento\\Cms\\Block\\Widget\\Block',3,'What\'s New Left Menu','0','{\"block_id\":\"7\"}',0),(8,'Magento\\Cms\\Block\\Widget\\Block',3,'Women Category Content','0','{\"block_id\":\"8\"}',0),(9,'Magento\\Cms\\Block\\Widget\\Block',3,'Training Category Content','0','{\"block_id\":\"9\"}',0),(10,'Magento\\Cms\\Block\\Widget\\Block',3,'Men Category Content','0','{\"block_id\":\"10\"}',0),(11,'Magento\\Cms\\Block\\Widget\\Block',3,'Gear Category Content','0','{\"block_id\":\"11\"}',0),(12,'Magento\\Cms\\Block\\Widget\\Block',3,'New Products Category Content','0','{\"block_id\":\"13\"}',0),(13,'Magento\\Cms\\Block\\Widget\\Block',3,'Sale Category Content','0','{\"block_id\":\"12\"}',0),(14,'Magento\\Cms\\Block\\Widget\\Block',3,'Home Page','0','{\"block_id\":\"14\"}',0),(15,'Magento\\Cms\\Block\\Widget\\Block',3,'Performance Fabrics','0','{\"block_id\":\"15\"}',0),(16,'Magento\\Cms\\Block\\Widget\\Block',3,'Eco Friendly','0','{\"block_id\":\"16\"}',0),(17,'Magento\\Cms\\Block\\Widget\\Block',3,'Login Info','0','{\"block_id\":\"17\"}',0);

--
-- Table structure for table `[[dbprefix]]widget_instance_page`
--

CREATE TABLE `[[dbprefix]]widget_instance_page` (
  `page_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Page ID',
  `instance_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Instance ID',
  `page_group` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Block Group Type',
  `layout_handle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Layout Handle',
  `block_reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Container',
  `page_for` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'For instance entities',
  `entities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Catalog entities (comma separated)',
  `page_template` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Path to widget template',
  PRIMARY KEY (`page_id`),
  KEY `[[DBPREFIX]]WIDGET_INSTANCE_PAGE_INSTANCE_ID` (`instance_id`),
  CONSTRAINT `FK_8CEB8E4A49C1C3B5DA3955BA7D727D5D` FOREIGN KEY (`instance_id`) REFERENCES `[[dbprefix]]widget_instance` (`instance_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COMMENT='Instance of Widget on Page';

--
-- Dumping data for table `[[dbprefix]]widget_instance_page`
--

INSERT INTO `[[dbprefix]]widget_instance_page` VALUES (1,1,'pages','contact_index_index','content.top','all','','widget/static_block/default.phtml'),(2,2,'all_pages','default','cms_footer_links_container','all','','widget/static_block/default.phtml'),(3,3,'anchor_categories','catalog_category_view_type_layered','sidebar.main','specific','37','widget/static_block/default.phtml'),(4,4,'anchor_categories','catalog_category_view_type_layered','sidebar.main','specific','3','widget/static_block/default.phtml'),(5,5,'anchor_categories','catalog_category_view_type_layered','sidebar.main','specific','11','widget/static_block/default.phtml'),(6,6,'anchor_categories','catalog_category_view_type_layered','sidebar.main','specific','20','widget/static_block/default.phtml'),(7,7,'anchor_categories','catalog_category_view_type_layered','sidebar.main','specific','38','widget/static_block/default.phtml'),(8,8,'anchor_categories','catalog_category_view_type_layered','content.top','specific','20','widget/static_block/default.phtml'),(9,9,'anchor_categories','catalog_category_view_type_layered','content.top','specific','9','widget/static_block/default.phtml'),(10,10,'anchor_categories','catalog_category_view_type_layered','content.top','specific','11','widget/static_block/default.phtml'),(11,11,'anchor_categories','catalog_category_view_type_layered','content.top','specific','3','widget/static_block/default.phtml'),(12,12,'anchor_categories','catalog_category_view_type_layered','content.top','specific','38','widget/static_block/default.phtml'),(13,13,'anchor_categories','catalog_category_view_type_layered','content.top','specific','37','widget/static_block/default.phtml'),(14,14,'pages','cms_index_index','content','all','','widget/static_block/default.phtml'),(15,15,'anchor_categories','catalog_category_view_type_layered','content.top','specific','39','widget/static_block/default.phtml'),(16,16,'anchor_categories','catalog_category_view_type_layered','content.top','specific','40','widget/static_block/default.phtml'),(17,17,'pages','customer_account_login','customer.login.container','all','','widget/static_block/default.phtml');

--
-- Table structure for table `[[dbprefix]]widget_instance_page_layout`
--

CREATE TABLE `[[dbprefix]]widget_instance_page_layout` (
  `page_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Page ID',
  `layout_update_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Layout Update ID',
  PRIMARY KEY (`layout_update_id`,`page_id`),
  KEY `[[DBPREFIX]]WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID` (`page_id`),
  CONSTRAINT `FK_4A92EC86A64E5198C495C2359162AD22` FOREIGN KEY (`page_id`) REFERENCES `[[dbprefix]]widget_instance_page` (`page_id`) ON DELETE CASCADE,
  CONSTRAINT `FK_79179AAD75F12559E0DB3AD9C51FF5BD` FOREIGN KEY (`layout_update_id`) REFERENCES `[[dbprefix]]layout_update` (`layout_update_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Layout updates';

--
-- Dumping data for table `[[dbprefix]]widget_instance_page_layout`
--

INSERT INTO `[[dbprefix]]widget_instance_page_layout` VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10),(11,11),(12,12),(13,13),(14,14),(15,15),(16,16),(17,17);

--
-- Table structure for table `[[dbprefix]]wishlist`
--

CREATE TABLE `[[dbprefix]]wishlist` (
  `wishlist_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Wishlist ID',
  `customer_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Customer ID',
  `shared` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'Sharing flag (0 or 1)',
  `sharing_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Sharing encrypted code',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Last updated date',
  PRIMARY KEY (`wishlist_id`),
  UNIQUE KEY `[[DBPREFIX]]WISHLIST_CUSTOMER_ID` (`customer_id`),
  KEY `[[DBPREFIX]]WISHLIST_SHARED` (`shared`),
  CONSTRAINT `[[DBPREFIX]]WISHLIST_CUSTOMER_ID_[[DBPREFIX]]CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `[[dbprefix]]customer_entity` (`entity_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Wishlist main Table';

--
-- Dumping data for table `[[dbprefix]]wishlist`
--


--
-- Table structure for table `[[dbprefix]]wishlist_item`
--

CREATE TABLE `[[dbprefix]]wishlist_item` (
  `wishlist_item_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Wishlist item ID',
  `wishlist_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Wishlist ID',
  `product_id` int unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `store_id` smallint unsigned DEFAULT NULL COMMENT 'Store ID',
  `added_at` timestamp NULL DEFAULT NULL COMMENT 'Add date and time',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Short description of wish list item',
  `qty` decimal(12,4) NOT NULL COMMENT 'Qty',
  PRIMARY KEY (`wishlist_item_id`),
  KEY `[[DBPREFIX]]WISHLIST_ITEM_WISHLIST_ID` (`wishlist_id`),
  KEY `[[DBPREFIX]]WISHLIST_ITEM_PRODUCT_ID` (`product_id`),
  KEY `[[DBPREFIX]]WISHLIST_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `[[DBPREFIX]]WISHLIST_ITEM_PRD_ID_[[DBPREFIX]]CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `[[dbprefix]]catalog_product_entity` (`entity_id`) ON DELETE CASCADE,
  CONSTRAINT `[[DBPREFIX]]WISHLIST_ITEM_STORE_ID_[[DBPREFIX]]STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `[[dbprefix]]store` (`store_id`) ON DELETE SET NULL,
  CONSTRAINT `[[DBPREFIX]]WISHLIST_ITEM_WISHLIST_ID_[[DBPREFIX]]WISHLIST_WISHLIST_ID` FOREIGN KEY (`wishlist_id`) REFERENCES `[[dbprefix]]wishlist` (`wishlist_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Wishlist items';

--
-- Dumping data for table `[[dbprefix]]wishlist_item`
--


--
-- Table structure for table `[[dbprefix]]wishlist_item_option`
--

CREATE TABLE `[[dbprefix]]wishlist_item_option` (
  `option_id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option ID',
  `wishlist_item_id` int unsigned NOT NULL COMMENT 'Wishlist Item ID',
  `product_id` int unsigned NOT NULL COMMENT 'Product ID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Code',
  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Value',
  PRIMARY KEY (`option_id`),
  KEY `FK_50A2E7BB0F31EC0BC615E7F5040A12AC` (`wishlist_item_id`),
  CONSTRAINT `FK_50A2E7BB0F31EC0BC615E7F5040A12AC` FOREIGN KEY (`wishlist_item_id`) REFERENCES `[[dbprefix]]wishlist_item` (`wishlist_item_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Wishlist Item Option Table';

--
-- Dumping data for table `[[dbprefix]]wishlist_item_option`
--


--
-- Dumping routines for database 'magento248sd'
--

--
-- Final view structure for view `[[dbprefix]]inventory_stock_1`
--

/*!50001 DROP VIEW IF EXISTS `[[dbprefix]]inventory_stock_1`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013  SQL SECURITY INVOKER */
/*!50001 VIEW `[[dbprefix]]inventory_stock_1` AS select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`[[dbprefix]]cataloginventory_stock_status` `legacy_stock_status` join `[[dbprefix]]catalog_product_entity` `product` on((`legacy_stock_status`.`product_id` = `product`.`entity_id`))) */;



DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_category_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_category_entity` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`parent_id` <=> OLD.`parent_id`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`path` <=> OLD.`path`) OR NOT(NEW.`position` <=> OLD.`position`) OR NOT(NEW.`level` <=> OLD.`level`) OR NOT(NEW.`children_count` <=> OLD.`children_count`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_category_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_int_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_category_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_int_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_category_entity_int` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_entity_int_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_category_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalog_category_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_product_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_category_product` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_product_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_category_product` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_category_product_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_category_product` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_bundle_selection_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_bundle_selection` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`parent_product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_bundle_selection_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_bundle_selection` FOR EACH ROW BEGIN
IF (NOT(NEW.`selection_id` <=> OLD.`selection_id`) OR NOT(NEW.`option_id` <=> OLD.`option_id`) OR NOT(NEW.`parent_product_id` <=> OLD.`parent_product_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`) OR NOT(NEW.`is_default` <=> OLD.`is_default`) OR NOT(NEW.`selection_price_type` <=> OLD.`selection_price_type`) OR NOT(NEW.`selection_price_value` <=> OLD.`selection_price_value`) OR NOT(NEW.`selection_qty` <=> OLD.`selection_qty`) OR NOT(NEW.`selection_can_change_qty` <=> OLD.`selection_can_change_qty`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`parent_product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_bundle_selection_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_bundle_selection` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`parent_product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_datetime_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_datetime` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_datetime_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_datetime` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_datetime_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_datetime` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_decimal_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_decimal` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_decimal_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_decimal` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_decimal_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_decimal` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_int_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_int_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_int` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_int_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_text_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_text` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_text_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_text` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_text_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_text` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_tier_price_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_tier_price` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_tier_price_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_tier_price` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`all_groups` <=> OLD.`all_groups`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`percentage_value` <=> OLD.`percentage_value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`all_groups` <=> OLD.`all_groups`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`percentage_value` <=> OLD.`percentage_value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_tier_price_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_tier_price` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_varchar_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_entity_varchar` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_varchar_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_entity_varchar` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_entity_varchar_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_entity_varchar` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (OLD.`entity_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_link_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_link` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_link_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_link` FOR EACH ROW BEGIN
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_link_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_link` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_attribute_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalogrule_product_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_super_link_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_super_link` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_super_link_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_super_link` FOR EACH ROW BEGIN
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`parent_id` <=> OLD.`parent_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_super_link_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_super_link` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_website_after_insert` AFTER INSERT ON `[[dbprefix]]catalog_product_website` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_website_after_update` AFTER UPDATE ON `[[dbprefix]]catalog_product_website` FOR EACH ROW BEGIN
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalog_product_website_after_delete` AFTER DELETE ON `[[dbprefix]]catalog_product_website` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_category_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]cataloginventory_stock_item_after_insert` AFTER INSERT ON `[[dbprefix]]cataloginventory_stock_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]cataloginventory_stock_item_after_update` AFTER UPDATE ON `[[dbprefix]]cataloginventory_stock_item` FOR EACH ROW BEGIN
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`stock_id` <=> OLD.`stock_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`min_qty` <=> OLD.`min_qty`) OR NOT(NEW.`use_config_min_qty` <=> OLD.`use_config_min_qty`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`backorders` <=> OLD.`backorders`) OR NOT(NEW.`use_config_backorders` <=> OLD.`use_config_backorders`) OR NOT(NEW.`min_sale_qty` <=> OLD.`min_sale_qty`) OR NOT(NEW.`use_config_min_sale_qty` <=> OLD.`use_config_min_sale_qty`) OR NOT(NEW.`max_sale_qty` <=> OLD.`max_sale_qty`) OR NOT(NEW.`use_config_max_sale_qty` <=> OLD.`use_config_max_sale_qty`) OR NOT(NEW.`is_in_stock` <=> OLD.`is_in_stock`) OR NOT(NEW.`low_stock_date` <=> OLD.`low_stock_date`) OR NOT(NEW.`notify_stock_qty` <=> OLD.`notify_stock_qty`) OR NOT(NEW.`use_config_notify_stock_qty` <=> OLD.`use_config_notify_stock_qty`) OR NOT(NEW.`manage_stock` <=> OLD.`manage_stock`) OR NOT(NEW.`use_config_manage_stock` <=> OLD.`use_config_manage_stock`) OR NOT(NEW.`stock_status_changed_auto` <=> OLD.`stock_status_changed_auto`) OR NOT(NEW.`use_config_qty_increments` <=> OLD.`use_config_qty_increments`) OR NOT(NEW.`qty_increments` <=> OLD.`qty_increments`) OR NOT(NEW.`use_config_enable_qty_inc` <=> OLD.`use_config_enable_qty_inc`) OR NOT(NEW.`enable_qty_increments` <=> OLD.`enable_qty_increments`) OR NOT(NEW.`is_decimal_divided` <=> OLD.`is_decimal_divided`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]cataloginventory_stock_item_after_delete` AFTER DELETE ON `[[dbprefix]]cataloginventory_stock_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_after_insert` AFTER INSERT ON `[[dbprefix]]catalogrule` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogrule_rule_cl` (`entity_id`) VALUES (NEW.`rule_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_after_update` AFTER UPDATE ON `[[dbprefix]]catalogrule` FOR EACH ROW BEGIN
IF (NOT(NEW.`rule_id` <=> OLD.`rule_id`) OR NOT(NEW.`name` <=> OLD.`name`) OR NOT(NEW.`description` <=> OLD.`description`) OR NOT(NEW.`from_date` <=> OLD.`from_date`) OR NOT(NEW.`to_date` <=> OLD.`to_date`) OR NOT(NEW.`is_active` <=> OLD.`is_active`) OR NOT(NEW.`conditions_serialized` <=> OLD.`conditions_serialized`) OR NOT(NEW.`actions_serialized` <=> OLD.`actions_serialized`) OR NOT(NEW.`stop_rules_processing` <=> OLD.`stop_rules_processing`) OR NOT(NEW.`sort_order` <=> OLD.`sort_order`) OR NOT(NEW.`simple_action` <=> OLD.`simple_action`) OR NOT(NEW.`discount_amount` <=> OLD.`discount_amount`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogrule_rule_cl` (`entity_id`) VALUES (NEW.`rule_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_after_delete` AFTER DELETE ON `[[dbprefix]]catalogrule` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogrule_rule_cl` (`entity_id`) VALUES (OLD.`rule_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_product_price_after_insert` AFTER INSERT ON `[[dbprefix]]catalogrule_product_price` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_product_price_after_update` AFTER UPDATE ON `[[dbprefix]]catalogrule_product_price` FOR EACH ROW BEGIN
IF (NOT(NEW.`rule_product_price_id` <=> OLD.`rule_product_price_id`) OR NOT(NEW.`rule_date` <=> OLD.`rule_date`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`rule_price` <=> OLD.`rule_price`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`latest_start_date` <=> OLD.`latest_start_date`) OR NOT(NEW.`earliest_end_date` <=> OLD.`earliest_end_date`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
IF (NOT(NEW.`rule_product_price_id` <=> OLD.`rule_product_price_id`) OR NOT(NEW.`rule_date` <=> OLD.`rule_date`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`rule_price` <=> OLD.`rule_price`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`latest_start_date` <=> OLD.`latest_start_date`) OR NOT(NEW.`earliest_end_date` <=> OLD.`earliest_end_date`)) THEN INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]catalogrule_product_price_after_delete` AFTER DELETE ON `[[dbprefix]]catalogrule_product_price` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`);
INSERT IGNORE INTO `[[dbprefix]]catalog_product_price_cl` (`entity_id`) VALUES (OLD.`product_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_address_entity_after_insert` AFTER INSERT ON `[[dbprefix]]customer_address_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`parent_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_address_entity_after_update` AFTER UPDATE ON `[[dbprefix]]customer_address_entity` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`increment_id` <=> OLD.`increment_id`) OR NOT(NEW.`parent_id` <=> OLD.`parent_id`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`is_active` <=> OLD.`is_active`) OR NOT(NEW.`city` <=> OLD.`city`) OR NOT(NEW.`company` <=> OLD.`company`) OR NOT(NEW.`country_id` <=> OLD.`country_id`) OR NOT(NEW.`fax` <=> OLD.`fax`) OR NOT(NEW.`firstname` <=> OLD.`firstname`) OR NOT(NEW.`lastname` <=> OLD.`lastname`) OR NOT(NEW.`middlename` <=> OLD.`middlename`) OR NOT(NEW.`postcode` <=> OLD.`postcode`) OR NOT(NEW.`prefix` <=> OLD.`prefix`) OR NOT(NEW.`region` <=> OLD.`region`) OR NOT(NEW.`region_id` <=> OLD.`region_id`) OR NOT(NEW.`street` <=> OLD.`street`) OR NOT(NEW.`suffix` <=> OLD.`suffix`) OR NOT(NEW.`telephone` <=> OLD.`telephone`) OR NOT(NEW.`vat_id` <=> OLD.`vat_id`) OR NOT(NEW.`vat_is_valid` <=> OLD.`vat_is_valid`) OR NOT(NEW.`vat_request_date` <=> OLD.`vat_request_date`) OR NOT(NEW.`vat_request_id` <=> OLD.`vat_request_id`) OR NOT(NEW.`vat_request_success` <=> OLD.`vat_request_success`)) THEN INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`parent_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_address_entity_after_delete` AFTER DELETE ON `[[dbprefix]]customer_address_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (OLD.`parent_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_after_insert` AFTER INSERT ON `[[dbprefix]]customer_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_after_update` AFTER UPDATE ON `[[dbprefix]]customer_entity` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`email` <=> OLD.`email`) OR NOT(NEW.`group_id` <=> OLD.`group_id`) OR NOT(NEW.`increment_id` <=> OLD.`increment_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`is_active` <=> OLD.`is_active`) OR NOT(NEW.`disable_auto_group_change` <=> OLD.`disable_auto_group_change`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`prefix` <=> OLD.`prefix`) OR NOT(NEW.`firstname` <=> OLD.`firstname`) OR NOT(NEW.`middlename` <=> OLD.`middlename`) OR NOT(NEW.`lastname` <=> OLD.`lastname`) OR NOT(NEW.`suffix` <=> OLD.`suffix`) OR NOT(NEW.`dob` <=> OLD.`dob`) OR NOT(NEW.`password_hash` <=> OLD.`password_hash`) OR NOT(NEW.`rp_token` <=> OLD.`rp_token`) OR NOT(NEW.`rp_token_created_at` <=> OLD.`rp_token_created_at`) OR NOT(NEW.`default_billing` <=> OLD.`default_billing`) OR NOT(NEW.`default_shipping` <=> OLD.`default_shipping`) OR NOT(NEW.`taxvat` <=> OLD.`taxvat`) OR NOT(NEW.`confirmation` <=> OLD.`confirmation`) OR NOT(NEW.`gender` <=> OLD.`gender`) OR NOT(NEW.`failures_num` <=> OLD.`failures_num`) OR NOT(NEW.`first_failure` <=> OLD.`first_failure`) OR NOT(NEW.`lock_expires` <=> OLD.`lock_expires`) OR NOT(NEW.`session_cutoff` <=> OLD.`session_cutoff`)) THEN INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_after_delete` AFTER DELETE ON `[[dbprefix]]customer_entity` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_datetime_after_insert` AFTER INSERT ON `[[dbprefix]]customer_entity_datetime` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_datetime_after_update` AFTER UPDATE ON `[[dbprefix]]customer_entity_datetime` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_datetime_after_delete` AFTER DELETE ON `[[dbprefix]]customer_entity_datetime` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_decimal_after_insert` AFTER INSERT ON `[[dbprefix]]customer_entity_decimal` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_decimal_after_update` AFTER UPDATE ON `[[dbprefix]]customer_entity_decimal` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_decimal_after_delete` AFTER DELETE ON `[[dbprefix]]customer_entity_decimal` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_int_after_insert` AFTER INSERT ON `[[dbprefix]]customer_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_int_after_update` AFTER UPDATE ON `[[dbprefix]]customer_entity_int` FOR EACH ROW BEGIN
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`value` <=> OLD.`value`)) THEN INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]customer_entity_int_after_delete` AFTER DELETE ON `[[dbprefix]]customer_entity_int` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]customer_dummy_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]inventory_source_item_after_insert` AFTER INSERT ON `[[dbprefix]]inventory_source_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]inventory_source_item_after_update` AFTER UPDATE ON `[[dbprefix]]inventory_source_item` FOR EACH ROW BEGIN
IF (NOT(NEW.`source_item_id` <=> OLD.`source_item_id`) OR NOT(NEW.`source_code` <=> OLD.`source_code`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`quantity` <=> OLD.`quantity`) OR NOT(NEW.`status` <=> OLD.`status`)) THEN INSERT IGNORE INTO `[[dbprefix]]inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]inventory_source_item_after_delete` AFTER DELETE ON `[[dbprefix]]inventory_source_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]inventory_cl` (`entity_id`) VALUES (OLD.`source_item_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_after_insert` AFTER INSERT ON `[[dbprefix]]sales_order` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`entity_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_after_update` AFTER UPDATE ON `[[dbprefix]]sales_order` FOR EACH ROW BEGIN
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`state` <=> OLD.`state`) OR NOT(NEW.`status` <=> OLD.`status`) OR NOT(NEW.`coupon_code` <=> OLD.`coupon_code`) OR NOT(NEW.`protect_code` <=> OLD.`protect_code`) OR NOT(NEW.`shipping_description` <=> OLD.`shipping_description`) OR NOT(NEW.`is_virtual` <=> OLD.`is_virtual`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`customer_id` <=> OLD.`customer_id`) OR NOT(NEW.`base_discount_amount` <=> OLD.`base_discount_amount`) OR NOT(NEW.`base_discount_canceled` <=> OLD.`base_discount_canceled`) OR NOT(NEW.`base_discount_invoiced` <=> OLD.`base_discount_invoiced`) OR NOT(NEW.`base_discount_refunded` <=> OLD.`base_discount_refunded`) OR NOT(NEW.`base_grand_total` <=> OLD.`base_grand_total`) OR NOT(NEW.`base_shipping_amount` <=> OLD.`base_shipping_amount`) OR NOT(NEW.`base_shipping_canceled` <=> OLD.`base_shipping_canceled`) OR NOT(NEW.`base_shipping_invoiced` <=> OLD.`base_shipping_invoiced`) OR NOT(NEW.`base_shipping_refunded` <=> OLD.`base_shipping_refunded`) OR NOT(NEW.`base_shipping_tax_amount` <=> OLD.`base_shipping_tax_amount`) OR NOT(NEW.`base_shipping_tax_refunded` <=> OLD.`base_shipping_tax_refunded`) OR NOT(NEW.`base_subtotal` <=> OLD.`base_subtotal`) OR NOT(NEW.`base_subtotal_canceled` <=> OLD.`base_subtotal_canceled`) OR NOT(NEW.`base_subtotal_invoiced` <=> OLD.`base_subtotal_invoiced`) OR NOT(NEW.`base_subtotal_refunded` <=> OLD.`base_subtotal_refunded`) OR NOT(NEW.`base_tax_amount` <=> OLD.`base_tax_amount`) OR NOT(NEW.`base_tax_canceled` <=> OLD.`base_tax_canceled`) OR NOT(NEW.`base_tax_invoiced` <=> OLD.`base_tax_invoiced`) OR NOT(NEW.`base_tax_refunded` <=> OLD.`base_tax_refunded`) OR NOT(NEW.`base_to_global_rate` <=> OLD.`base_to_global_rate`) OR NOT(NEW.`base_to_order_rate` <=> OLD.`base_to_order_rate`) OR NOT(NEW.`base_total_canceled` <=> OLD.`base_total_canceled`) OR NOT(NEW.`base_total_invoiced` <=> OLD.`base_total_invoiced`) OR NOT(NEW.`base_total_invoiced_cost` <=> OLD.`base_total_invoiced_cost`) OR NOT(NEW.`base_total_offline_refunded` <=> OLD.`base_total_offline_refunded`) OR NOT(NEW.`base_total_online_refunded` <=> OLD.`base_total_online_refunded`) OR NOT(NEW.`base_total_paid` <=> OLD.`base_total_paid`) OR NOT(NEW.`base_total_qty_ordered` <=> OLD.`base_total_qty_ordered`) OR NOT(NEW.`base_total_refunded` <=> OLD.`base_total_refunded`) OR NOT(NEW.`discount_amount` <=> OLD.`discount_amount`) OR NOT(NEW.`discount_canceled` <=> OLD.`discount_canceled`) OR NOT(NEW.`discount_invoiced` <=> OLD.`discount_invoiced`) OR NOT(NEW.`discount_refunded` <=> OLD.`discount_refunded`) OR NOT(NEW.`grand_total` <=> OLD.`grand_total`) OR NOT(NEW.`shipping_amount` <=> OLD.`shipping_amount`) OR NOT(NEW.`shipping_canceled` <=> OLD.`shipping_canceled`) OR NOT(NEW.`shipping_invoiced` <=> OLD.`shipping_invoiced`) OR NOT(NEW.`shipping_refunded` <=> OLD.`shipping_refunded`) OR NOT(NEW.`shipping_tax_amount` <=> OLD.`shipping_tax_amount`) OR NOT(NEW.`shipping_tax_refunded` <=> OLD.`shipping_tax_refunded`) OR NOT(NEW.`store_to_base_rate` <=> OLD.`store_to_base_rate`) OR NOT(NEW.`store_to_order_rate` <=> OLD.`store_to_order_rate`) OR NOT(NEW.`subtotal` <=> OLD.`subtotal`) OR NOT(NEW.`subtotal_canceled` <=> OLD.`subtotal_canceled`) OR NOT(NEW.`subtotal_invoiced` <=> OLD.`subtotal_invoiced`) OR NOT(NEW.`subtotal_refunded` <=> OLD.`subtotal_refunded`) OR NOT(NEW.`tax_amount` <=> OLD.`tax_amount`) OR NOT(NEW.`tax_canceled` <=> OLD.`tax_canceled`) OR NOT(NEW.`tax_invoiced` <=> OLD.`tax_invoiced`) OR NOT(NEW.`tax_refunded` <=> OLD.`tax_refunded`) OR NOT(NEW.`total_canceled` <=> OLD.`total_canceled`) OR NOT(NEW.`total_invoiced` <=> OLD.`total_invoiced`) OR NOT(NEW.`total_offline_refunded` <=> OLD.`total_offline_refunded`) OR NOT(NEW.`total_online_refunded` <=> OLD.`total_online_refunded`) OR NOT(NEW.`total_paid` <=> OLD.`total_paid`) OR NOT(NEW.`total_qty_ordered` <=> OLD.`total_qty_ordered`) OR NOT(NEW.`total_refunded` <=> OLD.`total_refunded`) OR NOT(NEW.`can_ship_partially` <=> OLD.`can_ship_partially`) OR NOT(NEW.`can_ship_partially_item` <=> OLD.`can_ship_partially_item`) OR NOT(NEW.`customer_is_guest` <=> OLD.`customer_is_guest`) OR NOT(NEW.`customer_note_notify` <=> OLD.`customer_note_notify`) OR NOT(NEW.`billing_address_id` <=> OLD.`billing_address_id`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`edit_increment` <=> OLD.`edit_increment`) OR NOT(NEW.`email_sent` <=> OLD.`email_sent`) OR NOT(NEW.`send_email` <=> OLD.`send_email`) OR NOT(NEW.`forced_shipment_with_invoice` <=> OLD.`forced_shipment_with_invoice`) OR NOT(NEW.`payment_auth_expiration` <=> OLD.`payment_auth_expiration`) OR NOT(NEW.`quote_address_id` <=> OLD.`quote_address_id`) OR NOT(NEW.`quote_id` <=> OLD.`quote_id`) OR NOT(NEW.`shipping_address_id` <=> OLD.`shipping_address_id`) OR NOT(NEW.`adjustment_negative` <=> OLD.`adjustment_negative`) OR NOT(NEW.`adjustment_positive` <=> OLD.`adjustment_positive`) OR NOT(NEW.`base_adjustment_negative` <=> OLD.`base_adjustment_negative`) OR NOT(NEW.`base_adjustment_positive` <=> OLD.`base_adjustment_positive`) OR NOT(NEW.`base_shipping_discount_amount` <=> OLD.`base_shipping_discount_amount`) OR NOT(NEW.`base_subtotal_incl_tax` <=> OLD.`base_subtotal_incl_tax`) OR NOT(NEW.`base_total_due` <=> OLD.`base_total_due`) OR NOT(NEW.`payment_authorization_amount` <=> OLD.`payment_authorization_amount`) OR NOT(NEW.`shipping_discount_amount` <=> OLD.`shipping_discount_amount`) OR NOT(NEW.`subtotal_incl_tax` <=> OLD.`subtotal_incl_tax`) OR NOT(NEW.`total_due` <=> OLD.`total_due`) OR NOT(NEW.`weight` <=> OLD.`weight`) OR NOT(NEW.`customer_dob` <=> OLD.`customer_dob`) OR NOT(NEW.`increment_id` <=> OLD.`increment_id`) OR NOT(NEW.`applied_rule_ids` <=> OLD.`applied_rule_ids`) OR NOT(NEW.`base_currency_code` <=> OLD.`base_currency_code`) OR NOT(NEW.`customer_email` <=> OLD.`customer_email`) OR NOT(NEW.`customer_firstname` <=> OLD.`customer_firstname`) OR NOT(NEW.`customer_lastname` <=> OLD.`customer_lastname`) OR NOT(NEW.`customer_middlename` <=> OLD.`customer_middlename`) OR NOT(NEW.`customer_prefix` <=> OLD.`customer_prefix`) OR NOT(NEW.`customer_suffix` <=> OLD.`customer_suffix`) OR NOT(NEW.`customer_taxvat` <=> OLD.`customer_taxvat`) OR NOT(NEW.`discount_description` <=> OLD.`discount_description`) OR NOT(NEW.`ext_customer_id` <=> OLD.`ext_customer_id`) OR NOT(NEW.`ext_order_id` <=> OLD.`ext_order_id`) OR NOT(NEW.`global_currency_code` <=> OLD.`global_currency_code`) OR NOT(NEW.`hold_before_state` <=> OLD.`hold_before_state`) OR NOT(NEW.`hold_before_status` <=> OLD.`hold_before_status`) OR NOT(NEW.`order_currency_code` <=> OLD.`order_currency_code`) OR NOT(NEW.`original_increment_id` <=> OLD.`original_increment_id`) OR NOT(NEW.`relation_child_id` <=> OLD.`relation_child_id`) OR NOT(NEW.`relation_child_real_id` <=> OLD.`relation_child_real_id`) OR NOT(NEW.`relation_parent_id` <=> OLD.`relation_parent_id`) OR NOT(NEW.`relation_parent_real_id` <=> OLD.`relation_parent_real_id`) OR NOT(NEW.`remote_ip` <=> OLD.`remote_ip`) OR NOT(NEW.`shipping_method` <=> OLD.`shipping_method`) OR NOT(NEW.`store_currency_code` <=> OLD.`store_currency_code`) OR NOT(NEW.`store_name` <=> OLD.`store_name`) OR NOT(NEW.`x_forwarded_for` <=> OLD.`x_forwarded_for`) OR NOT(NEW.`customer_note` <=> OLD.`customer_note`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`total_item_count` <=> OLD.`total_item_count`) OR NOT(NEW.`customer_gender` <=> OLD.`customer_gender`) OR NOT(NEW.`discount_tax_compensation_amount` <=> OLD.`discount_tax_compensation_amount`) OR NOT(NEW.`base_discount_tax_compensation_amount` <=> OLD.`base_discount_tax_compensation_amount`) OR NOT(NEW.`shipping_discount_tax_compensation_amount` <=> OLD.`shipping_discount_tax_compensation_amount`) OR NOT(NEW.`base_shipping_discount_tax_compensation_amnt` <=> OLD.`base_shipping_discount_tax_compensation_amnt`) OR NOT(NEW.`discount_tax_compensation_invoiced` <=> OLD.`discount_tax_compensation_invoiced`) OR NOT(NEW.`base_discount_tax_compensation_invoiced` <=> OLD.`base_discount_tax_compensation_invoiced`) OR NOT(NEW.`discount_tax_compensation_refunded` <=> OLD.`discount_tax_compensation_refunded`) OR NOT(NEW.`base_discount_tax_compensation_refunded` <=> OLD.`base_discount_tax_compensation_refunded`) OR NOT(NEW.`shipping_incl_tax` <=> OLD.`shipping_incl_tax`) OR NOT(NEW.`base_shipping_incl_tax` <=> OLD.`base_shipping_incl_tax`) OR NOT(NEW.`coupon_rule_name` <=> OLD.`coupon_rule_name`) OR NOT(NEW.`gift_message_id` <=> OLD.`gift_message_id`) OR NOT(NEW.`paypal_ipn_customer_notified` <=> OLD.`paypal_ipn_customer_notified`) OR NOT(NEW.`dispute_status` <=> OLD.`dispute_status`)) THEN INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_after_delete` AFTER DELETE ON `[[dbprefix]]sales_order` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (OLD.`entity_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_item_after_insert` AFTER INSERT ON `[[dbprefix]]sales_order_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`order_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_item_after_update` AFTER UPDATE ON `[[dbprefix]]sales_order_item` FOR EACH ROW BEGIN
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`order_id` <=> OLD.`order_id`) OR NOT(NEW.`parent_item_id` <=> OLD.`parent_item_id`) OR NOT(NEW.`quote_item_id` <=> OLD.`quote_item_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`product_type` <=> OLD.`product_type`) OR NOT(NEW.`product_options` <=> OLD.`product_options`) OR NOT(NEW.`weight` <=> OLD.`weight`) OR NOT(NEW.`is_virtual` <=> OLD.`is_virtual`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`name` <=> OLD.`name`) OR NOT(NEW.`description` <=> OLD.`description`) OR NOT(NEW.`applied_rule_ids` <=> OLD.`applied_rule_ids`) OR NOT(NEW.`additional_data` <=> OLD.`additional_data`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`no_discount` <=> OLD.`no_discount`) OR NOT(NEW.`qty_backordered` <=> OLD.`qty_backordered`) OR NOT(NEW.`qty_canceled` <=> OLD.`qty_canceled`) OR NOT(NEW.`qty_invoiced` <=> OLD.`qty_invoiced`) OR NOT(NEW.`qty_ordered` <=> OLD.`qty_ordered`) OR NOT(NEW.`qty_refunded` <=> OLD.`qty_refunded`) OR NOT(NEW.`qty_shipped` <=> OLD.`qty_shipped`) OR NOT(NEW.`base_cost` <=> OLD.`base_cost`) OR NOT(NEW.`price` <=> OLD.`price`) OR NOT(NEW.`base_price` <=> OLD.`base_price`) OR NOT(NEW.`original_price` <=> OLD.`original_price`) OR NOT(NEW.`base_original_price` <=> OLD.`base_original_price`) OR NOT(NEW.`tax_percent` <=> OLD.`tax_percent`) OR NOT(NEW.`tax_amount` <=> OLD.`tax_amount`) OR NOT(NEW.`base_tax_amount` <=> OLD.`base_tax_amount`) OR NOT(NEW.`tax_invoiced` <=> OLD.`tax_invoiced`) OR NOT(NEW.`base_tax_invoiced` <=> OLD.`base_tax_invoiced`) OR NOT(NEW.`discount_percent` <=> OLD.`discount_percent`) OR NOT(NEW.`discount_amount` <=> OLD.`discount_amount`) OR NOT(NEW.`base_discount_amount` <=> OLD.`base_discount_amount`) OR NOT(NEW.`discount_invoiced` <=> OLD.`discount_invoiced`) OR NOT(NEW.`base_discount_invoiced` <=> OLD.`base_discount_invoiced`) OR NOT(NEW.`amount_refunded` <=> OLD.`amount_refunded`) OR NOT(NEW.`base_amount_refunded` <=> OLD.`base_amount_refunded`) OR NOT(NEW.`row_total` <=> OLD.`row_total`) OR NOT(NEW.`base_row_total` <=> OLD.`base_row_total`) OR NOT(NEW.`row_invoiced` <=> OLD.`row_invoiced`) OR NOT(NEW.`base_row_invoiced` <=> OLD.`base_row_invoiced`) OR NOT(NEW.`row_weight` <=> OLD.`row_weight`) OR NOT(NEW.`base_tax_before_discount` <=> OLD.`base_tax_before_discount`) OR NOT(NEW.`tax_before_discount` <=> OLD.`tax_before_discount`) OR NOT(NEW.`ext_order_item_id` <=> OLD.`ext_order_item_id`) OR NOT(NEW.`locked_do_invoice` <=> OLD.`locked_do_invoice`) OR NOT(NEW.`locked_do_ship` <=> OLD.`locked_do_ship`) OR NOT(NEW.`price_incl_tax` <=> OLD.`price_incl_tax`) OR NOT(NEW.`base_price_incl_tax` <=> OLD.`base_price_incl_tax`) OR NOT(NEW.`row_total_incl_tax` <=> OLD.`row_total_incl_tax`) OR NOT(NEW.`base_row_total_incl_tax` <=> OLD.`base_row_total_incl_tax`) OR NOT(NEW.`discount_tax_compensation_amount` <=> OLD.`discount_tax_compensation_amount`) OR NOT(NEW.`base_discount_tax_compensation_amount` <=> OLD.`base_discount_tax_compensation_amount`) OR NOT(NEW.`discount_tax_compensation_invoiced` <=> OLD.`discount_tax_compensation_invoiced`) OR NOT(NEW.`base_discount_tax_compensation_invoiced` <=> OLD.`base_discount_tax_compensation_invoiced`) OR NOT(NEW.`discount_tax_compensation_refunded` <=> OLD.`discount_tax_compensation_refunded`) OR NOT(NEW.`base_discount_tax_compensation_refunded` <=> OLD.`base_discount_tax_compensation_refunded`) OR NOT(NEW.`tax_canceled` <=> OLD.`tax_canceled`) OR NOT(NEW.`discount_tax_compensation_canceled` <=> OLD.`discount_tax_compensation_canceled`) OR NOT(NEW.`tax_refunded` <=> OLD.`tax_refunded`) OR NOT(NEW.`base_tax_refunded` <=> OLD.`base_tax_refunded`) OR NOT(NEW.`discount_refunded` <=> OLD.`discount_refunded`) OR NOT(NEW.`base_discount_refunded` <=> OLD.`base_discount_refunded`) OR NOT(NEW.`weee_tax_applied` <=> OLD.`weee_tax_applied`) OR NOT(NEW.`weee_tax_applied_amount` <=> OLD.`weee_tax_applied_amount`) OR NOT(NEW.`weee_tax_applied_row_amount` <=> OLD.`weee_tax_applied_row_amount`) OR NOT(NEW.`weee_tax_disposition` <=> OLD.`weee_tax_disposition`) OR NOT(NEW.`weee_tax_row_disposition` <=> OLD.`weee_tax_row_disposition`) OR NOT(NEW.`base_weee_tax_applied_amount` <=> OLD.`base_weee_tax_applied_amount`) OR NOT(NEW.`base_weee_tax_applied_row_amnt` <=> OLD.`base_weee_tax_applied_row_amnt`) OR NOT(NEW.`base_weee_tax_disposition` <=> OLD.`base_weee_tax_disposition`) OR NOT(NEW.`base_weee_tax_row_disposition` <=> OLD.`base_weee_tax_row_disposition`) OR NOT(NEW.`gift_message_id` <=> OLD.`gift_message_id`) OR NOT(NEW.`gift_message_available` <=> OLD.`gift_message_available`) OR NOT(NEW.`free_shipping` <=> OLD.`free_shipping`)) THEN INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`order_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_item_after_delete` AFTER DELETE ON `[[dbprefix]]sales_order_item` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (OLD.`order_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_status_after_insert` AFTER INSERT ON `[[dbprefix]]sales_order_status` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_status_data_exporter_cl` (`entity_id`) VALUES (NEW.`status`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_status_after_update` AFTER UPDATE ON `[[dbprefix]]sales_order_status` FOR EACH ROW BEGIN
IF (NOT(NEW.`status` <=> OLD.`status`) OR NOT(NEW.`label` <=> OLD.`label`)) THEN INSERT IGNORE INTO `[[dbprefix]]sales_order_status_data_exporter_cl` (`entity_id`) VALUES (NEW.`status`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_order_status_after_delete` AFTER DELETE ON `[[dbprefix]]sales_order_status` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_status_data_exporter_cl` (`entity_id`) VALUES (OLD.`status`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_payment_transaction_after_insert` AFTER INSERT ON `[[dbprefix]]sales_payment_transaction` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`order_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_payment_transaction_after_update` AFTER UPDATE ON `[[dbprefix]]sales_payment_transaction` FOR EACH ROW BEGIN
IF (NOT(NEW.`transaction_id` <=> OLD.`transaction_id`) OR NOT(NEW.`parent_id` <=> OLD.`parent_id`) OR NOT(NEW.`order_id` <=> OLD.`order_id`) OR NOT(NEW.`payment_id` <=> OLD.`payment_id`) OR NOT(NEW.`txn_id` <=> OLD.`txn_id`) OR NOT(NEW.`parent_txn_id` <=> OLD.`parent_txn_id`) OR NOT(NEW.`txn_type` <=> OLD.`txn_type`) OR NOT(NEW.`is_closed` <=> OLD.`is_closed`) OR NOT(NEW.`additional_information` <=> OLD.`additional_information`) OR NOT(NEW.`created_at` <=> OLD.`created_at`)) THEN INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (NEW.`order_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]sales_payment_transaction_after_delete` AFTER DELETE ON `[[dbprefix]]sales_payment_transaction` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]sales_order_data_exporter_cl` (`entity_id`) VALUES (OLD.`order_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_after_insert` AFTER INSERT ON `[[dbprefix]]store` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_after_update` AFTER UPDATE ON `[[dbprefix]]store` FOR EACH ROW BEGIN
IF (NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`code` <=> OLD.`code`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`group_id` <=> OLD.`group_id`) OR NOT(NEW.`name` <=> OLD.`name`) OR NOT(NEW.`sort_order` <=> OLD.`sort_order`) OR NOT(NEW.`is_active` <=> OLD.`is_active`)) THEN INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_after_delete` AFTER DELETE ON `[[dbprefix]]store` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (OLD.`website_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_group_after_insert` AFTER INSERT ON `[[dbprefix]]store_group` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_group_after_update` AFTER UPDATE ON `[[dbprefix]]store_group` FOR EACH ROW BEGIN
IF (NOT(NEW.`group_id` <=> OLD.`group_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`name` <=> OLD.`name`) OR NOT(NEW.`root_category_id` <=> OLD.`root_category_id`) OR NOT(NEW.`default_store_id` <=> OLD.`default_store_id`) OR NOT(NEW.`code` <=> OLD.`code`)) THEN INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_group_after_delete` AFTER DELETE ON `[[dbprefix]]store_group` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (OLD.`website_id`);
END */;;
DELIMITER ;

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_website_after_insert` AFTER INSERT ON `[[dbprefix]]store_website` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`);
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_website_after_update` AFTER UPDATE ON `[[dbprefix]]store_website` FOR EACH ROW BEGIN
IF (NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`code` <=> OLD.`code`) OR NOT(NEW.`name` <=> OLD.`name`) OR NOT(NEW.`sort_order` <=> OLD.`sort_order`) OR NOT(NEW.`default_group_id` <=> OLD.`default_group_id`) OR NOT(NEW.`is_default` <=> OLD.`is_default`)) THEN INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (NEW.`website_id`); END IF;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 */ /*!50003 TRIGGER `trg_[[dbprefix]]store_website_after_delete` AFTER DELETE ON `[[dbprefix]]store_website` FOR EACH ROW BEGIN
INSERT IGNORE INTO `[[dbprefix]]store_data_exporter_cl` (`entity_id`) VALUES (OLD.`website_id`);
END */;;
DELIMITER ;
