--
-- Host: localhost    Database: hamshawl_hildata
-- ------------------------------------------------------


--
-- Current Database: `hamshawl_hildata`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `hamshawl_hildata` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `hamshawl_hildata`;

--
-- Table structure for table `tbl_cart`
--

CREATE TABLE `tbl_cart` (
  `cart_Line_ID` int(11) NOT NULL AUTO_INCREMENT,
  `cart_custcart_ID` varchar(50) DEFAULT NULL,
  `cart_sku_ID` int(11) DEFAULT NULL,
  `cart_sku_qty` int(11) DEFAULT NULL,
  `cart_dateadded` datetime DEFAULT NULL,
  PRIMARY KEY (`cart_Line_ID`),
  KEY `cart_custcart_ID` (`cart_custcart_ID`),
  KEY `sku_ID` (`cart_sku_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_cart`
--


--
-- Table structure for table `tbl_config`
--

CREATE TABLE `tbl_config` (
  `config_id` int(11) NOT NULL AUTO_INCREMENT,
  `config_groupid` int(11) DEFAULT '0',
  `config_variable` varchar(50) DEFAULT NULL,
  `config_name` varchar(50) DEFAULT NULL,
  `config_value` varchar(50) DEFAULT NULL,
  `config_type` varchar(50) DEFAULT NULL,
  `config_description` text,
  `config_possibles` text,
  `config_showmerchant` tinyint(4) DEFAULT '0',
  `config_sort` int(11) DEFAULT '0',
  `config_protected` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`config_id`),
  KEY `config_groupid` (`config_groupid`)
) ENGINE=MyISAM AUTO_INCREMENT=63 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_config`
--

INSERT INTO `tbl_config` VALUES (8,3,'CompanyName','Company Name','Cartweaver Demo Store','text','This is the name of the store, used on invoices and in email confirmations.','',1,0,1),(9,3,'CompanyAddress1','Address 1','123 Any St.','text','The first line of the company address','',1,2,1),(10,3,'CompanyAddress2','Address 2','','text','The second line of the company address (if necessary).','',1,3,1),(11,3,'CompanyCity','City','Sometown','text','The company\'s city.','',1,4,1),(12,3,'CompanyState','State / Prov','WA','text','The state or province the company is located in.','',1,5,1),(13,3,'CompanyZip','Postal Code','98765','text','The company\'s postal or zip code.','',1,6,1),(14,3,'CompanyCountry','Country','USA','text','The company\'s country.','',1,7,1),(15,3,'CompanyPhone','Phone','555-555-1236','text','The company phone number.','',1,8,1),(16,3,'CompanyFax','Fax','','text','The company fax number.','',1,9,1),(17,3,'CompanyEmail','Email','support@cartweaver.com','text','This is the company email. All automated emails are sent from this address, and order confirmations are sent to this address.','',1,10,1),(18,5,'ChargeTaxonShipping','Charge Tax on Shipping','True','boolean','Determines whether tax is charged on the shipping total for an order.','',1,0,1),(19,5,'DisplayLineItemTaxes','Display Line Item Taxes','True','boolean','Determines whether line item taxes are displayed in the customer\'s shopping cart.','',1,0,1),(20,5,'DisplayTaxOnProduct','Display Product Price Including and Excluding Tax','True','boolean','Determines whether prices including taxes are displayed on the product detail pages.','',1,0,1),(21,5,'TaxIDNumber','Tax ID Number','','text','Tax ID Number, or VAT number. Can be displayed on the customer invoice if necessary.','',1,0,1),(22,5,'DisplayTaxID','Display TAX ID Number on Invoice','False','boolean','Determines whether the Tax ID Number is displayed on the customer\'s invoice.','',1,0,1),(25,6,'EnableShipping','Enable Shipping','True','boolean','Determines if shipping calculations are performed during checkout.','',1,1,1),(26,6,'ChargeShipBase','Charge Base','True','boolean','Determines if a base rate is charged during shipping calculations.','',1,2,1),(28,6,'ChargeShipExtension','Charge Location Extension','True','boolean','Determines if an additional charge is added to the shipping costs based on the user\'s geographical location.','',1,4,1),(29,7,'AllowBackOrders','Allow Backorders','True','boolean','Determines if backorders are allowed in the application. If this option is disabled, all products must have a positive stock count in order to display on the site.','',1,0,1),(30,7,'showupsell','Show Upsell','True','boolean','Determines whether upsell products are displayed on the product details pages.','',1,0,1),(31,7,'shipcalctype','Ship Calculation Type','localcalc','text','Determines the type of shipping calculation to perform. The default application only supports local shipping calculations.','',0,0,1),(32,8,'NumberOfColumns','Number of Columns','2','text','The number of columns to be displayed on the product results page. Set this value to 1 to show the product short description and image. Set this value to any number greater than 1 to show only the product name and image in multiple columns.','',1,0,1),(33,8,'ResultsPerPage','Results per Page','4','text','This value should be evenly divisible by the Number of Columns in order to ensure correct display for multi-column results.','',1,0,1),(34,8,'DetailsDisplay','Details Display','Advanced','select','Determines how product option details are displayed.','Advanced|Advanced\r\nSimple|Simple\r\nTables|Tables',1,0,1),(36,10,'ShowENV','Show Environment Variables','True','boolean','Show environment variables when debugging is turned on','NULL',0,1,1),(37,10,'ShowSession','Show Session Variables','True','boolean','Show session variables when debugging is turned on','NULL',0,2,1),(38,10,'ShowRequest','Show Request Variables','True','boolean','Show request variables when debugging is turned on','NULL',0,3,1),(39,10,'ShowServer','Show Server Variables','False','boolean','Show server variables when debugging is turned on','NULL',0,4,1),(40,10,'ShowURL','Show URL Variables','False','boolean','Show URL variables when debugging is turned on','NULL',0,5,1),(41,10,'ShowLocal','Show Local Variables (and queries)','False','boolean','Show local variables when debugging is turned on','NULL',0,6,1),(42,10,'ShowForm','Show Form Variables','False','boolean','Show form variables when debugging is turned on','NULL',0,7,1),(43,10,'ShowCookie','Show Cookie Variables','False','boolean','Show cookie variables when debugging is turned on','NULL',0,8,1),(44,10,'ShowFile','Show File Variables','False','boolean','Show File variables when debugging is turned on','NULL',0,9,1),(45,10,'ShowDebugLink','Show Debug Link','False','boolean','If debugging is turned on, should the cart show a link?','',0,0,1),(46,10,'EnableDebugging','Enable Debugging','True','boolean','Enable debugging during development.','NULL',0,0,1),(47,11,'DisplayLineItemDiscount','Display Line Item Discount','True','boolean','Displays a line item discount in the shopping cart if checked and if the product is discounted','NULL',1,0,0),(48,11,'EnableDiscounts','Enable Discounts','True','boolean','Enables the discount feature in the store. If unchecked, discounts are disabled.','NULL',1,0,0),(50,11,'DisplayDiscountNotes','Display Discount Notes on Cart','True','boolean','Show an asterisk in the cart line item and tie it to a discount description below.','NULL',1,5,0),(51,8,'ShowImageInCart','Show Small Image in Cart','True','boolean','Determines whether the extra small images are displayed in the\r\nuser\'s cart.\r\n','NULL',1,0,0),(52,6,'ChargeShipBy','Charge Range Based On','Subtotal','select','This value determines how shipping ranges are calculated. This value is either ignored (if set to \"None\"), or shipping ranges are calculated on the Cart Subtotal or total Cart Weight','None|None\r\nCart Subtotal|Subtotal\r\nCart Weight|Weight',1,0,0),(53,8,'RelateCategoriesSecondaries','Relate Categories/Secondaries','1','boolean','Check the box if your categories and secondary categories are related. Relationships are handled at the product level.','NULL',1,0,0),(54,8,'ShowImagePopup','Show Expanded Image Popup','True','boolean','Determines whether a popup image is shown on the details page.','NULL',1,0,0),(55,7,'VersionNumber','Cartweaver Version Number','3.1.13','text','The current Cartweaver version number is stored here for ','NULL',1,100,0),(57,3,'DeveloperEmail','Developer Email','','text','Debugging and error emails will go to this address. If not defined, emails will go to the CompanyEmail','NULL',0,100,NULL),(58,10,'EnableErrorHandling','Enable Error Handling','False','boolean','Determines whether or not error handling will be enabled on the site.','NULL',0,0,1),(59,5,'TaxSystem','Tax System','General','radio','Determine which tax system to use -- tax groups or general tax','Groups|Groups\r\nGeneral|General',0,10,NULL),(60,5,'ChargeTaxBasedOn','ChargeTaxBasedOn','Shipping','radio','Taxes can be charged based on billing or shipping address, depending on state/country laws','Shipping Address|Shipping\r\nBilling Address|Billing',0,10,NULL),(61,7,'ContinueShopping','Continue Shopping','Details','radio','When the user clicks Continue Shopping on the cart page after adding an item, they can return to details, results, or home page','Details|Details\r\nResults|Results\r\nHome|Home',1,10,NULL),(62,6,'ShowShippingInfo','Show Shipping Information','True','boolean','Shows the shipping form fields on the order form if checked','',1,100,0);

--
-- Table structure for table `tbl_configgroup`
--

CREATE TABLE `tbl_configgroup` (
  `configgroup_id` int(11) NOT NULL AUTO_INCREMENT,
  `configgroup_name` varchar(50) DEFAULT NULL,
  `configgroup_sort` int(11) DEFAULT '0',
  `configgroup_showmerchant` tinyint(4) DEFAULT '0',
  `configgroup_protected` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`configgroup_id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_configgroup`
--

INSERT INTO `tbl_configgroup` VALUES (3,'Company Info.',0,1,1),(5,'Tax Settings',0,1,1),(6,'Shipping Settings',0,1,1),(7,'Misc. Settings',0,1,1),(8,'Display Settings',0,1,1),(10,'Debug Settings',0,0,0),(11,'Discount Settings',0,1,1);

--
-- Table structure for table `tbl_custstate`
--

CREATE TABLE `tbl_custstate` (
  `CustSt_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CustSt_Cust_ID` varchar(50) NOT NULL DEFAULT '',
  `CustSt_StPrv_ID` int(11) DEFAULT NULL,
  `CustSt_Destination` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`CustSt_ID`),
  KEY `tbl_Customerstbl_Cust_State` (`CustSt_Cust_ID`),
  KEY `tbl_StateProvtbl_Cust_StProvCntry_relation` (`CustSt_StPrv_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=128 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_custstate`
--

INSERT INTO `tbl_custstate` VALUES (117,'1',1,'BillTo'),(118,'1',1,'ShipTo'),(126,'D3970516-11-10-06',6,'BillTo'),(127,'D3970516-11-10-06',6,'ShipTo');

--
-- Table structure for table `tbl_custtype`
--

CREATE TABLE `tbl_custtype` (
  `custtype_ID` int(11) NOT NULL AUTO_INCREMENT,
  `custtype_Name` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`custtype_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_custtype`
--

INSERT INTO `tbl_custtype` VALUES (1,'Retail'),(2,'Wholesale');

--
-- Table structure for table `tbl_discount_amounts`
--

CREATE TABLE `tbl_discount_amounts` (
  `discountAmount_id` int(11) NOT NULL AUTO_INCREMENT,
  `discountAmount_discount_id` int(11) NOT NULL DEFAULT '0',
  `discountAmount_discount` decimal(20,4) NOT NULL DEFAULT '0.0000',
  `discountAmount_minimumQty` int(11) DEFAULT NULL,
  `discountAmount_minimumAmount` decimal(20,4) DEFAULT NULL,
  `discountAmount_rateType` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`discountAmount_id`)
) ENGINE=MyISAM AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discount_amounts`
--

INSERT INTO `tbl_discount_amounts` VALUES (35,64,10.0000,0,0.0000,'0'),(36,65,15.0000,0,0.0000,'0'),(37,66,10.0000,0,0.0000,'0');

--
-- Table structure for table `tbl_discount_apply_types`
--

CREATE TABLE `tbl_discount_apply_types` (
  `discountApplyType_id` int(11) NOT NULL AUTO_INCREMENT,
  `discountApplyType_desc` varchar(100) NOT NULL DEFAULT '',
  `discountApplyType_archive` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`discountApplyType_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discount_apply_types`
--

INSERT INTO `tbl_discount_apply_types` VALUES (1,'Purchase',0);

--
-- Table structure for table `tbl_discount_types`
--

CREATE TABLE `tbl_discount_types` (
  `discountType_id` int(11) NOT NULL AUTO_INCREMENT,
  `discountType_desc` varchar(100) DEFAULT NULL,
  `discountType_archive` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`discountType_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discount_types`
--

INSERT INTO `tbl_discount_types` VALUES (1,'Flat Rate',0);

--
-- Table structure for table `tbl_discount_usage`
--

CREATE TABLE `tbl_discount_usage` (
  `discountUsage_id` int(11) NOT NULL AUTO_INCREMENT,
  `discountUsage_customer` varchar(50) DEFAULT NULL,
  `discountUsage_discount_id` int(11) DEFAULT '0',
  `discountUsage_count` int(11) DEFAULT '0',
  PRIMARY KEY (`discountUsage_id`),
  KEY `discountUsage_discount_id` (`discountUsage_discount_id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discount_usage`
--

INSERT INTO `tbl_discount_usage` VALUES (4,'1',64,1),(5,'D3970516-11-10-06',65,1),(6,'1',65,1);

--
-- Table structure for table `tbl_discounts`
--

CREATE TABLE `tbl_discounts` (
  `discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `discount_reference_id` varchar(50) DEFAULT NULL,
  `discount_name` varchar(100) DEFAULT NULL,
  `discount_description` varchar(100) DEFAULT NULL,
  `discount_promotionalCode` varchar(100) DEFAULT NULL,
  `discount_startDate` datetime DEFAULT NULL,
  `discount_endDate` datetime DEFAULT NULL,
  `discount_archive` tinyint(4) DEFAULT NULL,
  `discount_type` int(11) DEFAULT NULL,
  `discount_applyType` int(11) DEFAULT NULL,
  `discount_usage` int(11) DEFAULT NULL,
  `discount_limit` int(11) DEFAULT NULL,
  `discount_showDesc` int(11) DEFAULT NULL,
  `discount_applyTo` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`discount_id`)
) ENGINE=MyISAM AUTO_INCREMENT=67 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discounts`
--

INSERT INTO `tbl_discounts` VALUES (64,'test','test','test','','2006-10-01 00:00:00','2006-11-07 00:00:00',0,1,1,NULL,0,1,'specific'),(65,'MailerDiscount_001','Mailer Discount','Discount code sent out in mailer','MailerDiscount_11032006','2006-11-03 00:00:00','2008-11-24 00:00:00',0,1,1,NULL,0,1,'all'),(66,'GlobalDiscount001','Global Discount','Your discount \"Description\" is displayed here. \"For a limited time 10% everything!\"','','2006-11-03 00:00:00','2009-11-10 00:00:00',0,1,1,NULL,0,1,'all');

--
-- Table structure for table `tbl_discounts_products_rel`
--

CREATE TABLE `tbl_discounts_products_rel` (
  `discounts_products_rel_id` int(11) NOT NULL AUTO_INCREMENT,
  `discounts_products_rel_discount_id` int(11) NOT NULL DEFAULT '0',
  `discounts_products_rel_prod_id` int(11) NOT NULL DEFAULT '0',
  `discounts_products_rel_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`discounts_products_rel_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discounts_products_rel`
--


--
-- Table structure for table `tbl_discounts_skus_rel`
--

CREATE TABLE `tbl_discounts_skus_rel` (
  `discounts_skus_rel_id` int(11) NOT NULL AUTO_INCREMENT,
  `discounts_skus_rel_discount_id` int(11) NOT NULL DEFAULT '0',
  `discounts_skus_rel_sku_id` int(11) NOT NULL DEFAULT '0',
  `discounts_skus_rel_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`discounts_skus_rel_id`)
) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_discounts_skus_rel`
--

INSERT INTO `tbl_discounts_skus_rel` VALUES (64,64,29,1);

--
-- Table structure for table `tbl_list_ccards`
--

CREATE TABLE `tbl_list_ccards` (
  `ccard_ID` int(11) NOT NULL AUTO_INCREMENT,
  `ccard_Name` varchar(50) DEFAULT NULL,
  `ccard_Code` varchar(50) DEFAULT NULL,
  `ccard_Archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`ccard_ID`),
  KEY `ccard_code` (`ccard_Code`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_list_ccards`
--

INSERT INTO `tbl_list_ccards` VALUES (2,'Master Card','master',0),(3,'American Express','amex',0),(4,'Discover','discover',0),(18,'Visa','visa',0);

--
-- Table structure for table `tbl_list_countries`
--

CREATE TABLE `tbl_list_countries` (
  `country_ID` int(11) NOT NULL AUTO_INCREMENT,
  `country_Name` varchar(50) DEFAULT NULL,
  `country_Code` varchar(50) DEFAULT NULL,
  `country_Sort` int(11) DEFAULT '0',
  `country_Archive` smallint(6) DEFAULT '0',
  `country_DefaultCountry` int(11) DEFAULT '0',
  PRIMARY KEY (`country_ID`),
  KEY `region_code` (`country_Code`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_list_countries`
--

INSERT INTO `tbl_list_countries` VALUES (1,'United States','USA',1,0,0),(2,'US Territories','USA_Terr',2,0,0),(3,'Canada','CA',3,0,0),(4,'Italy','IT',0,0,0),(5,'United Kingdom','UK',4,0,1),(6,'France','FRA',0,0,0),(7,'Belgium','BEL',0,0,0),(8,'Germany','GER',0,0,0);

--
-- Table structure for table `tbl_list_imagetypes`
--

CREATE TABLE `tbl_list_imagetypes` (
  `imgType_ID` int(11) NOT NULL AUTO_INCREMENT,
  `imgType_Name` varchar(100) DEFAULT NULL,
  `imgType_SortOrder` int(11) DEFAULT NULL,
  `imgType_Folder` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`imgType_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_list_imagetypes`
--

INSERT INTO `tbl_list_imagetypes` VALUES (1,'Thumbnail',1,'cw3/assets/product_thumb/'),(2,'Large',2,'cw3/assets/product_full/'),(3,'Expanded',3,'cw3/assets/product_expanded/'),(4,'Extra Small Image',4,'cw3/assets/product_small/');

--
-- Table structure for table `tbl_list_optiontypes`
--

CREATE TABLE `tbl_list_optiontypes` (
  `optiontype_ID` int(11) NOT NULL AUTO_INCREMENT,
  `optiontype_Required` tinyint(4) DEFAULT '1',
  `optiontype_Name` varchar(75) DEFAULT NULL,
  `optiontype_Archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`optiontype_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_list_optiontypes`
--

INSERT INTO `tbl_list_optiontypes` VALUES (1,1,'Size',0),(2,1,'Color',0),(3,1,'Cut',0),(4,1,'Other',0);

--
-- Table structure for table `tbl_list_shipstatus`
--

CREATE TABLE `tbl_list_shipstatus` (
  `shipstatus_id` int(11) NOT NULL AUTO_INCREMENT,
  `shipstatus_Name` varchar(70) DEFAULT NULL,
  `shipstatus_Sort` int(11) DEFAULT NULL,
  PRIMARY KEY (`shipstatus_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_list_shipstatus`
--

INSERT INTO `tbl_list_shipstatus` VALUES (1,'Pending',1),(2,'Verified',2),(3,'Shipped',3),(4,'Canceled',4),(5,'Returned',5);

--
-- Table structure for table `tbl_orders`
--

CREATE TABLE `tbl_orders` (
  `order_ID` varchar(75) NOT NULL DEFAULT '',
  `order_TransactionID` varchar(50) DEFAULT NULL,
  `order_Date` datetime DEFAULT NULL,
  `order_Status` int(11) DEFAULT '0',
  `order_CustomerID` varchar(50) NOT NULL DEFAULT '',
  `order_Tax` double DEFAULT '0',
  `order_Shipping` double DEFAULT NULL,
  `order_ShippingTax` double DEFAULT NULL,
  `order_Total` double DEFAULT '0',
  `order_ShipMeth_ID` int(11) DEFAULT '0',
  `order_ShipDate` datetime DEFAULT NULL,
  `order_ShipTrackingID` varchar(100) DEFAULT NULL,
  `order_Address1` varchar(125) DEFAULT NULL,
  `order_Address2` varchar(50) DEFAULT NULL,
  `order_City` varchar(100) DEFAULT NULL,
  `order_State` varchar(50) DEFAULT NULL,
  `order_Zip` varchar(50) DEFAULT NULL,
  `order_Country` varchar(75) DEFAULT NULL,
  `order_Notes` text,
  `order_ActualShipCharge` double DEFAULT '0',
  `order_ShipName` varchar(75) DEFAULT NULL,
  `order_Comments` varchar(255) DEFAULT NULL,
  `order_DiscountID` int(11) DEFAULT '0',
  `order_DiscountAmount` double DEFAULT '0',
  PRIMARY KEY (`order_ID`),
  KEY `order_Discountid` (`order_DiscountID`),
  KEY `order_ShipTrackingID` (`order_ShipTrackingID`),
  KEY `tbl_Customerstbl_Orders` (`order_CustomerID`),
  KEY `FK_cw3_tbl_list_shipstatus_tbl_orders` (`order_Status`),
  KEY `FK_cw3_tbl_shipmethod_tbl_orders` (`order_ShipMeth_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_orders`
--

INSERT INTO `tbl_orders` VALUES ('B412BC21-0A63-E73C-F2AE5FC28EB86E51','2776080','2006-11-04 12:44:56',1,'1',0.71,37.4,0,51.87554,35,NULL,NULL,'1234 St.','','Sometown','AL','98801','USA',NULL,0,'Bob Buyer','',0,0),('D39C2BB0-E9AA-C7BB-445E51CFA22A76B6','5430656','2006-11-10 12:43:17',1,'D3970516-11-10-06',0,34,0,259.25,35,NULL,NULL,'123 Ave','','Mysville','CO','87654','USA',NULL,0,'Jane Shopsalot','',0,0),('D4E14B13-A2E2-2F84-B597120889E984A4','4217872','2006-11-10 18:38:24',1,'1',1.72,37.4,0,52.51328,35,NULL,NULL,'1234 St.','','Sometown','AL','98801','USA',NULL,0,'Bob Buyer','',0,0);

--
-- Table structure for table `tbl_orderskus`
--

CREATE TABLE `tbl_orderskus` (
  `orderSKU_ID` int(11) NOT NULL AUTO_INCREMENT,
  `orderSKU_OrderID` varchar(50) NOT NULL DEFAULT '',
  `orderSKU_SKU` int(11) NOT NULL DEFAULT '0',
  `orderSKU_Quantity` int(11) DEFAULT NULL,
  `orderSKU_UnitPrice` double DEFAULT NULL,
  `orderSKU_SKUTotal` double DEFAULT '0',
  `orderSKU_Picked` smallint(6) DEFAULT '0',
  `orderSKU_TaxRate` double DEFAULT '0',
  `orderSKU_TaxRateID` int(11) DEFAULT '0',
  `orderSKU_DiscountID` int(11) DEFAULT '0',
  `orderSKU_DiscountAmount` double DEFAULT '0',
  PRIMARY KEY (`orderSKU_ID`),
  KEY `orderSKU_DiscountID` (`orderSKU_DiscountID`),
  KEY `orderSKU_TaxRateID` (`orderSKU_TaxRateID`),
  KEY `tbl_Orderstbl_OrderSKUs` (`orderSKU_OrderID`),
  KEY `tbl_SKUstbl_OrderSKUs` (`orderSKU_SKU`)
) ENGINE=MyISAM AUTO_INCREMENT=58 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_orderskus`
--

INSERT INTO `tbl_orderskus` VALUES (54,'B412BC21-0A63-E73C-F2AE5FC28EB86E51',29,1,15,13.5,0,0.71,0,64,1.5),(55,'D39C2BB0-E9AA-C7BB-445E51CFA22A76B6',58,1,65,55.25,0,0,0,65,9.75),(56,'D39C2BB0-E9AA-C7BB-445E51CFA22A76B6',44,2,100,170,0,0,0,65,15),(57,'D4E14B13-A2E2-2F84-B597120889E984A4',28,1,15,12.75,0,1.72,0,65,2.25);

--
-- Table structure for table `tbl_prdtcat_rel`
--

CREATE TABLE `tbl_prdtcat_rel` (
  `prdt_cat_rel_ID` int(11) NOT NULL AUTO_INCREMENT,
  `prdt_cat_rel_Product_ID` int(11) DEFAULT '0',
  `prdt_cat_rel_Cat_ID` int(11) DEFAULT '0',
  PRIMARY KEY (`prdt_cat_rel_ID`),
  KEY `tbl_PrdtCategoriestbl_prdtcat_rel` (`prdt_cat_rel_Cat_ID`),
  KEY `tbl_Productstbl_prdtcat_rel` (`prdt_cat_rel_Product_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=64 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtcat_rel`
--

INSERT INTO `tbl_prdtcat_rel` VALUES (49,29,4),(57,31,4),(58,21,2),(59,22,2),(60,27,4),(61,24,4),(62,24,2),(63,23,4);

--
-- Table structure for table `tbl_prdtcategories`
--

CREATE TABLE `tbl_prdtcategories` (
  `category_ID` int(11) NOT NULL AUTO_INCREMENT,
  `category_Name` varchar(75) DEFAULT NULL,
  `category_archive` smallint(6) DEFAULT '0',
  `category_sortorder` int(11) DEFAULT '0',
  PRIMARY KEY (`category_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtcategories`
--

INSERT INTO `tbl_prdtcategories` VALUES (2,'Clothing',0,0),(4,'Housewares',0,0);

--
-- Table structure for table `tbl_prdtimages`
--

CREATE TABLE `tbl_prdtimages` (
  `prdctImage_ID` int(11) NOT NULL AUTO_INCREMENT,
  `prdctImage_ProductID` int(11) DEFAULT '0',
  `prdctImage_ImgTypeID` int(11) DEFAULT '0',
  `prdctImage_FileName` varchar(50) DEFAULT NULL,
  `prdctImage_SortOrder` int(11) DEFAULT '0',
  PRIMARY KEY (`prdctImage_ID`),
  KEY `tbl_list_ImageTypestbl_PrdtImages` (`prdctImage_ImgTypeID`),
  KEY `tbl_Productstbl_PrdtImages` (`prdctImage_ProductID`)
) ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtimages`
--

INSERT INTO `tbl_prdtimages` VALUES (33,29,2,'product_full.gif',1),(42,29,1,'product_thumb.gif',1),(43,29,3,'product_expanded.gif',1),(44,29,4,'product_small.gif',1),(45,31,1,'product_thumb.gif',1),(46,31,3,'product_expanded.gif',1),(47,31,4,'product_small.gif',1),(48,23,1,'product_thumb.gif',1),(49,23,3,'product_expanded.gif',1),(50,23,4,'product_small.gif',1),(51,24,1,'product_thumb.gif',1),(52,24,3,'product_expanded.gif',1),(53,24,4,'product_small.gif',1),(54,27,1,'product_thumb.gif',1),(55,27,3,'product_expanded.gif',1),(56,27,4,'product_small.gif',1),(57,22,1,'product_thumb.gif',1),(58,22,3,'product_expanded.gif',1),(59,22,4,'product_small.gif',1),(60,21,1,'product_thumb.gif',1),(61,21,3,'product_expanded.gif',1),(62,21,4,'product_small.gif',1),(63,21,2,'product_full.gif',1),(64,22,2,'product_full.gif',1),(65,27,2,'product_full.gif',1),(66,24,2,'product_full.gif',1),(67,23,2,'product_full.gif',1);

--
-- Table structure for table `tbl_prdtoption_rel`
--

CREATE TABLE `tbl_prdtoption_rel` (
  `optn_rel_ID` int(11) NOT NULL AUTO_INCREMENT,
  `optn_rel_Prod_ID` int(11) NOT NULL DEFAULT '0',
  `optn_rel_OptionType_ID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`optn_rel_ID`),
  KEY `tbl_list_OptionTypestbl_ProductOption_rel` (`optn_rel_OptionType_ID`),
  KEY `tbl_Productstbl_ProductOption_rel` (`optn_rel_Prod_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=161 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtoption_rel`
--

INSERT INTO `tbl_prdtoption_rel` VALUES (120,21,2),(136,29,2),(137,29,3),(138,29,4),(139,29,1),(154,31,4),(155,22,1),(156,24,2),(157,24,3),(158,24,1),(159,23,2),(160,23,1);

--
-- Table structure for table `tbl_prdtscndcat_rel`
--

CREATE TABLE `tbl_prdtscndcat_rel` (
  `prdt_scnd_rel_ID` int(11) NOT NULL AUTO_INCREMENT,
  `prdt_scnd_rel_Product_ID` int(11) DEFAULT '0',
  `prdt_scnd_rel_ScndCat_ID` int(11) DEFAULT '0',
  PRIMARY KEY (`prdt_scnd_rel_ID`),
  KEY `tbl_PrdtScndCategoriestbl_PrdtScndCtgry_rel` (`prdt_scnd_rel_ScndCat_ID`),
  KEY `tbl_Productstbl_PrdtScndCtgry_rel` (`prdt_scnd_rel_Product_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=228 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtscndcat_rel`
--

INSERT INTO `tbl_prdtscndcat_rel` VALUES (211,29,2),(220,21,2),(221,21,3),(222,22,2),(223,22,5),(224,24,2),(225,24,3),(226,24,4),(227,23,7);

--
-- Table structure for table `tbl_prdtscndcats`
--

CREATE TABLE `tbl_prdtscndcats` (
  `scndctgry_ID` int(11) NOT NULL AUTO_INCREMENT,
  `scndctgry_Name` varchar(100) DEFAULT NULL,
  `scndctgry_Archive` smallint(6) DEFAULT '0',
  `scndctgry_Sort` int(11) DEFAULT '0',
  PRIMARY KEY (`scndctgry_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtscndcats`
--

INSERT INTO `tbl_prdtscndcats` VALUES (2,'Men\'s',0,0),(3,'Women\'s',0,0),(4,'Children\'s',0,0),(5,'Shirts',0,0),(6,'Pants',0,0),(7,'Training',1,0);

--
-- Table structure for table `tbl_prdtupsell`
--

CREATE TABLE `tbl_prdtupsell` (
  `upsell_id` int(11) NOT NULL AUTO_INCREMENT,
  `upsell_ProdID` int(11) DEFAULT '0',
  `upsell_RelProdID` int(11) DEFAULT '0',
  PRIMARY KEY (`upsell_id`),
  KEY `crosssell_ProdID` (`upsell_ProdID`),
  KEY `FK_cw3_tbl_products_tbl_prdtupsell` (`upsell_RelProdID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_prdtupsell`
--

INSERT INTO `tbl_prdtupsell` VALUES (1,24,29),(2,24,27),(3,24,23);

--
-- Table structure for table `tbl_products`
--

CREATE TABLE `tbl_products` (
  `product_ID` int(11) NOT NULL AUTO_INCREMENT,
  `product_MerchantProductID` varchar(50) NOT NULL DEFAULT '',
  `product_Name` varchar(125) DEFAULT NULL,
  `product_Description` text,
  `product_ShortDescription` text,
  `product_Sort` int(11) DEFAULT '0',
  `product_OnWeb` smallint(6) DEFAULT '0',
  `product_Archive` smallint(6) DEFAULT '0',
  `product_shipchrg` smallint(6) DEFAULT '0',
  `product_taxgroupid` int(11) DEFAULT '0',
  PRIMARY KEY (`product_ID`),
  UNIQUE KEY `ItemNumber` (`product_MerchantProductID`)
) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_products`
--

INSERT INTO `tbl_products` VALUES (21,'1option','One Option Product','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum vel augue quis velit vulputate commodo. Sed leo magna, adipiscing ut, nonummy ac, pulvinar at, libero. Sed vulputate. Etiam sed purus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec porta. Pellentesque vel mauris ac dolor vulputate tincidunt. Aliquam justo eros, vehicula et, aliquet nec, molestie vitae, tellus. Ut mollis imperdiet mauris. Nam aliquam varius tellus. Praesent venenatis tellus vel ligula. Etiam mattis nisl et urna. Donec euismod egestas ipsum. Nulla facilisi. Praesent ac nulla. Sed nec turpis ut neque nonummy euismod. Vivamus sed augue vel magna interdum faucibus. In felis urna, laoreet convallis, facilisis eu, convallis sit amet, ligula. Maecenas consequat ultrices velit.\r\n\r\nDonec facilisis aliquam eros. Morbi lobortis dolor a sapien. Quisque nibh est, tempus nonummy, interdum vel, auctor in, urna. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam rhoncus. Phasellus iaculis, ipsum ac mollis ultricies, nulla massa rutrum pede, et pellentesque massa massa ut massa. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia  In hac habitasse platea dictumst. Curabitur pretium nunc eget odio. Proin orci justo, auctor vel, consectetuer sed, hendrerit eu, tortor. Aliquam pede. Cras turpis purus, iaculis non, tincidunt molestie, hendrerit nec, lacus. Duis bibendum tempor velit.\r\n\r\nNam aliquet purus porttitor mi. Vivamus sed dolor. In hendrerit hendrerit nulla. Donec dapibus elit quis nisl. In eros ante, commodo a, vulputate et, auctor ut, turpis. Vivamus porttitor justo vitae sem. Integer suscipit ullamcorper velit. Morbi sit amet erat. Vestibulum ipsum augue, nonummy non, aliquam in, malesuada in, magna. Suspendisse iaculis.','orem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam enim. Proin condimentum iaculis nisl. Fusce euismod, felis non auctor tincidunt, pede purus tempor felis, eu accumsan lacus orci quis velit. Integer at sapien. Suspendisse molestie.',2,1,0,1,3),(22,'1sku','Single SKU Product','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum vel augue quis velit vulputate commodo. Sed leo magna, adipiscing ut, nonummy ac, pulvinar at, libero. Sed vulputate. Etiam sed purus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec porta. Pellentesque vel mauris ac dolor vulputate tincidunt. Aliquam justo eros, vehicula et, aliquet nec, molestie vitae, tellus. Ut mollis imperdiet mauris. Nam aliquam varius tellus. Praesent venenatis tellus vel ligula. Etiam mattis nisl et urna. Donec euismod egestas ipsum. Nulla facilisi. Praesent ac nulla. Sed nec turpis ut neque nonummy euismod. Vivamus sed augue vel magna interdum faucibus. In felis urna, laoreet convallis, facilisis eu, convallis sit amet, ligula. Maecenas consequat ultrices velit.\r\n\r\nDonec facilisis aliquam eros. Morbi lobortis dolor a sapien. Quisque nibh est, tempus nonummy, interdum vel, auctor in, urna. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam rhoncus. Phasellus iaculis, ipsum ac mollis ultricies, nulla massa rutrum pede, et pellentesque massa massa ut massa. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia  In hac habitasse platea dictumst. Curabitur pretium nunc eget odio. Proin orci justo, auctor vel, consectetuer sed, hendrerit eu, tortor. Aliquam pede. Cras turpis purus, iaculis non, tincidunt molestie, hendrerit nec, lacus. Duis bibendum tempor velit.\r\n\r\nNam aliquet purus porttitor mi. Vivamus sed dolor. In hendrerit hendrerit nulla. Donec dapibus elit quis nisl. In eros ante, commodo a, vulputate et, auctor ut, turpis. Vivamus porttitor justo vitae sem. Integer suscipit ullamcorper velit. Morbi sit amet erat. Vestibulum ipsum augue, nonummy non, aliquam in, malesuada in, magna. Suspendisse iaculis.','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam felis wisi, rhoncus id, bibendum eu, tristique at, magna. Aliquam a nisl. Quisque accumsan molestie enim. Sed sit amet nisl. Nunc sit amet massa porta massa.',1,1,0,1,0),(23,'2option','Two Option Product','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc lobortis, odio viverra vestibulum lacinia, ipsum nisl interdum dui, varius posuere velit lacus a ligula. Integer lacus. Suspendisse porttitor. Aenean commodo vehicula tellus. Cras pede lacus, tincidunt in, viverra quis, viverra hendrerit, lorem. Donec nibh neque, suscipit non, posuere nec, tristique ut, sem. Pellentesque quis lectus eget risus hendrerit viverra. Donec dui mi, iaculis vitae, pharetra ac, egestas in, lectus. Aenean non arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Integer hendrerit nunc nec dui. Vestibulum id nibh. Etiam elit. Nulla et erat ut leo scelerisque nonummy. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Etiam interdum purus non enim ultricies vulputate. Proin lacinia velit imperdiet libero.\r\n\r\nPellentesque at augue ac ante pulvinar blandit. Curabitur id tortor vitae elit pulvinar sagittis. Sed a augue. Proin pede velit, ornare vel, fermentum at, dignissim vitae, nulla. Donec feugiat ligula at risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia  Morbi elit risus, pellentesque rhoncus, vestibulum eget, euismod et, nibh. Ut metus enim, accumsan eu, gravida eget, dignissim eget, lectus. Nulla facilisi. Quisque tristique quam ut sem. Ut urna urna, dignissim at, dignissim quis, convallis elementum, turpis. Pellentesque quis purus. Duis eget enim. Nunc dictum, est sed vulputate dictum, diam nibh fermentum metus, eu accumsan massa enim nec enim. Donec ultrices, libero sed porttitor nonummy, libero ante ullamcorper tellus, tempor gravida mauris metus sed odio. Integer viverra felis posuere massa. Maecenas euismod rutrum nulla. Pellentesque gravida, neque ac malesuada consectetuer, sem massa varius mauris, id pulvinar diam pede in urna. ','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam felis wisi, rhoncus id, bibendum eu, tristique at, magna. Aliquam a nisl. Quisque accumsan molestie enim. Sed sit amet nisl. Nunc sit amet massa porta massa.',3,1,0,1,3),(24,'3option','Three Option Product','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc lobortis, odio viverra vestibulum lacinia, ipsum nisl interdum dui, varius posuere velit lacus a ligula. Integer lacus. Suspendisse porttitor. Aenean commodo vehicula tellus. Cras pede lacus, tincidunt in, viverra quis, viverra hendrerit, lorem. Donec nibh neque, suscipit non, posuere nec, tristique ut, sem. Pellentesque quis lectus eget risus hendrerit viverra. Donec dui mi, iaculis vitae, pharetra ac, egestas in, lectus. Aenean non arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Integer hendrerit nunc nec dui. Vestibulum id nibh. Etiam elit. Nulla et erat ut leo scelerisque nonummy. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Etiam interdum purus non enim ultricies vulputate. Proin lacinia velit imperdiet libero.\r\n\r\nPellentesque at augue ac ante pulvinar blandit. Curabitur id tortor vitae elit pulvinar sagittis. Sed a augue. Proin pede velit, ornare vel, fermentum at, dignissim vitae, nulla. Donec feugiat ligula at risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Morbi elit risus, pellentesque rhoncus, vestibulum eget, euismod et, nibh. Ut metus enim, accumsan eu, gravida eget, dignissim eget, lectus. Nulla facilisi. Quisque tristique quam ut sem. Ut urna urna, dignissim at, dignissim quis, convallis elementum, turpis. Pellentesque quis purus. Duis eget enim. Nunc dictum, est sed vulputate dictum, diam nibh fermentum metus, eu accumsan massa enim nec enim. Donec ultrices, libero sed porttitor nonummy, libero ante ullamcorper tellus, tempor gravida mauris metus sed odio. Integer viverra felis posuere massa. Maecenas euismod rutrum nulla. Pellentesque gravida, neque ac malesuada consectetuer, sem massa varius mauris, id pulvinar diam pede in urna. ','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc lobortis, odio viverra vestibulum lacinia, ipsum nisl interdum dui, varius posuere velit lacus a ligula. Integer lacus.',4,1,0,1,0),(27,'sku1','Test with VAT','Test product with VAT','Test product with VAT',1,1,0,1,3),(29,'4OptionProduct','4 Option Product','This is a four option product, because I can','This is a four option product, because I can',0,1,0,0,3),(31,'TestProd','Cheap Test Product','Test','Test',0,1,0,1,1);

--
-- Table structure for table `tbl_shipmethcntry_rel`
--

CREATE TABLE `tbl_shipmethcntry_rel` (
  `shpmet_cntry_ID` int(11) NOT NULL AUTO_INCREMENT,
  `shpmet_cntry_Meth_ID` int(11) DEFAULT '0',
  `shpmet_cntry_Country_ID` int(11) DEFAULT '0',
  PRIMARY KEY (`shpmet_cntry_ID`),
  KEY `shpmet_cntry_country_id` (`shpmet_cntry_Country_ID`),
  KEY `tbl_ShipMethodtbl_shipmethcntry_rel` (`shpmet_cntry_Meth_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_shipmethcntry_rel`
--

INSERT INTO `tbl_shipmethcntry_rel` VALUES (1,35,1),(2,36,1),(3,60,1),(4,76,2),(7,65,3),(9,74,5),(10,75,7);

--
-- Table structure for table `tbl_shipmethod`
--

CREATE TABLE `tbl_shipmethod` (
  `shipmeth_ID` int(11) NOT NULL AUTO_INCREMENT,
  `shipmeth_Name` varchar(100) NOT NULL DEFAULT '',
  `shipmeth_Rate` double DEFAULT NULL,
  `shipmeth_Sort` int(11) NOT NULL DEFAULT '0',
  `shipmeth_Archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`shipmeth_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=77 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_shipmethod`
--

INSERT INTO `tbl_shipmethod` VALUES (35,'USA UPS Ground',4,1,0),(36,'USA 2 Day Air',7,2,0),(60,'USA Overnight Air',8,3,0),(65,'Canadian UPS',15,4,0),(66,'International UPS',28,5,0),(73,'USPS',4,6,0),(74,'Securicor',0,5,0),(75,'Test',3,1,0),(76,'USA Territories UPS',14.5,0,0);

--
-- Table structure for table `tbl_shipranges`
--

CREATE TABLE `tbl_shipranges` (
  `ship_range_ID` int(11) NOT NULL AUTO_INCREMENT,
  `ship_range_Method_ID` int(11) DEFAULT '0',
  `ship_range_From` double DEFAULT '0',
  `ship_range_To` double DEFAULT '0',
  `ship_range_Amount` double DEFAULT '0',
  PRIMARY KEY (`ship_range_ID`),
  KEY `tbl_ShipMethodtbl_shipranges` (`ship_range_Method_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_shipranges`
--

INSERT INTO `tbl_shipranges` VALUES (1,35,0,5,11.55),(2,35,5.01,10,20.5),(3,35,10.01,20,30),(4,35,20.01,10000000,40),(5,36,0,5,15),(6,36,5.01,10,25),(7,36,10.01,20,35),(8,36,20.01,10000000,45),(9,60,1,5,16),(10,60,5.01,10,26),(11,60,10.01,20,36),(12,60,20.01,10000000,46),(13,65,0,5,19),(14,65,5.01,10,29),(15,65,10.01,20,39),(16,65,20.01,10000000,49),(17,66,0,5,21),(18,66,5.01,10,31),(19,66,10.01,20,41),(20,66,20.01,10000000,51),(21,74,0,1,2.5),(22,74,1.01,10000,3),(23,76,0,100000,5);

--
-- Table structure for table `tbl_skuoption_rel`
--

CREATE TABLE `tbl_skuoption_rel` (
  `optn_rel_ID` int(11) NOT NULL AUTO_INCREMENT,
  `optn_rel_SKU_ID` int(11) NOT NULL DEFAULT '0',
  `optn_rel_Option_ID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`optn_rel_ID`),
  KEY `tbl_SKU_optionstbl_SKU_Option_relation` (`optn_rel_Option_ID`),
  KEY `tbl_SKUstbl_SKUOption_rel` (`optn_rel_SKU_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=556 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_skuoption_rel`
--

INSERT INTO `tbl_skuoption_rel` VALUES (463,29,7),(464,30,4),(465,31,1),(466,31,6),(467,32,6),(468,32,2),(469,33,3),(470,33,6),(471,34,6),(472,34,4),(473,35,1),(474,35,7),(475,36,7),(476,36,3),(477,37,1),(478,37,25),(479,38,25),(480,38,2),(481,39,1),(482,39,6),(483,39,22),(484,40,22),(485,40,2),(486,40,6),(487,41,24),(488,41,2),(489,41,6),(490,42,24),(491,42,6),(492,42,3),(505,47,7),(506,47,22),(507,47,1),(508,46,1),(509,46,7),(510,46,24),(511,48,25),(512,48,22),(513,48,1),(514,49,25),(515,49,3),(516,49,22),(517,50,29),(518,50,1),(519,50,6),(520,50,22),(521,51,1),(522,51,24),(523,51,6),(524,51,29),(525,52,22),(526,52,2),(527,52,29),(528,52,6),(529,53,6),(530,53,3),(531,53,22),(532,53,29),(533,54,6),(534,54,30),(535,54,22),(536,54,1),(537,55,22),(538,55,31),(539,55,1),(540,55,6),(541,56,2),(542,56,6),(543,56,22),(544,56,30),(545,57,22),(546,57,30),(547,57,6),(548,57,3),(549,58,5),(550,58,31),(551,58,6),(552,58,22),(554,28,6),(555,59,30);

--
-- Table structure for table `tbl_skuoptions`
--

CREATE TABLE `tbl_skuoptions` (
  `option_ID` int(11) NOT NULL AUTO_INCREMENT,
  `option_Type_ID` int(11) DEFAULT '0',
  `option_Name` varchar(50) DEFAULT NULL,
  `option_Sort` int(11) DEFAULT NULL,
  `option_Archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`option_ID`),
  KEY `tbl_list_OptionTypestbl_SKUOptions` (`option_Type_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_skuoptions`
--

INSERT INTO `tbl_skuoptions` VALUES (1,1,'Small',1,0),(2,1,'Medium',2,0),(3,1,'Large',3,0),(4,1,'X-Large',4,0),(5,1,'XX-Large',5,0),(6,2,'Black',1,0),(7,2,'Blue',2,0),(9,1,'None',9,0),(20,2,'None',9,0),(21,3,'Fat',1,1),(22,3,'Slim',2,0),(24,3,'Form Fitting',3,0),(25,2,'Green',3,0),(26,2,'Red',4,0),(27,2,'Mauve',6,0),(28,1,'Boys Medium',6,0),(29,4,'Short',1,0),(30,4,'Long',2,0),(31,4,'Really Long',3,0);

--
-- Table structure for table `tbl_skus`
--

CREATE TABLE `tbl_skus` (
  `SKU_ID` int(11) NOT NULL AUTO_INCREMENT,
  `SKU_MerchSKUID` varchar(50) DEFAULT NULL,
  `SKU_ProductID` int(11) NOT NULL DEFAULT '0',
  `SKU_Price` double DEFAULT NULL,
  `SKU_Weight` double DEFAULT '0',
  `SKU_Stock` int(11) DEFAULT '0',
  `SKU_ShowWeb` smallint(6) DEFAULT '0',
  `SKU_Sort` int(11) DEFAULT '1',
  PRIMARY KEY (`SKU_ID`),
  UNIQUE KEY `SKU_ID` (`SKU_MerchSKUID`),
  KEY `tbl_Productstbl_SKUs` (`SKU_ProductID`)
) ENGINE=MyISAM AUTO_INCREMENT=60 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_skus`
--

INSERT INTO `tbl_skus` VALUES (28,'1option',21,15,12.3,0,1,1),(29,'1option2',21,15,12.3,3,1,1),(30,'1sku',22,13.95,10,0,1,1),(31,'2option1',23,14.99,3,5,1,0),(32,'2option2',23,14.99,3,9,1,0),(33,'2option3',23,14.99,3,9,1,0),(34,'2option4',23,15.99,0,8,1,0),(35,'2option5',23,14.99,3,9,1,0),(36,'2option6',23,14.99,3,10,1,0),(37,'2option7',23,14.99,3,10,1,0),(38,'2option8',23,14.99,3,10,1,0),(39,'3option1',24,13.99,10,2,1,0),(40,'3option2',24,13.99,10,10,1,0),(41,'3option3',24,13.99,10,10,1,0),(42,'3option4',24,14.99,10,4,1,0),(44,'sku1',27,100,10,1,1,1),(46,'bss',24,19.95,0,1,1,0),(47,'bfx',24,19.95,0,10,0,0),(48,'gss',24,15.95,0,10,1,0),(49,'gsl',24,16.95,0,10,1,0),(50,'1',29,14.95,0,9,1,0),(51,'2',29,14.95,0,1,1,0),(52,'3',29,14.95,0,10,1,0),(53,'4',29,14.95,0,10,1,0),(54,'5',29,65.95,0,10,1,0),(55,'6',29,123,0,10,1,0),(56,'7',29,123,0,6,1,0),(57,'8',29,12,0,12,1,0),(58,'9',29,65,0,9,1,0),(59,'Cheap Test Sku',31,0.02,1,997,1,0);

--
-- Table structure for table `tbl_stateprov`
--

CREATE TABLE `tbl_stateprov` (
  `stprv_ID` int(11) NOT NULL AUTO_INCREMENT,
  `stprv_Code` varchar(50) DEFAULT NULL,
  `stprv_Name` varchar(255) DEFAULT NULL,
  `stprv_Country_ID` int(11) DEFAULT '0',
  `stprv_Tax` double DEFAULT '0',
  `stprv_Ship_Ext` double DEFAULT '0',
  `stprv_Archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`stprv_ID`),
  KEY `st_code` (`stprv_Code`),
  KEY `tbl_list_Countriestbl_StateProv` (`stprv_Country_ID`)
) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_stateprov`
--

INSERT INTO `tbl_stateprov` VALUES (1,'AL','Alabama',1,0.085,0.1,0),(2,'AK','Alaska',1,0,0,0),(3,'AZ','Arizona',1,0,0,0),(4,'AR','Arkansas',1,0,0,0),(5,'CA','California',1,0,0,0),(6,'CO','Colorado',1,0,0,0),(7,'CT','Connecticut',1,0,0,0),(8,'DE','Delaware',1,0,0,0),(9,'FL','Florida',1,0,0.5,0),(10,'GA','Georgia',1,0,0,0),(11,'HI','Hawaii',1,0,0,0),(12,'ID','Idaho',1,0,0,0),(13,'IL','Illinois',1,0,0,0),(14,'IN','Indiana',1,0,0,0),(15,'IA','Iowa',1,0,0,0),(16,'KS','Kansas',1,0,0,0),(17,'KY','Kentucky',1,0,0,0),(18,'LA','Louisiana',1,0,0,0),(19,'ME','Maine',1,0,0,0),(20,'MD','Maryland',1,0,0,0),(21,'MA','Massachusetts',1,0,0,0),(22,'MI','Michigan',1,0,0,0),(23,'MN','Minnesota',1,0,0,0),(24,'MS','Mississippi',1,0,0,0),(25,'MO','Missouri',1,0,0,0),(26,'MT','Montana',1,0,0,0),(27,'NE','Nebraska',1,0,0,0),(28,'NV','Nevada',1,0,0,0),(29,'NH','New Hampshire',1,0,0,0),(30,'NJ','New Jersey',1,0,0,0),(31,'NM','New Mexico',1,0,0,0),(32,'NY','New York',1,0,0,0),(33,'NC','North Carolina',1,0,0,0),(34,'ND','North Dakota',1,0,0,0),(35,'OH','Ohio',1,0,0,0),(36,'OK','Oklahoma',1,0,0,0),(37,'OR','Oregon',1,0,0,0),(38,'PA','Pennsylvania',1,0,0,0),(39,'RI','Rhode Island',1,0,0,0),(40,'SC','South Carolina',1,0,0,0),(41,'SD','South Dakota',1,0,0,0),(42,'TN','Tennessee',1,0,0,0),(43,'TX','Texas',1,0,0,0),(44,'UT','Utah',1,0,0,0),(45,'VT','Vermont',1,0,0,0),(46,'VA','Virginia',1,0,0,0),(47,'WA','Washington',1,0.08,0.25,0),(48,'WV','West Virginia',1,0,0,0),(49,'WI','Wisconsin',1,0,0,0),(50,'WY','Wyoming',1,0,0,0),(51,'BC','British Columbia',3,0,0,0),(52,'MB','Manitoba',3,0,0,0),(53,'NF','Newfoundland',3,0,0,0),(54,'NB','New Brunswick',3,0,0,0),(55,'NT','Northwest Territories',3,0,0,0),(56,'NS','Nova Scotia',3,0,0,0),(57,'ON','Ontario',3,0,0,0),(58,'PE','Prince Edward Island',3,0,0,0),(59,'QC','Quebec',3,0,0,0),(60,'SK','Saskatchewan',3,0,0,0),(61,'YT','Yukon',3,0,0,0),(62,'AS','American Samoa',2,0,0,0),(63,'FM','Fed. Micronesia',2,0,0,0),(64,'G','Guam',2,0,0,0),(65,'MH','Marshall Island',2,0,0,0),(66,'MP','N. Mariana Is.',2,0,0,0),(67,'PW','Palau Island',2,0,0,0),(68,'PR','Puerto Rico',2,0,0,0),(69,'VI','Virgin Islands',2,0,0,0),(70,'None','None',4,0,0,0),(71,'None','None',5,0.175,0.175,0),(72,'None','None',6,0,0,0),(73,'None','None',7,0,0,0),(74,'None','None',8,0,0,0),(75,'DC','District of Columbia',1,0,0,0),(76,'NU','Territory of Nunavut',3,0,0,0),(77,'AB','Alberta',3,0,0,0);

--
-- Table structure for table `tbl_taxgroups`
--

CREATE TABLE `tbl_taxgroups` (
  `taxgroup_id` int(11) NOT NULL AUTO_INCREMENT,
  `taxgroup_name` varchar(150) DEFAULT NULL,
  `taxgroup_archive` smallint(6) DEFAULT '0',
  PRIMARY KEY (`taxgroup_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_taxgroups`
--

INSERT INTO `tbl_taxgroups` VALUES (1,'Books',0),(2,'Perishables',0),(3,'Clothing',0),(4,'Childrens Clothes',0),(5,'Shipping',0);

--
-- Table structure for table `tbl_taxrates`
--

CREATE TABLE `tbl_taxrates` (
  `taxrate_id` int(11) NOT NULL AUTO_INCREMENT,
  `taxrate_regionid` int(11) DEFAULT '0',
  `taxrate_groupid` int(11) DEFAULT '0',
  `taxrate_percentage` double DEFAULT '0',
  PRIMARY KEY (`taxrate_id`),
  KEY `tbl_taxgroupstbl_taxrates` (`taxrate_groupid`),
  KEY `tbl_taxregionstbl_taxrates` (`taxrate_regionid`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_taxrates`
--

INSERT INTO `tbl_taxrates` VALUES (4,3,1,17),(5,1,1,2),(6,2,1,1.2),(7,2,2,3),(10,5,2,8),(11,5,1,10),(12,6,4,0),(13,7,5,0),(14,6,3,17.5),(15,8,3,0),(16,1,3,5.25),(17,2,3,8.25);

--
-- Table structure for table `tbl_taxregions`
--

CREATE TABLE `tbl_taxregions` (
  `taxregion_id` int(11) NOT NULL AUTO_INCREMENT,
  `taxregion_countryid` int(11) NOT NULL DEFAULT '0',
  `taxregion_stateid` int(11) NOT NULL DEFAULT '0',
  `taxregion_label` varchar(150) DEFAULT NULL,
  `taxregion_taxid` varchar(50) DEFAULT NULL,
  `taxregion_showid` tinyint(4) DEFAULT NULL,
  `taxregion_shiptaxmethod` varchar(50) DEFAULT NULL,
  `taxregion_shiptaxgroupid` int(11) DEFAULT '0',
  PRIMARY KEY (`taxregion_id`),
  KEY `taxregion_countryid` (`taxregion_countryid`),
  KEY `taxregion_shiptaxgroupid` (`taxregion_shiptaxgroupid`),
  KEY `taxregion_stateid` (`taxregion_stateid`),
  KEY `taxregion_taxid` (`taxregion_taxid`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_taxregions`
--

INSERT INTO `tbl_taxregions` VALUES (1,1,0,'US Tax','',0,'No Tax',0),(2,1,1,'Alabama State Tax','abc',0,'No Tax',0),(3,1,2,'asdf','',0,'Highest Item Taxed',0),(4,3,51,'PST','',0,'No Tax',0),(5,1,47,'MyTax','XYZ',1,'Tax Group',3),(6,5,0,'VAT','1',0,'Highest Item Taxed',0),(7,3,56,'No Tax','2',0,'Highest Item Taxed',0),(8,7,0,'CWE','',0,'Highest Item Taxed',0);


