/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `wplc_wc_order_product_lookup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wplc_wc_order_product_lookup` (
  `order_item_id` bigint(20) unsigned NOT NULL,
  `order_id` bigint(20) unsigned NOT NULL,
  `product_id` bigint(20) unsigned NOT NULL,
  `variation_id` bigint(20) unsigned NOT NULL,
  `customer_id` bigint(20) unsigned DEFAULT NULL,
  `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_qty` int(11) NOT NULL,
  `product_net_revenue` double NOT NULL DEFAULT '0',
  `product_gross_revenue` double NOT NULL DEFAULT '0',
  `coupon_amount` double NOT NULL DEFAULT '0',
  `tax_amount` double NOT NULL DEFAULT '0',
  `shipping_amount` double NOT NULL DEFAULT '0',
  `shipping_tax_amount` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`order_item_id`),
  KEY `order_id` (`order_id`),
  KEY `product_id` (`product_id`),
  KEY `customer_id` (`customer_id`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

INSERT INTO `wplc_wc_order_product_lookup` VALUES (128,925,902,0,9,'2022-08-25 11:16:13',2,60,61.427143,0,0,1.427143,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (129,925,899,0,9,'2022-08-25 11:16:13',3,75,77.140714,0,0,2.140714,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (130,925,895,0,9,'2022-08-25 11:16:13',4,100,102.854286,0,0,2.854286,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (131,925,893,0,9,'2022-08-25 11:16:13',3,75,77.140714,0,0,2.140714,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (132,925,889,0,9,'2022-08-25 11:16:13',2,50,51.427143,0,0,1.427143,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (134,1094,938,0,10,'2022-10-14 09:05:58',1,10,20.64,0,0.65,9.99,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (138,1095,938,0,10,'2022-10-14 11:35:48',1,10,20.64,0,0.65,9.99,0);
INSERT INTO `wplc_wc_order_product_lookup` VALUES (142,1117,1105,0,11,'2022-12-18 09:53:46',1,5,15.33,0,0.33,10,0);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

