

/*Table structure for table `downloadable_sample` */


CREATE TABLE `downloadable_sample` (
  `sample_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Sample ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `sample_url` varchar(255) DEFAULT NULL COMMENT 'Sample URL',
  `sample_file` varchar(255) DEFAULT NULL COMMENT 'Sample file',
  `sample_type` varchar(20) DEFAULT NULL COMMENT 'Sample Type',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`sample_id`),
  KEY `IDX_DOWNLOADABLE_SAMPLE_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_DL_SAMPLE_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Downloadable Sample Table';

/*Data for the table `downloadable_sample` */



/*Table structure for table `downloadable_sample_title` */


CREATE TABLE `downloadable_sample_title` (
  `title_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Title ID',
  `sample_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sample ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  PRIMARY KEY (`title_id`),
  UNIQUE KEY `UNQ_DOWNLOADABLE_SAMPLE_TITLE_SAMPLE_ID_STORE_ID` (`sample_id`,`store_id`),
  KEY `IDX_DOWNLOADABLE_SAMPLE_TITLE_SAMPLE_ID` (`sample_id`),
  KEY `IDX_DOWNLOADABLE_SAMPLE_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_DOWNLOADABLE_SAMPLE_TITLE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_DL_SAMPLE_TTL_SAMPLE_ID_DL_SAMPLE_SAMPLE_ID` FOREIGN KEY (`sample_id`) REFERENCES `downloadable_sample` (`sample_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Downloadable Sample Title Table';

/*Data for the table `downloadable_sample_title` */



/*Table structure for table `eav_attribute` */


CREATE TABLE `eav_attribute` (
  `attribute_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Attribute Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_code` varchar(255) NOT NULL COMMENT 'Attribute Code',
  `attribute_model` varchar(255) DEFAULT NULL COMMENT 'Attribute Model',
  `backend_model` varchar(255) DEFAULT NULL COMMENT 'Backend Model',
  `backend_type` varchar(8) NOT NULL DEFAULT 'static' COMMENT 'Backend Type',
  `backend_table` varchar(255) DEFAULT NULL COMMENT 'Backend Table',
  `frontend_model` varchar(255) DEFAULT NULL COMMENT 'Frontend Model',
  `frontend_input` varchar(50) DEFAULT NULL COMMENT 'Frontend Input',
  `frontend_label` varchar(255) DEFAULT NULL COMMENT 'Frontend Label',
  `frontend_class` varchar(255) DEFAULT NULL COMMENT 'Frontend Class',
  `source_model` varchar(255) DEFAULT NULL COMMENT 'Source Model',
  `is_required` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Defines Is Required',
  `is_user_defined` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Defines Is User Defined',
  `default_value` text COMMENT 'Default Value',
  `is_unique` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Defines Is Unique',
  `note` varchar(255) DEFAULT NULL COMMENT 'Note',
  PRIMARY KEY (`attribute_id`),
  UNIQUE KEY `UNQ_EAV_ATTRIBUTE_ENTITY_TYPE_ID_ATTRIBUTE_CODE` (`entity_type_id`,`attribute_code`),
  KEY `IDX_EAV_ATTRIBUTE_ENTITY_TYPE_ID` (`entity_type_id`),
  CONSTRAINT `FK_EAV_ATTRIBUTE_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=954 DEFAULT CHARSET=utf8 COMMENT='Eav Attribute';

/*Data for the table `eav_attribute` */


insert  into `eav_attribute`(`attribute_id`,`entity_type_id`,`attribute_code`,`attribute_model`,`backend_model`,`backend_type`,`backend_table`,`frontend_model`,`frontend_input`,`frontend_label`,`frontend_class`,`source_model`,`is_required`,`is_user_defined`,`default_value`,`is_unique`,`note`) values (1,1,'firstname',NULL,NULL,'varchar',NULL,NULL,'text','First Name',NULL,NULL,1,0,NULL,0,NULL),(2,1,'lastname',NULL,NULL,'varchar',NULL,NULL,'text','Last Name',NULL,NULL,1,0,NULL,0,NULL),(3,1,'email',NULL,NULL,'static',NULL,NULL,'text','Email','validate-email',NULL,1,0,NULL,0,NULL),(4,1,'password_hash',NULL,'customer/customer_attribute_backend_password','varchar',NULL,NULL,'hidden',NULL,NULL,NULL,0,0,NULL,0,NULL),(7,1,'default_billing',NULL,'customer/customer_attribute_backend_billing','int',NULL,NULL,'text','Default Billing Address',NULL,NULL,0,0,NULL,0,NULL),(8,1,'default_shipping',NULL,'customer/customer_attribute_backend_shipping','int',NULL,NULL,'text','Default Shipping Address',NULL,NULL,0,0,NULL,0,NULL),(9,2,'firstname',NULL,NULL,'varchar',NULL,NULL,'text','First Name',NULL,NULL,1,0,NULL,0,NULL),(10,2,'lastname',NULL,NULL,'varchar',NULL,NULL,'text','Last Name',NULL,NULL,1,0,NULL,0,NULL),(11,2,'country_id',NULL,NULL,'varchar',NULL,NULL,'select','Country','countries input-text','customer/entity_address_attribute_source_country',1,0,NULL,0,NULL),(12,2,'region',NULL,'customer/entity_address_attribute_backend_region','varchar',NULL,NULL,'text','State/Province','regions',NULL,0,0,NULL,0,NULL),(13,2,'region_id',NULL,NULL,'int',NULL,NULL,'hidden','State/Province',NULL,'customer/entity_address_attribute_source_region',0,0,NULL,0,NULL),(14,2,'postcode',NULL,NULL,'varchar',NULL,NULL,'text','Zip/Postal Code',NULL,NULL,1,0,NULL,0,NULL),(15,2,'city',NULL,NULL,'varchar',NULL,NULL,'text','City',NULL,NULL,1,0,NULL,0,NULL),(16,2,'street',NULL,'customer/entity_address_attribute_backend_street','text',NULL,NULL,'multiline','Street Address',NULL,NULL,1,0,NULL,0,NULL),(17,2,'telephone',NULL,NULL,'varchar',NULL,NULL,'text','Telephone',NULL,NULL,1,0,NULL,0,NULL),(18,2,'fax',NULL,NULL,'varchar',NULL,NULL,'text','Fax',NULL,NULL,0,0,NULL,0,NULL),(19,3,'method_type',NULL,'','int','','','select','Payment Method','','',1,0,'',0,''),(95,2,'company',NULL,NULL,'varchar',NULL,NULL,'text','Company',NULL,NULL,0,0,NULL,0,NULL),(96,10,'name',NULL,'','varchar','','','text','Name',NULL,'',1,0,'',0,''),(97,10,'description',NULL,'','text','','','textarea','Description','','',1,0,'',0,''),(98,10,'sku',NULL,'catalog/product_attribute_backend_sku','static','','','text','SKU',NULL,'',1,0,'',1,''),(99,10,'price',NULL,'catalog/product_attribute_backend_price','decimal','','','price','Price','','',1,0,'',0,''),(100,10,'cost',NULL,'catalog/product_attribute_backend_price','decimal','','','price','Cost',NULL,'',0,1,'',0,''),(101,10,'weight',NULL,'','decimal','','','text','Weight','','',1,0,'',0,''),(102,10,'manufacturer',NULL,'','int','','','select','Manufacturer','','',0,1,'',0,''),(103,10,'meta_title',NULL,'','varchar','','','text','Meta Title',NULL,'',0,0,'',0,''),(104,10,'meta_keyword',NULL,'','text','','','textarea','Meta Keywords','','',0,0,'',0,''),(105,10,'meta_description',NULL,'','varchar','','','textarea','Meta Description','validate-length maximum-length-255','',0,0,'',0,'Maximum 255 chars'),(106,10,'image',NULL,'','varchar','','catalog/product_attribute_frontend_image','media_image','Base Image','','',0,0,'',0,''),(107,10,'shoe_type',NULL,NULL,'int',NULL,NULL,'select','Shoe Type','','eav/entity_attribute_source_table',0,1,NULL,0,''),(109,10,'small_image',NULL,'','varchar','','catalog/product_attribute_frontend_image','media_image','Small Image','','',0,0,'',0,''),(110,10,'old_id',NULL,'','int','','','','',NULL,'',0,0,'',0,''),(111,9,'name',NULL,'','varchar','','','text','Name',NULL,'',1,0,'',0,''),(112,9,'description',NULL,'','text','','','textarea','Description',NULL,'',0,0,'',0,''),(113,9,'image',NULL,'catalog/category_attribute_backend_image','varchar','','','image','Image',NULL,'',0,0,'',0,''),(114,9,'meta_title',NULL,'','varchar','','','text','Page Title',NULL,'',0,0,'',0,''),(115,9,'meta_keywords',NULL,'','text','','','textarea','Meta Keywords',NULL,'',0,0,'',0,''),(116,9,'meta_description',NULL,'','text','','','textarea','Meta Description',NULL,'',0,0,'',0,''),(117,9,'landing_page',NULL,'','int','','','select','CMS Block',NULL,'catalog/category_attribute_source_page',0,0,'',0,''),(118,9,'display_mode',NULL,'','varchar','','','select','Display Mode',NULL,'catalog/category_attribute_source_mode',0,0,'',0,''),(119,9,'is_active',NULL,'','int','','','select','Is Active',NULL,'eav/entity_attribute_source_boolean',1,0,'',0,''),(120,9,'is_anchor',NULL,'','int','','','select','Is Anchor',NULL,'eav/entity_attribute_source_boolean',0,0,'',0,''),(121,9,'all_children',NULL,'','text','','','','',NULL,'',0,0,'',0,''),(122,9,'path_in_store',NULL,'','text','','','','',NULL,'',0,0,'',0,''),(123,9,'children',NULL,'','text','','','','',NULL,'',0,0,'',0,''),(194,4,'grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(195,4,'currency_rate',NULL,NULL,'decimal',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(196,4,'weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(197,4,'tax_percent',NULL,NULL,'decimal',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(198,4,'subtotal',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(199,4,'discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(200,4,'tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(201,4,'shipping_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(203,4,'custbalance_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(204,4,'quote_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(205,4,'customer_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(207,4,'currency_base_id',NULL,NULL,'int',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(208,4,'shipping_description',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(209,4,'real_order_id',NULL,NULL,'varchar',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(210,4,'remote_ip',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(211,4,'currency_code',NULL,NULL,'varchar',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(212,4,'coupon_code',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(214,4,'shipping_method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(215,4,'status',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(216,4,'shipping_address_id',NULL,'sales_entity/order_attribute_backend_shipping','int','','','text','',NULL,'',1,0,'',0,''),(217,4,'billing_address_id',NULL,'sales_entity/order_attribute_backend_billing','int','','','text','',NULL,'',1,0,'',0,''),(218,6,'region_id',NULL,'','int','','','text','State/Province',NULL,'',1,0,'',0,''),(219,6,'country_id',NULL,'','varchar','','','text','Country',NULL,'',1,0,'',0,''),(220,6,'address_id',NULL,NULL,'int',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(221,6,'customer_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(222,6,'street',NULL,'','varchar','','','text','Street Address',NULL,'',1,0,'',0,''),(223,6,'email',NULL,'','varchar','','','text','Email',NULL,'',1,0,'',0,''),(224,6,'firstname',NULL,'','varchar','','','text','First Name',NULL,'',1,0,'',0,''),(225,6,'lastname',NULL,'','varchar','','','text','Last Name',NULL,'',1,0,'',0,''),(226,6,'company',NULL,'','varchar','','','text','Company',NULL,'',1,0,'',0,''),(227,6,'city',NULL,'','varchar','','','text','City',NULL,'',1,0,'',0,''),(228,6,'region',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(229,6,'postcode',NULL,'','varchar','','','text','Zip/Postal Code',NULL,'',1,0,'',0,''),(230,6,'telephone',NULL,'','varchar','','','text','Telephone',NULL,'',1,0,'',0,''),(231,6,'fax',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(232,6,'tax_id',NULL,NULL,'varchar',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(233,6,'address_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(234,7,'weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(235,7,'qty',NULL,NULL,'decimal',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(236,7,'qty_backordered',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(237,7,'qty_canceled',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(238,7,'qty_shipped',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(239,7,'qty_returned',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(240,7,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(241,7,'tier_price',NULL,NULL,'decimal',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(242,7,'base_cost',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(243,7,'discount_percent',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(244,7,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(245,7,'tax_percent',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(246,7,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(247,7,'row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(248,7,'row_weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(249,7,'product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(250,7,'image',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(251,7,'name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(252,7,'model',NULL,NULL,'varchar',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(253,8,'cc_exp_month',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(254,8,'cc_exp_year',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(255,8,'cc_raw_request',NULL,NULL,'text',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(256,8,'cc_raw_response',NULL,NULL,'text',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(257,8,'method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(258,8,'po_number',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(259,8,'cc_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(260,8,'cc_number_enc',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(261,8,'cc_last4',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(262,8,'cc_owner',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(263,8,'cc_trans_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(264,8,'cc_approval',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(265,8,'cc_avs_status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(266,8,'cc_cid_status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(267,5,'status',NULL,NULL,'varchar',NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,''),(268,5,'comments',NULL,NULL,'text',NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,''),(270,10,'tier_price',NULL,'catalog/product_attribute_backend_tierprice','decimal','','','text','Tier Price','','',0,0,'',0,''),(271,10,'gallery',NULL,'','varchar','','','gallery','Image Gallery',NULL,'',0,0,'',0,''),(272,10,'color',NULL,'','int','','','select','Color','','',0,1,'',0,''),(273,10,'status',NULL,'','int','','','select','Status','','catalog/product_status',1,0,'',0,''),(274,10,'tax_class_id',NULL,'','int','','','select','Tax Class','','tax/class_source_product',1,0,'',0,''),(275,11,'entity_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(276,11,'is_active',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(277,11,'customer_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(278,11,'remote_ip',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(279,11,'checkout_method',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(280,11,'password_hash',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(281,11,'quote_status_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(282,11,'billing_address_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(283,11,'converted_at',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(284,11,'coupon_code',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(285,11,'giftcert_code',NULL,'','varchar','','','text','Gift certificate',NULL,'',1,0,'',0,''),(286,11,'custbalance_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(287,11,'base_currency_code',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(288,11,'store_currency_code',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(289,11,'quote_currency_code',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(290,11,'store_to_base_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(291,11,'store_to_quote_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(292,11,'grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(293,11,'orig_order_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(294,11,'applied_rule_ids',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(295,11,'is_virtual',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(296,11,'is_multi_shipping',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(297,11,'is_multi_payment',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(298,12,'entity_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(299,12,'parent_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(300,12,'address_type',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(301,12,'customer_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(302,12,'customer_address_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(303,12,'email',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(304,12,'firstname',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(305,12,'lastname',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(306,12,'company',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(307,12,'street',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(308,12,'city',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(309,12,'region',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(310,12,'region_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(311,12,'postcode',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(312,12,'country_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(313,12,'telephone',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(314,12,'fax',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(315,12,'same_as_billing',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(316,12,'weight',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(317,12,'shipping_method',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(318,12,'shipping_description',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(319,12,'subtotal',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(320,12,'tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(321,12,'shipping_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(322,12,'discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(323,12,'custbalance_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(324,12,'grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(325,12,'customer_notes',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(326,13,'parent_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(327,13,'code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(328,13,'carrier',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(329,13,'carrier_title',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(330,13,'method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(331,13,'method_description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(332,13,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(333,13,'error_message',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(334,14,'parent_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(335,14,'quote_item_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(336,14,'qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(337,14,'discount_percent',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(338,14,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(339,14,'tax_percent',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(340,14,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(341,14,'row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(342,14,'row_weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(343,15,'parent_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(344,15,'product_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(345,15,'parent_product_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(346,15,'sku',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(347,15,'image',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(348,15,'name',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(349,15,'description',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(350,15,'weight',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(351,15,'qty',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(352,15,'price',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(353,15,'discount_percent',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(354,15,'discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(355,15,'tax_percent',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(356,15,'tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(357,15,'row_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(358,15,'row_weight',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(359,16,'parent_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(360,16,'customer_payment_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(361,16,'method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(362,16,'po_number',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(363,16,'cc_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(364,16,'cc_number_enc',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(365,16,'cc_last4',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(366,16,'cc_owner',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(367,16,'cc_exp_month',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(368,16,'cc_exp_year',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(369,16,'cc_cid_enc',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(370,4,'entity_id',NULL,'sales_entity/order_attribute_backend_parent','static','','','text','',NULL,'',1,0,'',0,''),(372,4,'quote_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(373,4,'base_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(374,4,'store_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(375,4,'order_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(376,4,'store_to_base_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(377,4,'store_to_order_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(378,4,'is_virtual',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(379,4,'is_multi_payment',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(380,4,'total_paid',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(381,4,'total_due',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(383,4,'total_qty_ordered',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(384,6,'parent_id',NULL,'sales_entity/order_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(385,6,'quote_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(386,6,'customer_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(387,7,'parent_id',NULL,'sales_entity/order_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(388,7,'quote_item_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(389,7,'sku',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(390,7,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(391,7,'qty_ordered',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(392,8,'parent_id',NULL,'sales_entity/order_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(393,8,'quote_payment_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(394,8,'customer_payment_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(395,8,'amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(396,8,'cc_status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(397,8,'cc_status_description',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(398,8,'cc_debug_request_body',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(399,8,'cc_debug_response_body',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(400,8,'cc_debug_response_serialized',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(401,8,'anet_trans_method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(402,8,'echeck_routing_number',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(403,8,'echeck_bank_name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(404,8,'echeck_account_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(405,8,'echeck_account_name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(406,8,'echeck_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(407,17,'parent_id',NULL,'sales_entity/order_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(410,17,'is_customer_notified',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(411,18,'entity_id',NULL,'sales_entity/order_invoice_attribute_backend_parent','static','','','text','',NULL,'',1,0,'',0,''),(412,18,'invoice_type',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(413,18,'customer_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(414,18,'order_id',NULL,'sales_entity/order_invoice_attribute_backend_order','int','','','text','',NULL,'',1,0,'',0,''),(415,18,'real_order_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(416,18,'invoice_status_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(417,18,'billing_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(418,18,'shipping_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(419,18,'base_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(420,18,'store_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(421,18,'order_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(422,18,'store_to_base_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(423,18,'store_to_order_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(424,18,'is_virtual',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(425,18,'subtotal',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(426,18,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(427,18,'shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(428,18,'grand_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(429,18,'total_paid',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(430,18,'total_due',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(431,18,'total_qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(432,19,'parent_id',NULL,'sales_entity/invoice_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(433,19,'order_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(434,19,'address_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(435,19,'customer_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(436,19,'customer_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(437,19,'email',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(438,19,'firstname',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(439,19,'lastname',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(440,19,'company',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(441,19,'street',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(442,19,'city',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(443,19,'region',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(444,19,'region_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(445,19,'postcode',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(446,19,'country_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(447,19,'telephone',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(448,19,'fax',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(449,20,'parent_id',NULL,'sales_entity/order_invoice_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(450,20,'order_item_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(451,20,'product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(452,20,'name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(453,20,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(454,20,'sku',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(455,20,'qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(456,20,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(457,20,'base_cost',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(458,20,'row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(459,20,'shipment_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(460,21,'parent_id',NULL,'sales_entity/invoice_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(461,21,'order_payment_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(462,21,'amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(463,21,'method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(464,21,'cc_trans_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(465,21,'cc_approval',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(466,21,'cc_debug_request',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(467,21,'cc_debug_response',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(468,22,'parent_id',NULL,'sales_entity/invoice_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(469,22,'order_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(470,22,'shipping_method',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(471,22,'tracking_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(472,22,'shipment_status_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(473,11,'customer_tax_class_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(474,15,'tax_class_id',NULL,'','int','','','select','Tax Class',NULL,'tax/class_source_product',0,0,'',0,''),(475,14,'tax_class_id',NULL,'','int','','','select','Tax Class',NULL,'tax/class_source_product',0,0,'',0,''),(476,10,'shape',NULL,NULL,'text',NULL,NULL,'text','shape','',NULL,0,1,'',0,''),(477,1,'created_in',NULL,NULL,'varchar',NULL,NULL,'text','Created From',NULL,NULL,0,0,NULL,0,NULL),(478,1,'store_id',NULL,'customer/customer_attribute_backend_store','static',NULL,NULL,'select','Create In',NULL,'customer/customer_attribute_source_store',1,0,NULL,0,NULL),(479,9,'url_key',NULL,'catalog/category_attribute_backend_urlkey','varchar','','','text','URL Key',NULL,'',0,0,'',0,''),(481,10,'url_key',NULL,'catalog/product_attribute_backend_urlkey','varchar','','','text','URL Key',NULL,'',0,0,'',0,''),(482,15,'applied_rule_ids',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(483,7,'applied_rule_ids',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(488,12,'free_shipping',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(489,14,'free_shipping',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(490,15,'free_shipping',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(491,4,'applied_rule_ids',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(492,10,'in_depth',NULL,NULL,'text',NULL,NULL,'textarea','In Depth',NULL,NULL,1,1,NULL,0,NULL),(493,10,'thumbnail',NULL,'','varchar','','catalog/product_attribute_frontend_image','media_image','Thumbnail','','',0,0,'',0,''),(494,10,'dimension',NULL,NULL,'text',NULL,NULL,'textarea','Dimensions','','',0,1,NULL,0,''),(495,10,'model',NULL,NULL,'text',NULL,NULL,'text','Model','','',1,1,NULL,0,''),(496,10,'activation_information',NULL,NULL,'text',NULL,NULL,'textarea','Activation Information','',NULL,0,1,NULL,0,''),(497,10,'processor',NULL,NULL,'text',NULL,NULL,'text','Processor','',NULL,0,1,NULL,0,''),(498,10,'memory',NULL,NULL,'text',NULL,NULL,'text','Memory','','',0,1,NULL,0,''),(499,10,'hardrive',NULL,NULL,'text',NULL,NULL,'text','Hardrive','',NULL,0,1,NULL,0,''),(500,10,'screensize',NULL,NULL,'text',NULL,NULL,'text','Screensize','',NULL,0,1,NULL,0,''),(501,10,'gender',NULL,NULL,'int',NULL,NULL,'select','Gender','','eav/entity_attribute_source_table',1,1,NULL,0,''),(502,10,'shoe_size',NULL,NULL,'int',NULL,NULL,'select','Shoe Size','','eav/entity_attribute_source_table',1,1,NULL,0,''),(503,10,'minimal_price',NULL,'','decimal','','','price','Minimal Price',NULL,'',0,0,'',0,''),(504,12,'collect_shipping_rates',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(505,15,'super_product_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(506,10,'short_description',NULL,'','text','','','textarea','Short Description','','',1,0,'',0,''),(507,10,'country_orgin',NULL,NULL,'text',NULL,NULL,'text','Country of Origin','',NULL,0,1,NULL,0,''),(508,10,'room',NULL,NULL,'int',NULL,NULL,'select','Room','','eav/entity_attribute_source_table',0,1,NULL,0,''),(509,10,'finish',NULL,NULL,'text',NULL,NULL,'text','Finish','','',0,1,NULL,0,''),(510,10,'computer_manufacturers',NULL,NULL,'int',NULL,NULL,'select','Brand','','eav/entity_attribute_source_table',0,1,'',0,''),(513,10,'megapixels',NULL,NULL,'int',NULL,NULL,'select','Megapixels','','',0,1,NULL,0,''),(514,9,'page_layout',NULL,'','varchar','','','select','Page Layout',NULL,'catalog/category_attribute_source_layout',0,0,'',0,''),(515,14,'product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(516,14,'super_product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(517,14,'parent_product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(518,14,'sku',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(519,14,'image',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(520,14,'name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(521,14,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(522,14,'weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(523,14,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(524,14,'applied_rule_ids',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(525,10,'shirt_size',NULL,NULL,'int',NULL,NULL,'select','Shirt Size','','eav/entity_attribute_source_table',1,1,NULL,0,''),(526,10,'visibility',NULL,'','int','','','select','Visibility','','catalog/product_visibility',1,0,'4',0,''),(527,16,'paypal_payer_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(528,16,'paypal_payer_status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(529,16,'paypal_correlation_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(530,9,'custom_layout_update',NULL,'catalog/attribute_backend_customlayoutupdate','text','','','textarea','Custom Layout Update',NULL,'',0,0,'',0,''),(531,10,'custom_layout_update',NULL,'catalog/attribute_backend_customlayoutupdate','text','','','textarea','Custom Layout Update',NULL,'',0,0,'',0,''),(532,1,'group_id',NULL,NULL,'static',NULL,NULL,'select','Customer Group',NULL,'customer/customer_attribute_source_group',1,0,NULL,0,NULL),(533,9,'url_path',NULL,'','varchar','','','','',NULL,'',0,0,'',0,''),(534,11,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(535,12,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(536,15,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(537,4,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(538,6,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(539,7,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(541,14,'gift_message_id',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(542,7,'gift_message_aviable',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(543,11,'customer_group_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(544,11,'customer_email',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(545,11,'customer_note',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(546,11,'customer_note_notify',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(547,4,'customer_group_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(548,4,'customer_email',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(549,4,'customer_note',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(550,4,'customer_note_notify',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(551,15,'custom_price',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(552,14,'custom_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(553,4,'state',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(554,4,'relation_parent_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(555,4,'relation_parent_real_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(556,4,'relation_child_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(557,4,'relation_child_real_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(558,4,'tracking_numbers',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(559,17,'status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(560,17,'comment',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(561,7,'gift_message_available',NULL,'','int','','','text','',NULL,'',0,0,'',0,''),(562,10,'gift_message_available',NULL,'catalog/product_attribute_backend_boolean','varchar','','','select','Allow Gift Message',NULL,'eav/entity_attribute_source_boolean',0,0,'',0,''),(563,9,'custom_design',NULL,'','varchar','','','select','Custom Design',NULL,'core/design_source_design',0,0,'',0,''),(565,9,'custom_design_from',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Active From',NULL,'',0,0,'',0,''),(566,9,'custom_design_to',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Active To',NULL,'',0,0,'',0,''),(567,10,'special_price',NULL,'catalog/product_attribute_backend_price','decimal','','','price','Special Price','','',0,0,'',0,''),(568,10,'special_from_date',NULL,'catalog/product_attribute_backend_startdate','datetime','','','date','Special Price From Date',NULL,'',0,0,'',0,''),(569,10,'special_to_date',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Special Price To Date',NULL,'',0,0,'',0,''),(570,10,'url_path',NULL,'','varchar','','','','',NULL,'',0,0,'',0,''),(571,10,'custom_design',NULL,'','varchar','','','select','Custom Design',NULL,'core/design_source_design',0,0,'',0,''),(572,10,'custom_design_from',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Active From',NULL,'',0,0,'',0,''),(573,10,'custom_design_to',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Active To',NULL,'',0,0,'',0,''),(574,11,'customer_firstname',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(575,11,'customer_lastname',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(576,12,'subtotal_with_discount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(577,14,'no_discount',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(578,14,'row_total_with_discount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(579,15,'no_discount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(580,15,'row_total_with_discount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(581,16,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(582,4,'is_hold',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(583,4,'total_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(584,4,'customer_firstname',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(585,4,'customer_lastname',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(586,7,'super_product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(587,7,'parent_product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(588,7,'qty_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(589,7,'qty_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(590,7,'original_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(591,7,'discount_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(592,7,'tax_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(593,7,'row_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(594,7,'invoiced_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(595,7,'amount_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(596,8,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(597,8,'amount_ordered',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(598,8,'amount_authorized',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(599,8,'amount_paid',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(600,8,'amount_canceled',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(601,8,'amount_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(602,8,'shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(603,8,'shipping_captured',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(604,8,'shipping_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(605,18,'state',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(606,18,'transaction_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(607,18,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(608,18,'can_void_flag',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(609,20,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(610,20,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(611,23,'parent_id',NULL,'sales_entity/order_invoice_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(612,23,'comment',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(613,23,'is_customer_notified',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(614,24,'entity_id',NULL,'sales_entity/order_shipment_attribute_backend_parent','static','','','text','',NULL,'',1,0,'',0,''),(615,24,'customer_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(616,24,'order_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(617,24,'shipment_status',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(618,24,'billing_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(619,24,'shipping_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(620,24,'total_qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(621,24,'total_weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(622,25,'parent_id',NULL,'sales_entity/order_shipment_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(623,25,'order_item_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(624,25,'product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(625,25,'name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(626,25,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(627,25,'sku',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(628,25,'qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(629,25,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(630,25,'weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(631,25,'row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(632,26,'parent_id',NULL,'sales_entity/order_shipment_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(633,26,'comment',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(634,26,'is_customer_notified',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(635,27,'parent_id',NULL,'sales_entity/order_shipment_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(636,27,'order_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(637,27,'number',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(638,27,'carrier_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(639,27,'title',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(640,27,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(641,27,'qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(642,27,'weight',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(643,28,'entity_id',NULL,'sales_entity/order_creditmemo_attribute_backend_parent','static','','','text','',NULL,'',1,0,'',0,''),(644,28,'state',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(645,28,'transaction_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(646,28,'order_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(647,28,'creditmemo_status',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(648,28,'billing_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(649,28,'shipping_address_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(650,28,'base_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(651,28,'store_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(652,28,'order_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(653,28,'store_to_base_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(654,28,'store_to_order_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(655,28,'subtotal',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(656,28,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(657,28,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(658,28,'shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(659,28,'adjustment',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(660,28,'adjustment_positive',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(661,28,'adjustment_negative',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(662,28,'grand_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(663,29,'parent_id',NULL,'sales_entity/order_creditmemo_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(664,29,'order_item_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(665,29,'product_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(666,29,'name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(667,29,'description',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(668,29,'sku',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(669,29,'qty',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(670,29,'price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(671,29,'base_cost',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(672,29,'discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(673,29,'tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(674,29,'row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(675,30,'parent_id',NULL,'sales_entity/order_creditmemo_attribute_backend_child','static','','','text','',NULL,'',1,0,'',0,''),(676,30,'comment',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(677,30,'is_customer_notified',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(678,11,'store_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(679,11,'customer_is_guest',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(680,14,'is_qty_decimal',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(681,15,'is_qty_decimal',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(682,16,'cc_ss_issue',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(683,16,'cc_ss_start_month',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(684,16,'cc_ss_start_year',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(685,4,'store_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(686,4,'hold_before_status',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(687,4,'hold_before_state',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(688,4,'ext_order_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(689,4,'ext_customer_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(690,4,'total_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(691,4,'adjustment_positive',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(692,4,'adjustment_negative',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(693,4,'customer_is_guest',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(694,7,'is_qty_decimal',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(695,8,'cc_ss_issue',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(696,8,'cc_ss_start_month',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(697,8,'cc_ss_start_year',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(698,18,'is_used_for_refund',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(699,28,'invoice_id',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(700,1,'website_id',NULL,'customer/customer_attribute_backend_website','static',NULL,NULL,'select','Associate to Website',NULL,'customer/customer_attribute_source_website',1,0,NULL,0,NULL),(701,9,'path',NULL,'','static','','','','Path',NULL,'',0,0,'',0,''),(702,9,'position',NULL,'','static','','','','Position',NULL,'',0,0,'',0,''),(703,10,'media_gallery',NULL,'catalog/product_attribute_backend_media','varchar','','','gallery','Media Gallery',NULL,'',1,0,'',0,''),(704,10,'news_from_date',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Set Product as New from Date',NULL,'',0,0,'',0,''),(705,10,'news_to_date',NULL,'eav/entity_attribute_backend_datetime','datetime','','','date','Set Product as New to Date',NULL,'',0,0,'',0,''),(707,11,'base_grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(708,12,'base_subtotal',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(709,12,'base_subtotal_with_discount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(710,12,'base_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(711,12,'base_shipping_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(712,12,'base_discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(713,12,'base_custbalance_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(714,12,'base_grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(715,14,'base_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(716,14,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(717,14,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(718,14,'base_row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(719,14,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(720,15,'base_price',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(721,15,'base_discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(722,15,'base_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(723,15,'base_row_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(724,15,'additional_data',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(725,4,'store_name',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(726,4,'total_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(727,4,'total_online_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(728,4,'total_offline_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(729,4,'base_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(730,4,'base_shipping_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(731,4,'base_discount_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(733,4,'base_custbalance_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(734,4,'base_subtotal',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(735,4,'base_grand_total',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(736,4,'base_total_paid',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(737,4,'base_total_due',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(738,4,'base_total_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(739,4,'base_total_qty_ordered',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(740,4,'base_total_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(741,4,'base_total_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(742,4,'base_total_online_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(743,4,'base_total_offline_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(744,4,'base_adjustment_positive',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(745,4,'base_adjustment_negative',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(746,4,'email_sent',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(747,7,'base_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(748,7,'base_original_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(749,7,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(750,7,'base_discount_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(751,7,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(752,7,'base_tax_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(753,7,'base_row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(754,7,'base_row_invoiced',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(755,7,'base_invoiced_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(756,7,'base_amount_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(757,7,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(758,8,'base_amount_ordered',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(759,8,'base_amount_authorized',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(760,8,'base_amount_paid',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(761,8,'base_amount_canceled',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(762,8,'base_amount_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(763,8,'base_shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(764,8,'base_shipping_captured',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(765,8,'base_shipping_refunded',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(766,18,'base_subtotal',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(767,18,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(768,18,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(769,18,'base_shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(770,18,'base_grand_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(771,18,'email_sent',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(772,20,'base_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(773,20,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(774,20,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(775,20,'base_row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(776,20,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(777,24,'email_sent',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(778,25,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(779,28,'base_subtotal',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(780,28,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(781,28,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(782,28,'base_shipping_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(783,28,'base_adjustment',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(784,28,'base_adjustment_positive',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(785,28,'base_adjustment_negative',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(786,28,'base_grand_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(787,28,'email_sent',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(788,29,'base_price',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(789,29,'base_discount_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(790,29,'base_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(791,29,'base_row_total',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(792,29,'additional_data',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(793,11,'items_count',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(794,11,'items_qty',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(795,4,'edit_increment',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(796,4,'original_increment_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(797,4,'subtotal_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(798,4,'subtotal_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(799,4,'tax_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(800,4,'tax_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(801,4,'shipping_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(802,4,'shipping_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(803,4,'base_subtotal_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(804,4,'base_subtotal_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(805,4,'base_tax_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(806,4,'base_tax_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(807,4,'base_shipping_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(808,4,'base_shipping_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(809,4,'subtotal_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(810,4,'tax_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(811,4,'shipping_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(812,4,'base_subtotal_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(813,4,'base_tax_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(814,4,'base_shipping_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(815,12,'save_in_address_book',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(816,11,'reserved_order_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(817,8,'last_trans_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(818,12,'shipping_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(819,12,'base_shipping_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(820,4,'shipping_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(821,4,'base_shipping_tax_amount',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(822,18,'shipping_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(823,18,'base_shipping_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(824,28,'shipping_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(825,28,'base_shipping_tax_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(826,1,'prefix',NULL,NULL,'varchar',NULL,NULL,'text','Prefix',NULL,NULL,0,0,NULL,0,NULL),(827,1,'middlename',NULL,NULL,'varchar',NULL,NULL,'text','Middle Name/Initial',NULL,NULL,0,0,NULL,0,NULL),(828,1,'suffix',NULL,NULL,'varchar',NULL,NULL,'text','Suffix',NULL,NULL,0,0,NULL,0,NULL),(829,1,'dob',NULL,'eav/entity_attribute_backend_datetime','datetime',NULL,'eav/entity_attribute_frontend_datetime','date','Date Of Birth',NULL,NULL,0,0,NULL,0,NULL),(830,1,'taxvat',NULL,NULL,'varchar',NULL,NULL,'text','Tax/VAT number',NULL,NULL,0,0,NULL,0,NULL),(831,1,'confirmation',NULL,NULL,'varchar',NULL,NULL,'text','Is confirmed',NULL,NULL,0,0,NULL,0,NULL),(832,2,'prefix',NULL,NULL,'varchar',NULL,NULL,'text','Prefix',NULL,NULL,0,0,NULL,0,NULL),(833,2,'middlename',NULL,NULL,'varchar',NULL,NULL,'text','Middle Name/Initial',NULL,NULL,0,0,NULL,0,NULL),(834,2,'suffix',NULL,NULL,'varchar',NULL,NULL,'text','Suffix',NULL,NULL,0,0,NULL,0,NULL),(835,9,'level',NULL,'','static','','','','Level',NULL,'',0,0,'',0,''),(836,10,'options_container',NULL,'','varchar','','','select','Display Product Options In',NULL,'catalog/entity_product_attribute_design_options_container',0,0,'container2',0,''),(837,10,'required_options',NULL,'','static','','','text','',NULL,'',0,0,'',0,''),(838,10,'has_options',NULL,'','static','','','text','',NULL,'',0,0,'',0,''),(839,4,'customer_prefix',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(840,4,'customer_middlename',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(841,4,'customer_suffix',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(842,6,'prefix',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(843,6,'middlename',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(844,6,'suffix',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(845,11,'customer_prefix',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(846,11,'customer_middlename',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(847,11,'customer_suffix',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(848,12,'prefix',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(849,12,'middlename',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(850,12,'suffix',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(851,11,'customer_dob',NULL,'eav/entity_attribute_backend_datetime','static','','','text','',NULL,'',1,0,'',0,''),(852,4,'customer_dob',NULL,'','datetime','','','text','',NULL,'',1,0,'',0,''),(853,7,'is_virtual',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(854,7,'product_type',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(855,18,'store_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(856,28,'store_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(857,24,'store_id',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(858,4,'customer_taxvat',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(859,10,'price_type',NULL,'','int','','','','',NULL,'',1,0,'',0,''),(860,10,'sku_type',NULL,'','int','','','','',NULL,'',1,0,'',0,''),(861,10,'weight_type',NULL,'','int','','','','',NULL,'',1,0,'',0,''),(862,10,'price_view',NULL,'','int','','','select','Price View',NULL,'bundle/product_attribute_source_price_view',1,0,'',0,''),(863,10,'shipment_type',NULL,'','int','','','','Shipment',NULL,'',1,0,'',0,''),(864,8,'cybersource_token',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(865,18,'cybersource_token',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(866,28,'cybersource_token',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(867,8,'flo2cash_account_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(868,8,'ideal_issuer_id',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(869,8,'ideal_issuer_title',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(870,8,'ideal_transaction_checked',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(871,8,'paybox_request_number',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(872,8,'paybox_question_number',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(873,10,'max_resolution',NULL,NULL,'varchar',NULL,NULL,'text','Max Resolution','',NULL,0,1,'',0,''),(874,10,'ram_size',NULL,NULL,'varchar',NULL,NULL,'text','RAM SIze','',NULL,0,1,'',0,''),(875,10,'contrast_ratio',NULL,NULL,'int',NULL,NULL,'select','Contrast Ratio','','eav/entity_attribute_source_table',0,1,'',0,''),(876,10,'response_time',NULL,NULL,'varchar',NULL,NULL,'text','Response Time','',NULL,0,1,'',0,''),(877,10,'cpu_speed',NULL,NULL,'int',NULL,NULL,'select','CPU Speed','','eav/entity_attribute_source_table',0,1,'',0,''),(878,10,'harddrive_speed',NULL,NULL,'varchar',NULL,NULL,'text','Disk Speed','',NULL,0,1,'',0,''),(879,10,'image_label',NULL,'','varchar','','','text','Image Label',NULL,'',0,0,'',0,''),(880,10,'small_image_label',NULL,'','varchar','','','text','Small Image Label',NULL,'',0,0,'',0,''),(881,10,'thumbnail_label',NULL,'','varchar','','','text','Thumbnail Label',NULL,'',0,0,'',0,''),(882,4,'can_ship_partially',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(883,4,'can_ship_partially_item',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(884,4,'payment_authorization_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(885,4,'payment_authorization_expiration',NULL,'','int','','','text','',NULL,'',1,0,'',0,''),(886,4,'shipping_tax_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(887,4,'base_shipping_tax_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(888,4,'global_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(889,4,'base_to_global_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(890,4,'base_to_order_rate',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(891,18,'global_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(892,18,'base_to_global_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(893,18,'base_to_order_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(894,28,'global_currency_code',NULL,'','varchar','','','text','',NULL,'',1,0,'',0,''),(895,28,'base_to_global_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(896,28,'base_to_order_rate',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(897,4,'discount_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(898,4,'discount_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(899,4,'discount_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(900,4,'base_discount_refunded',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(901,4,'base_discount_canceled',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(902,4,'base_discount_invoiced',NULL,'','static','','','text','',NULL,'',1,0,'',0,''),(903,10,'enable_googlecheckout',NULL,'','int','','','select','Is Product Available for Purchase with Google Checkout',NULL,'eav/entity_attribute_source_boolean',0,0,'1',0,''),(904,10,'links_purchased_separately',NULL,'','int','','','','Links can be purchased separately',NULL,'',1,0,'',0,''),(905,10,'samples_title',NULL,'','varchar','','','','Samples title',NULL,'',1,0,'',0,''),(906,10,'links_title',NULL,'','varchar','','','','Links title',NULL,'',1,0,'',0,''),(907,29,'base_weee_tax_applied_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(908,29,'base_weee_tax_applied_row_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(909,29,'weee_tax_applied_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(910,29,'weee_tax_applied_row_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(911,20,'base_weee_tax_applied_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(912,20,'base_weee_tax_applied_row_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(913,20,'weee_tax_applied_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(914,20,'weee_tax_applied_row_amount',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(915,20,'weee_tax_applied',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(916,29,'weee_tax_applied',NULL,'','text','','','text','',NULL,'',1,0,'',0,''),(917,29,'weee_tax_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(918,29,'weee_tax_row_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(919,29,'base_weee_tax_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(920,29,'base_weee_tax_row_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(921,20,'weee_tax_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(922,20,'weee_tax_row_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(923,20,'base_weee_tax_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(924,20,'base_weee_tax_row_disposition',NULL,'','decimal','','','text','',NULL,'',1,0,'',0,''),(925,1,'gender',NULL,NULL,'int',NULL,NULL,'select','Gender',NULL,'eav/entity_attribute_source_table',0,0,NULL,0,NULL),(926,1,'created_at',NULL,NULL,'static',NULL,NULL,'date','Created At',NULL,NULL,0,0,NULL,0,NULL),(927,1,'rp_token',NULL,NULL,'varchar',NULL,NULL,'hidden',NULL,NULL,NULL,0,0,NULL,0,NULL),(928,1,'rp_token_created_at',NULL,NULL,'datetime',NULL,NULL,'date',NULL,NULL,NULL,0,0,NULL,0,NULL),(929,9,'available_sort_by',NULL,'catalog/category_attribute_backend_sortby','text',NULL,NULL,'multiselect','Available Product Listing Sort By',NULL,'catalog/category_attribute_source_sortby',1,0,NULL,0,NULL),(930,9,'default_sort_by',NULL,'catalog/category_attribute_backend_sortby','varchar',NULL,NULL,'select','Default Product Listing Sort By',NULL,'catalog/category_attribute_source_sortby',1,0,NULL,0,NULL),(931,10,'page_layout',NULL,NULL,'varchar',NULL,NULL,'select','Page Layout',NULL,'catalog/product_attribute_source_layout',0,0,NULL,0,NULL),(932,10,'created_at',NULL,'eav/entity_attribute_backend_time_created','static',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(933,10,'updated_at',NULL,'eav/entity_attribute_backend_time_updated','static',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(934,9,'include_in_menu',NULL,NULL,'int',NULL,NULL,'select','Include in Navigation Menu',NULL,'eav/entity_attribute_source_boolean',1,0,'1',0,NULL),(935,10,'is_recurring',NULL,NULL,'int',NULL,NULL,'select','Enable Recurring Profile',NULL,'eav/entity_attribute_source_boolean',0,0,NULL,0,'Products with recurring profile participate in catalog as nominal items.'),(936,10,'recurring_profile',NULL,'catalog/product_attribute_backend_recurring','text',NULL,NULL,'text','Recurring Payment Profile',NULL,NULL,0,0,NULL,0,NULL),(937,9,'custom_use_parent_settings',NULL,NULL,'int',NULL,NULL,'select','Use Parent Category Settings',NULL,'eav/entity_attribute_source_boolean',0,0,NULL,0,NULL),(938,9,'custom_apply_to_products',NULL,NULL,'int',NULL,NULL,'select','Apply To Products',NULL,'eav/entity_attribute_source_boolean',0,0,NULL,0,NULL),(939,9,'filter_price_range',NULL,NULL,'int',NULL,NULL,'text','Layered Navigation Price Step',NULL,NULL,0,0,NULL,0,NULL),(940,10,'country_of_manufacture',NULL,NULL,'varchar',NULL,NULL,'select','Country of Manufacture',NULL,'catalog/product_attribute_source_countryofmanufacture',0,0,NULL,0,NULL),(941,10,'msrp_enabled',NULL,'catalog/product_attribute_backend_msrp','varchar',NULL,NULL,'select','Apply MAP',NULL,'catalog/product_attribute_source_msrp_type_enabled',0,0,'2',0,NULL),(942,10,'msrp_display_actual_price_type',NULL,'catalog/product_attribute_backend_boolean','varchar',NULL,NULL,'select','Display Actual Price',NULL,'catalog/product_attribute_source_msrp_type_price',0,0,'4',0,NULL),(943,10,'msrp',NULL,'catalog/product_attribute_backend_price','decimal',NULL,NULL,'price','Manufacturer\'s Suggested Retail Price',NULL,NULL,0,0,NULL,0,NULL),(945,4,'base_total_invoiced_cost',NULL,NULL,'static',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(946,4,'x_forwarded_for',NULL,NULL,'varchar',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(947,4,'protect_code',NULL,NULL,'static',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(948,8,'additional_information',NULL,NULL,'text',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(949,4,'customer_gender',NULL,NULL,'int',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(950,8,'base_amount_paid_online',NULL,NULL,'decimal',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(951,8,'base_amount_refunded_online',NULL,NULL,'decimal',NULL,NULL,'text',NULL,NULL,NULL,1,0,NULL,0,NULL),(952,10,'links_exist',NULL,NULL,'int',NULL,NULL,NULL,NULL,NULL,NULL,0,0,'0',0,NULL),(953,9,'thumbnail',NULL,'catalog/category_attribute_backend_image','varchar',NULL,NULL,'image','Thumbnail Image',NULL,NULL,0,0,NULL,0,NULL);


/*Table structure for table `eav_attribute_group` */


CREATE TABLE `eav_attribute_group` (
  `attribute_group_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Attribute Group Id',
  `attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Set Id',
  `attribute_group_name` varchar(255) NOT NULL COMMENT 'Attribute Group Name',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `default_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Default Id',
  PRIMARY KEY (`attribute_group_id`),
  UNIQUE KEY `UNQ_EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME` (`attribute_set_id`,`attribute_group_name`),
  KEY `IDX_EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_SORT_ORDER` (`attribute_set_id`,`sort_order`),
  CONSTRAINT `FK_EAV_ATTR_GROUP_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID` FOREIGN KEY (`attribute_set_id`) REFERENCES `eav_attribute_set` (`attribute_set_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Group';

/*Data for the table `eav_attribute_group` */


insert  into `eav_attribute_group`(`attribute_group_id`,`attribute_set_id`,`attribute_group_name`,`sort_order`,`default_id`) values (1,1,'General',4,1),(2,2,'General',4,1),(3,3,'General',4,1),(4,9,'General',1,1),(7,12,'General Information',10,1),(9,9,'Prices',2,0),(12,9,'Meta Information',3,0),(15,9,'Images',4,0),(17,23,'General',3,1),(18,24,'General',3,1),(19,25,'General',3,1),(20,26,'General',3,1),(21,27,'General',3,1),(22,28,'General',3,1),(23,18,'General',2,1),(24,20,'General',2,1),(25,21,'General',2,1),(26,22,'General',2,1),(27,29,'General',3,1),(28,30,'General',3,1),(29,31,'General',3,1),(30,32,'General',3,1),(31,33,'General',3,1),(32,34,'General',3,1),(47,38,'General',1,1),(48,38,'Meta Information',3,0),(49,38,'Prices',2,0),(50,38,'Images',5,0),(51,39,'General',43,1),(52,39,'Meta Information',45,0),(53,39,'Prices',44,0),(54,39,'Images',46,0),(55,40,'General',43,1),(56,40,'Meta Information',45,0),(57,40,'Prices',44,0),(58,40,'Images',46,0),(59,41,'General',1,1),(60,41,'Meta Information',3,0),(61,41,'Prices',2,0),(62,41,'Images',4,0),(63,42,'General',43,1),(64,42,'Meta Information',45,0),(65,42,'Images',46,0),(66,42,'Prices',44,0),(72,44,'General',7,1),(73,44,'Meta Information',2,0),(74,44,'Images',4,0),(75,44,'Prices',5,0),(76,39,'Computer Attributes',48,0),(77,39,'Descriptions',47,0),(78,44,'Descriptions',3,0),(79,44,'Camera Attributes',6,0),(80,45,'General',1,1),(81,45,'Meta Information',3,0),(82,45,'Images',4,0),(83,45,'Prices',2,0),(84,38,'Descriptions',4,0),(85,38,'Cell Phone Attributes',6,0),(87,40,'Descriptions',47,0),(88,40,'Shoe Attributes',48,0),(89,41,'Descriptions',5,0),(90,42,'Descriptions',47,0),(91,42,'Furniture Attributes',48,0),(92,45,'Description',5,0),(93,45,'Shirt Attributes',6,0),(94,41,'T-shirts Attributes',6,0),(95,9,'Description',5,0),(96,46,'General',1,1),(97,46,'Prices',2,0),(98,46,'Meta Information',3,0),(99,46,'Images',4,0),(100,46,'Description',5,0),(118,9,'Design',6,0),(119,44,'Design',8,0),(120,38,'Design',7,0),(121,39,'Design',49,0),(122,42,'Design',49,0),(123,45,'Design',7,0),(124,46,'Design',6,0),(125,40,'Design',49,0),(126,41,'Design',7,0),(128,50,'General',1,1),(129,51,'General',1,1),(130,52,'General',1,1),(131,53,'General',1,1),(132,54,'General',1,1),(133,55,'General',1,1),(134,56,'General',1,1),(135,57,'General',1,1),(136,58,'General',1,1),(137,58,'Prices',2,0),(138,58,'Meta Information',3,0),(139,58,'Images',4,0),(140,58,'Description',5,0),(141,58,'Design',6,0),(142,59,'General',1,1),(143,59,'Prices',2,0),(144,59,'Meta Information',3,0),(145,59,'Images',4,0),(146,59,'Description',5,0),(147,59,'Design',6,0),(148,60,'General',1,1),(149,60,'Prices',2,0),(150,60,'Meta Information',3,0),(151,60,'Images',4,0),(152,60,'Description',5,0),(153,60,'Design',6,0),(154,61,'General',43,1),(155,61,'Prices',44,0),(156,61,'Meta Information',45,0),(157,61,'Images',46,0),(158,61,'Description',47,0),(159,61,'Design',48,0),(160,62,'General',1,1),(161,62,'Prices',2,0),(162,62,'Meta Information',3,0),(163,62,'Images',4,0),(164,62,'Description',5,0),(165,62,'Design',6,0),(166,12,'Display Settings',20,0),(167,12,'Custom Design',30,0),(168,44,'Recurring Profile',9,0),(169,38,'Recurring Profile',8,0),(170,39,'Recurring Profile',50,0),(171,60,'Recurring Profile',7,0),(172,9,'Recurring Profile',7,0),(173,42,'Recurring Profile',50,0),(174,62,'Recurring Profile',7,0),(175,61,'Recurring Profile',49,0),(176,58,'Recurring Profile',7,0),(177,46,'Recurring Profile',7,0),(178,45,'Recurring Profile',8,0),(179,41,'Recurring Profile',8,0),(180,40,'Recurring Profile',50,0),(181,59,'Recurring Profile',7,0),(182,44,'Gift Options',10,0),(183,38,'Gift Options',9,0),(184,39,'Gift Options',51,0),(185,60,'Gift Options',8,0),(186,9,'Gift Options',8,0),(187,42,'Gift Options',51,0),(188,62,'Gift Options',8,0),(189,61,'Gift Options',50,0),(190,58,'Gift Options',8,0),(191,46,'Gift Options',8,0),(192,45,'Gift Options',9,0),(193,41,'Gift Options',9,0),(194,40,'Gift Options',51,0),(195,59,'Gift Options',8,0);


/*Table structure for table `eav_attribute_label` */


CREATE TABLE `eav_attribute_label` (
  `attribute_label_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Attribute Label Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `value` varchar(255) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`attribute_label_id`),
  KEY `IDX_EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ATTRIBUTE_LABEL_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID` (`attribute_id`,`store_id`),
  CONSTRAINT `FK_EAV_ATTRIBUTE_LABEL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Label';

/*Data for the table `eav_attribute_label` */



/*Table structure for table `eav_attribute_option` */


CREATE TABLE `eav_attribute_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `sort_order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`option_id`),
  KEY `IDX_EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_EAV_ATTRIBUTE_OPTION_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Option';

/*Data for the table `eav_attribute_option` */


insert  into `eav_attribute_option`(`option_id`,`attribute_id`,`sort_order`) values (1,102,1),(2,102,2),(3,102,3),(4,102,4),(5,102,5),(6,102,6),(7,102,7),(8,102,8),(9,102,9),(10,102,10),(11,465,1),(12,465,2),(13,465,3),(20,102,12),(21,102,11),(22,272,0),(23,272,0),(24,272,0),(25,272,0),(26,272,0),(27,102,0),(28,102,0),(29,102,0),(30,102,0),(31,102,0),(32,102,0),(33,102,0),(34,102,0),(35,501,0),(36,501,0),(37,502,12),(38,502,11),(39,502,10),(40,502,9),(41,502,8),(42,502,7),(43,502,6),(44,502,5),(45,502,4),(46,502,3),(47,107,0),(48,107,0),(49,107,0),(51,107,0),(52,107,0),(53,107,0),(54,97,0),(55,97,0),(56,107,0),(57,272,0),(58,272,0),(59,272,0),(60,272,0),(61,272,0),(62,102,0),(63,102,0),(64,102,0),(65,501,0),(66,501,0),(67,508,0),(68,508,0),(69,508,0),(70,508,0),(71,508,0),(72,508,0),(73,510,0),(74,510,0),(75,510,0),(76,510,0),(77,510,0),(78,510,0),(79,510,0),(83,102,0),(88,513,9),(89,513,8),(90,513,7),(91,513,6),(92,513,5),(93,513,4),(94,513,3),(95,513,2),(96,513,1),(97,107,0),(98,525,3),(99,525,2),(100,525,1),(101,102,0),(102,102,0),(103,102,0),(104,102,0),(105,102,0),(106,875,0),(107,875,0),(108,875,0),(109,875,0),(110,875,0),(111,102,0),(112,877,0),(113,877,0),(114,877,0),(115,877,0),(116,102,0),(117,102,0),(118,102,0),(119,102,0),(120,102,0),(121,102,0),(122,102,0),(123,925,0),(124,925,1);


/*Table structure for table `eav_attribute_option_value` */


CREATE TABLE `eav_attribute_option_value` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `value` varchar(255) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  KEY `IDX_EAV_ATTRIBUTE_OPTION_VALUE_OPTION_ID` (`option_id`),
  KEY `IDX_EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_EAV_ATTRIBUTE_OPTION_VALUE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ATTR_OPT_VAL_OPT_ID_EAV_ATTR_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `eav_attribute_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1462 DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Option Value';

/*Data for the table `eav_attribute_option_value` */


insert  into `eav_attribute_option_value`(`value_id`,`option_id`,`store_id`,`value`) values (51,11,1,'Red'),(52,12,1,'Blue'),(53,13,1,'Yellow'),(54,11,0,'Red'),(55,12,0,'Blue'),(56,13,0,'Yellow'),(476,65,0,'Boys'),(477,66,0,'Girls'),(478,36,0,'Mens'),(479,35,0,'Womens'),(919,55,0,'Mens'),(920,54,0,'Womens'),(1110,61,0,'Gray'),(1111,23,0,'Silver'),(1112,23,1,'Silver'),(1113,24,0,'Black'),(1114,24,1,'Black'),(1115,25,0,'Blue'),(1116,25,1,'Blue'),(1117,26,0,'Red'),(1118,26,1,'Red'),(1119,57,0,'Pink'),(1120,58,0,'Magneta'),(1121,59,0,'Brown'),(1122,60,0,'White'),(1123,22,0,'Green'),(1124,22,1,'Green'),(1138,97,0,'Sandal'),(1139,56,0,'Misc'),(1140,53,0,'Tennis'),(1141,52,0,'Dress'),(1142,51,0,'High Heels'),(1143,49,0,'Running'),(1144,48,0,'Biking'),(1145,47,0,'Golf Shoes'),(1146,46,0,'3'),(1147,45,0,'4'),(1148,44,0,'5'),(1149,43,0,'6'),(1150,42,0,'7'),(1151,41,0,'8'),(1152,40,0,'9'),(1153,39,0,'10'),(1154,38,0,'11'),(1155,37,0,'12'),(1156,72,0,'Living Room'),(1157,71,0,'Bedroom'),(1158,70,0,'Dining Room'),(1159,69,0,'Kitchen'),(1160,68,0,'Kids Room'),(1161,67,0,'Bathroom'),(1162,96,0,'2'),(1163,95,0,'3'),(1164,94,0,'4'),(1165,93,0,'5'),(1166,92,0,'6'),(1167,91,0,'7'),(1168,90,0,'8'),(1169,89,0,'9'),(1170,88,0,'10'),(1171,100,0,'Small'),(1172,99,0,'Medium'),(1173,98,0,'Large'),(1215,106,0,'10000:1'),(1216,107,0,'1500:1'),(1217,108,0,'1000:1'),(1218,109,0,'2000:1'),(1219,110,0,'3000:1'),(1262,112,0,'3.0 GHz'),(1263,113,0,'2.5 GHz'),(1264,114,0,'3.2 GHz'),(1265,115,0,'2.0 GHz'),(1404,122,0,'HTC'),(1405,121,0,'Logitech'),(1406,63,0,'CN CLogs'),(1407,62,0,'Steve Madden'),(1408,34,0,'Canon'),(1409,33,0,'Olympus'),(1410,32,0,'Argus'),(1411,31,0,'Kodak'),(1412,30,0,'Dell'),(1413,29,0,'Apple'),(1414,28,0,'Acer'),(1415,27,0,'Gateway'),(1416,64,0,'Asics'),(1417,83,0,'Toshiba'),(1418,101,0,'At&t'),(1419,119,0,'Seagate'),(1420,118,0,'Western Digital'),(1421,117,0,'AMD'),(1422,116,0,'Intel'),(1423,111,0,'Crucial'),(1424,105,0,'Nine West'),(1425,104,0,'Ecco'),(1426,103,0,'Kenneth Cole'),(1427,102,0,'Anashria'),(1428,120,0,'Microsoft'),(1429,1,1,'LG'),(1430,1,0,'LG'),(1431,2,1,'Sony'),(1432,2,0,'Sony'),(1433,3,1,'Samsung'),(1434,3,0,'Samsung'),(1435,4,1,'HP'),(1436,4,0,'HP'),(1437,5,1,'JVC'),(1438,5,0,'JVC'),(1439,6,1,'Panasonic'),(1440,6,0,'Panasonic'),(1441,7,1,'Yamaha'),(1442,7,0,'Yamaha'),(1443,8,1,'Philips'),(1444,8,0,'Philips'),(1445,9,1,'Acco'),(1446,9,0,'Acco'),(1447,10,1,'Aiwa'),(1448,10,0,'Aiwa'),(1449,21,1,'BlackBerry'),(1450,21,0,'BlackBerry'),(1451,20,1,'Nokia'),(1452,20,0,'Nokia'),(1453,79,0,'Acer'),(1454,78,0,'IBM'),(1455,77,0,'Apple'),(1456,76,0,'Sony'),(1457,75,0,'Gateway'),(1458,74,0,'Toshiba'),(1459,73,0,'Dell'),(1460,123,0,'Male'),(1461,124,0,'Female');


/*Table structure for table `eav_attribute_set` */


CREATE TABLE `eav_attribute_set` (
  `attribute_set_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Attribute Set Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_name` varchar(255) NOT NULL COMMENT 'Attribute Set Name',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`attribute_set_id`),
  UNIQUE KEY `UNQ_EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME` (`entity_type_id`,`attribute_set_name`),
  KEY `IDX_EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_SORT_ORDER` (`entity_type_id`,`sort_order`),
  CONSTRAINT `FK_EAV_ATTR_SET_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 COMMENT='Eav Attribute Set';

/*Data for the table `eav_attribute_set` */


insert  into `eav_attribute_set`(`attribute_set_id`,`entity_type_id`,`attribute_set_name`,`sort_order`) values (1,1,'Default',8),(2,2,'Default',8),(3,3,'Default',5),(9,10,'Default',16),(12,9,'Default',14),(18,4,'Default',33),(19,5,'Default',1),(20,6,'Default',34),(21,7,'Default',34),(22,8,'Default',34),(23,11,'Default',32),(24,12,'Default',33),(25,13,'Default',33),(26,14,'Default',33),(27,15,'Default',33),(28,16,'Default',34),(29,17,'Default',32),(30,18,'Default',32),(31,19,'Default',3),(32,20,'Default',32),(33,21,'Default',4),(34,22,'Default',3),(38,10,'Cell Phones',0),(39,10,'Computer',0),(40,10,'Shoes',0),(41,10,'Shirts T',0),(42,10,'Furniture',0),(44,10,'Cameras',0),(45,10,'Shirts Other',0),(46,10,'Shirts (General)',0),(50,23,'Default',29),(51,24,'Default',29),(52,25,'Default',29),(53,26,'Default',29),(54,27,'Default',29),(55,28,'Default',29),(56,29,'Default',29),(57,30,'Default',29),(58,10,'RAM',0),(59,10,'Warranties',0),(60,10,'CPU',0),(61,10,'Monitors',0),(62,10,'Hard Drive',0);


/*Table structure for table `eav_entity` */


CREATE TABLE `eav_entity` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Set Id',
  `increment_id` varchar(50) NOT NULL COMMENT 'Increment Id',
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Parent Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `is_active` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Defines Is Entity Active',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_EAV_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_STORE_ID` (`store_id`),
  CONSTRAINT `FK_EAV_ENTITY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Eav Entity';

/*Data for the table `eav_entity` */


insert  into `eav_entity`(`entity_id`,`entity_type_id`,`attribute_set_id`,`increment_id`,`parent_id`,`store_id`,`created_at`,`updated_at`,`is_active`) values (1,1,0,'',0,1,'0000-00-00 00:00:00','0000-00-00 00:00:00',1);


/*Table structure for table `eav_entity_attribute` */


CREATE TABLE `eav_entity_attribute` (
  `entity_attribute_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Attribute Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Set Id',
  `attribute_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Group Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`entity_attribute_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_ATTRIBUTE_ID` (`attribute_set_id`,`attribute_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_GROUP_ID_ATTRIBUTE_ID` (`attribute_group_id`,`attribute_id`),
  KEY `IDX_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_SET_ID_SORT_ORDER` (`attribute_set_id`,`sort_order`),
  KEY `IDX_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_EAV_ENTT_ATTR_ATTR_GROUP_ID_EAV_ATTR_GROUP_ATTR_GROUP_ID` FOREIGN KEY (`attribute_group_id`) REFERENCES `eav_attribute_group` (`attribute_group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4714 DEFAULT CHARSET=utf8 COMMENT='Eav Entity Attributes';

/*Data for the table `eav_entity_attribute` */


insert  into `eav_entity_attribute`(`entity_attribute_id`,`entity_type_id`,`attribute_set_id`,`attribute_group_id`,`attribute_id`,`sort_order`) values (1,1,1,1,1,40),(2,1,1,1,2,60),(3,1,1,1,3,80),(4,1,1,1,4,0),(7,1,1,1,7,0),(8,1,1,1,8,0),(9,2,2,2,9,20),(10,2,2,2,10,40),(11,2,2,2,11,90),(12,2,2,2,12,100),(13,2,2,2,13,100),(14,2,2,2,14,110),(15,2,2,2,15,80),(16,2,2,2,16,70),(17,2,2,2,17,120),(18,2,2,2,18,130),(19,3,3,3,19,1),(95,2,2,2,95,60),(112,10,9,4,110,15),(194,8,1,1,256,0),(195,8,1,1,255,0),(196,8,1,1,254,0),(197,8,1,1,253,0),(198,7,1,1,252,0),(199,7,1,1,251,0),(200,7,1,1,250,0),(201,7,1,1,249,0),(202,7,1,1,248,0),(203,7,1,1,247,0),(204,7,1,1,246,0),(205,7,1,1,245,0),(206,7,1,1,244,0),(207,7,1,1,243,0),(208,7,1,1,242,0),(209,7,1,1,241,0),(210,7,1,1,240,0),(211,7,1,1,239,0),(212,7,1,1,238,0),(213,7,1,1,237,0),(214,7,1,1,236,0),(215,7,1,1,235,0),(216,7,1,1,234,0),(217,6,1,1,233,0),(218,6,1,1,232,0),(219,6,1,1,231,0),(220,6,1,1,230,0),(221,6,1,1,229,0),(222,6,1,1,228,0),(223,6,1,1,227,0),(224,6,1,1,226,0),(225,6,1,1,225,0),(226,6,1,1,223,0),(227,6,1,1,224,0),(228,6,1,1,222,0),(229,6,1,1,221,0),(230,6,1,1,220,0),(231,6,1,1,219,0),(232,6,1,1,218,0),(233,4,1,1,217,0),(234,4,1,1,216,0),(235,4,1,1,215,0),(236,4,1,1,214,0),(237,4,1,1,213,0),(238,4,1,1,212,0),(239,4,1,1,211,0),(240,4,1,1,210,0),(241,4,1,1,209,0),(242,4,1,1,208,0),(243,4,1,1,207,0),(245,4,1,1,205,0),(246,4,1,1,204,0),(247,4,1,1,203,0),(248,4,1,1,202,0),(249,4,1,1,201,0),(250,4,1,1,200,0),(251,4,1,1,199,0),(252,4,1,1,198,0),(253,4,1,1,197,0),(254,4,1,1,196,0),(255,4,1,1,195,0),(256,4,1,1,194,0),(257,8,1,1,257,0),(258,8,1,1,258,0),(259,8,1,1,259,0),(260,8,1,1,260,0),(261,8,1,1,261,0),(262,8,1,1,262,0),(263,8,1,1,263,0),(264,8,1,1,264,0),(265,8,1,1,265,0),(266,8,1,1,266,0),(267,5,1,1,267,0),(268,5,1,1,268,0),(271,9,12,7,111,1),(272,9,12,7,112,2),(273,9,12,7,113,3),(274,9,12,7,114,4),(275,9,12,7,115,5),(276,9,12,7,116,6),(277,9,12,166,117,20),(278,9,12,166,118,10),(279,9,12,7,119,9),(280,9,12,166,120,30),(281,9,12,7,121,11),(282,9,12,7,122,12),(283,9,12,7,123,13),(326,11,23,17,275,1),(327,11,23,17,276,2),(328,11,23,17,277,3),(329,11,23,17,278,4),(330,11,23,17,279,5),(331,11,23,17,280,6),(332,11,23,17,281,7),(333,11,23,17,282,8),(334,11,23,17,283,9),(335,11,23,17,284,10),(336,11,23,17,285,11),(337,11,23,17,286,12),(338,11,23,17,287,13),(339,11,23,17,288,14),(340,11,23,17,289,15),(341,11,23,17,290,16),(342,11,23,17,291,17),(343,11,23,17,292,18),(344,11,23,17,293,19),(345,11,23,17,294,20),(346,11,23,17,295,21),(347,11,23,17,296,22),(348,11,23,17,297,23),(349,12,24,18,298,1),(350,12,24,18,299,2),(351,12,24,18,300,3),(352,12,24,18,301,4),(353,12,24,18,302,5),(354,12,24,18,303,6),(355,12,24,18,304,7),(356,12,24,18,305,8),(357,12,24,18,306,9),(358,12,24,18,307,10),(359,12,24,18,308,11),(360,12,24,18,309,12),(361,12,24,18,310,13),(362,12,24,18,311,14),(363,12,24,18,312,15),(364,12,24,18,313,16),(365,12,24,18,314,17),(366,12,24,18,315,18),(367,12,24,18,316,19),(368,12,24,18,317,20),(369,12,24,18,318,21),(370,12,24,18,319,22),(371,12,24,18,320,23),(372,12,24,18,321,24),(373,12,24,18,322,25),(374,12,24,18,323,26),(375,12,24,18,324,27),(376,12,24,18,325,28),(377,13,25,19,326,1),(378,13,25,19,327,2),(379,13,25,19,328,3),(380,13,25,19,329,4),(381,13,25,19,330,5),(382,13,25,19,331,6),(383,13,25,19,332,7),(384,13,25,19,333,8),(385,14,26,20,334,1),(386,14,26,20,335,2),(387,14,26,20,336,3),(388,14,26,20,337,4),(389,14,26,20,338,5),(390,14,26,20,339,6),(391,14,26,20,340,7),(392,14,26,20,341,8),(393,14,26,20,342,9),(394,15,27,21,343,1),(395,15,27,21,344,2),(396,15,27,21,345,3),(397,15,27,21,346,4),(398,15,27,21,347,5),(399,15,27,21,348,6),(400,15,27,21,349,7),(401,15,27,21,350,8),(402,15,27,21,351,9),(403,15,27,21,352,10),(404,15,27,21,353,11),(405,15,27,21,354,12),(406,15,27,21,355,13),(407,15,27,21,356,14),(408,15,27,21,357,15),(409,15,27,21,358,16),(410,16,28,22,359,1),(411,16,28,22,360,2),(412,16,28,22,361,3),(413,16,28,22,362,4),(414,16,28,22,363,5),(415,16,28,22,364,6),(416,16,28,22,365,7),(417,16,28,22,366,8),(418,16,28,22,367,9),(419,16,28,22,368,10),(420,16,28,22,369,11),(421,4,18,23,370,1),(422,4,18,23,205,2),(423,4,18,23,210,3),(425,4,18,23,204,5),(426,4,18,23,372,6),(427,4,18,23,217,7),(428,4,18,23,216,8),(429,4,18,23,212,9),(430,4,18,23,213,10),(431,4,18,23,373,11),(432,4,18,23,374,12),(433,4,18,23,375,13),(434,4,18,23,376,14),(435,4,18,23,377,15),(436,4,18,23,378,16),(437,4,18,23,379,17),(438,4,18,23,196,18),(439,4,18,23,214,19),(440,4,18,23,208,20),(441,4,18,23,198,21),(442,4,18,23,200,22),(443,4,18,23,201,23),(444,4,18,23,199,24),(445,4,18,23,202,25),(446,4,18,23,203,26),(447,4,18,23,194,27),(448,4,18,23,380,28),(449,4,18,23,381,29),(451,4,18,23,383,31),(452,6,20,24,384,1),(453,6,20,24,385,2),(454,6,20,24,233,3),(455,6,20,24,221,4),(456,6,20,24,386,5),(457,6,20,24,223,6),(458,6,20,24,224,7),(459,6,20,24,225,8),(460,6,20,24,226,9),(461,6,20,24,222,10),(462,6,20,24,227,11),(463,6,20,24,228,12),(464,6,20,24,218,13),(465,6,20,24,229,14),(466,6,20,24,219,15),(467,6,20,24,230,16),(468,6,20,24,231,17),(469,7,21,25,387,1),(470,7,21,25,388,2),(471,7,21,25,249,3),(472,7,21,25,389,4),(473,7,21,25,250,5),(474,7,21,25,251,6),(475,7,21,25,390,7),(476,7,21,25,391,8),(477,7,21,25,236,9),(478,7,21,25,237,10),(479,7,21,25,238,11),(480,7,21,25,239,12),(481,7,21,25,240,13),(482,7,21,25,242,14),(483,7,21,25,243,15),(484,7,21,25,244,16),(485,7,21,25,245,17),(486,7,21,25,246,18),(487,7,21,25,247,19),(488,7,21,25,248,20),(489,8,22,26,392,1),(490,8,22,26,393,2),(491,8,22,26,394,3),(492,8,22,26,395,4),(493,8,22,26,257,5),(494,8,22,26,258,6),(495,8,22,26,259,7),(496,8,22,26,260,8),(497,8,22,26,261,9),(498,8,22,26,262,10),(499,8,22,26,253,11),(500,8,22,26,254,12),(501,8,22,26,396,13),(502,8,22,26,397,14),(503,8,22,26,263,15),(504,8,22,26,264,16),(505,8,22,26,265,17),(506,8,22,26,266,18),(507,8,22,26,398,19),(508,8,22,26,399,20),(509,8,22,26,400,21),(510,8,22,26,401,22),(511,8,22,26,402,23),(512,8,22,26,403,24),(513,8,22,26,404,25),(514,8,22,26,405,26),(515,8,22,26,406,27),(516,17,29,27,407,1),(519,17,29,27,410,4),(520,18,30,28,411,1),(521,18,30,28,412,2),(522,18,30,28,413,3),(523,18,30,28,414,4),(524,18,30,28,415,5),(525,18,30,28,416,6),(526,18,30,28,417,7),(527,18,30,28,418,8),(528,18,30,28,419,9),(529,18,30,28,420,10),(530,18,30,28,421,11),(531,18,30,28,422,12),(532,18,30,28,423,13),(533,18,30,28,424,14),(534,18,30,28,425,15),(535,18,30,28,426,16),(536,18,30,28,427,17),(537,18,30,28,428,18),(538,18,30,28,429,19),(539,18,30,28,430,20),(540,18,30,28,431,21),(541,19,31,29,432,1),(542,19,31,29,433,2),(543,19,31,29,434,3),(544,19,31,29,435,4),(545,19,31,29,436,5),(546,19,31,29,437,6),(547,19,31,29,438,7),(548,19,31,29,439,8),(549,19,31,29,440,9),(550,19,31,29,441,10),(551,19,31,29,442,11),(552,19,31,29,443,12),(553,19,31,29,444,13),(554,19,31,29,445,14),(555,19,31,29,446,15),(556,19,31,29,447,16),(557,19,31,29,448,17),(558,20,32,30,449,1),(559,20,32,30,450,2),(560,20,32,30,451,3),(561,20,32,30,452,4),(562,20,32,30,453,5),(563,20,32,30,454,6),(564,20,32,30,455,7),(565,20,32,30,456,8),(566,20,32,30,457,9),(567,20,32,30,458,10),(568,20,32,30,459,11),(569,21,33,31,460,1),(570,21,33,31,461,2),(571,21,33,31,462,3),(572,21,33,31,463,4),(573,21,33,31,464,5),(574,21,33,31,465,6),(575,21,33,31,466,7),(576,21,33,31,467,8),(577,22,34,32,468,1),(578,22,34,32,469,2),(579,22,34,32,470,3),(580,22,34,32,471,4),(581,22,34,32,472,5),(582,11,23,17,473,24),(583,15,27,21,474,17),(584,14,26,20,475,10),(624,1,1,1,477,20),(625,1,1,1,478,0),(626,9,12,7,479,14),(633,15,27,21,482,18),(634,7,21,25,483,21),(825,10,38,47,110,6),(904,12,24,18,488,29),(905,14,26,20,489,11),(906,15,27,21,490,19),(907,4,18,23,491,32),(990,10,39,51,110,6),(1044,10,40,55,110,6),(1122,10,41,59,110,6),(1166,10,39,53,503,4),(1168,10,9,9,503,1),(1169,10,38,49,503,4),(1172,10,40,57,503,4),(1173,10,41,61,503,4),(1175,12,24,18,504,30),(1176,15,27,21,505,20),(1314,10,42,63,110,6),(1336,10,42,66,503,4),(1571,10,44,72,110,6),(1593,10,44,75,503,4),(1674,9,12,167,514,50),(1675,14,26,20,515,12),(1676,14,26,20,516,13),(1677,14,26,20,517,14),(1678,14,26,20,518,15),(1679,14,26,20,519,16),(1680,14,26,20,520,17),(1681,14,26,20,521,18),(1682,14,26,20,522,19),(1683,14,26,20,523,20),(1684,14,26,20,524,21),(1714,10,44,72,96,1),(1715,10,44,72,98,3),(1716,10,44,72,101,4),(1717,10,44,72,102,6),(1719,10,44,72,272,5),(1720,10,44,72,273,8),(1721,10,44,72,274,9),(1723,10,44,72,481,11),(1724,10,44,72,495,2),(1725,10,44,73,103,1),(1726,10,44,73,104,2),(1727,10,44,73,105,3),(1728,10,44,78,97,2),(1729,10,44,78,492,3),(1730,10,44,78,506,1),(1731,10,44,74,106,3),(1732,10,44,74,109,2),(1733,10,44,74,271,4),(1734,10,44,74,493,1),(1735,10,44,75,99,1),(1736,10,44,75,100,2),(1737,10,44,75,270,3),(1738,10,44,79,494,2),(1739,10,44,79,513,1),(1771,10,45,80,110,6),(1789,10,45,83,503,4),(1820,10,44,72,526,12),(2078,10,39,51,96,43),(2079,10,39,51,98,46),(2080,10,39,51,101,47),(2082,10,39,51,272,48),(2083,10,39,51,273,50),(2084,10,39,51,274,51),(2086,10,39,51,481,53),(2087,10,39,51,495,44),(2088,10,39,51,510,45),(2089,10,39,51,526,54),(2090,10,39,53,99,43),(2091,10,39,53,100,44),(2092,10,39,53,270,45),(2093,10,39,52,103,43),(2094,10,39,52,104,44),(2095,10,39,52,105,45),(2096,10,39,54,106,45),(2097,10,39,54,109,44),(2098,10,39,54,271,46),(2099,10,39,54,493,43),(2100,10,39,77,97,44),(2101,10,39,77,492,45),(2102,10,39,77,506,43),(2103,10,39,76,494,43),(2104,10,39,76,497,46),(2105,10,39,76,498,47),(2106,10,39,76,499,45),(2107,10,39,76,500,44),(2133,10,40,55,96,43),(2134,10,40,55,98,45),(2135,10,40,55,101,46),(2136,10,40,55,102,47),(2138,10,40,55,273,49),(2139,10,40,55,274,50),(2141,10,40,55,481,52),(2142,10,40,55,495,44),(2143,10,40,55,526,53),(2144,10,40,57,99,43),(2145,10,40,57,100,44),(2146,10,40,57,270,45),(2147,10,40,56,103,43),(2148,10,40,56,104,44),(2149,10,40,56,105,45),(2150,10,40,58,106,45),(2151,10,40,58,109,44),(2152,10,40,58,271,46),(2153,10,40,58,493,43),(2154,10,40,87,97,44),(2155,10,40,87,492,45),(2156,10,40,87,506,43),(2157,10,40,88,107,44),(2158,10,40,88,272,45),(2159,10,40,88,501,46),(2160,10,40,88,502,43),(2185,10,42,63,96,43),(2186,10,42,63,98,45),(2187,10,42,63,101,46),(2189,10,42,63,273,49),(2190,10,42,63,274,50),(2192,10,42,63,481,52),(2193,10,42,63,494,47),(2194,10,42,63,495,44),(2195,10,42,63,526,53),(2196,10,42,66,99,43),(2197,10,42,66,100,44),(2198,10,42,66,270,45),(2199,10,42,64,103,43),(2200,10,42,64,104,44),(2201,10,42,64,105,45),(2202,10,42,65,106,45),(2203,10,42,65,109,44),(2204,10,42,65,271,46),(2205,10,42,65,493,43),(2206,10,42,90,97,44),(2207,10,42,90,506,43),(2208,10,42,91,272,46),(2209,10,42,91,507,45),(2210,10,42,91,508,43),(2211,10,42,91,509,44),(2307,10,9,4,96,1),(2308,10,9,4,98,2),(2309,10,9,4,101,3),(2312,10,9,4,273,6),(2313,10,9,4,274,7),(2315,10,9,4,481,9),(2316,10,9,4,526,10),(2317,10,9,9,99,1),(2318,10,9,9,100,2),(2319,10,9,9,270,3),(2320,10,9,12,103,1),(2321,10,9,12,104,2),(2322,10,9,12,105,3),(2323,10,9,15,106,4),(2324,10,9,15,109,2),(2325,10,9,15,271,3),(2326,10,9,15,493,1),(2327,10,9,95,97,1),(2328,10,9,95,506,2),(2437,10,46,96,110,15),(2439,10,46,97,503,1),(2579,16,28,22,527,12),(2580,16,28,22,528,13),(2581,16,28,22,529,14),(2629,9,12,167,530,60),(2630,10,44,119,531,13),(2632,10,39,121,531,55),(2633,10,9,118,531,16),(2634,10,42,122,531,54),(2637,10,40,125,531,54),(2640,1,1,1,532,25),(2641,9,12,7,533,17),(2642,11,23,17,534,25),(2643,12,24,18,535,31),(2644,15,27,21,536,21),(2645,4,18,23,537,33),(2646,6,20,24,538,18),(2647,7,21,25,539,22),(2658,14,26,20,541,22),(2659,7,21,25,542,23),(2660,11,23,17,543,26),(2661,11,23,17,544,27),(2662,11,23,17,545,28),(2663,11,23,17,546,29),(2664,4,18,23,547,34),(2665,4,18,23,548,35),(2666,4,18,23,549,36),(2667,4,18,23,550,37),(2668,15,27,21,551,22),(2669,14,26,20,552,23),(2670,4,18,23,215,38),(2671,4,18,23,553,39),(2672,4,18,23,554,40),(2673,4,18,23,555,41),(2674,4,18,23,556,42),(2675,4,18,23,557,43),(2676,4,18,23,558,44),(2677,17,29,27,559,5),(2678,17,29,27,560,6),(2679,7,21,25,561,24),(2680,10,44,182,562,15),(2682,10,39,184,562,57),(2683,10,9,186,562,18),(2684,10,42,187,562,56),(2687,10,40,194,562,56),(2690,9,12,167,563,10),(2692,9,12,167,565,30),(2693,9,12,167,566,40),(2694,10,44,75,567,5),(2696,10,39,53,567,46),(2697,10,9,9,567,4),(2698,10,42,66,567,46),(2701,10,40,57,567,46),(2704,10,44,75,568,6),(2706,10,39,53,568,47),(2707,10,9,9,568,5),(2708,10,42,66,568,47),(2711,10,40,57,568,47),(2714,10,44,75,569,7),(2716,10,39,53,569,48),(2717,10,9,9,569,6),(2718,10,42,66,569,48),(2721,10,40,57,569,48),(2724,10,39,51,102,58),(2725,10,9,4,102,19),(2726,10,42,63,102,57),(2731,10,9,4,272,20),(2734,10,44,72,570,16),(2735,10,38,47,570,57),(2736,10,39,51,570,59),(2737,10,9,4,570,21),(2738,10,42,63,570,58),(2739,10,45,80,570,14),(2740,10,46,96,570,21),(2741,10,40,55,570,57),(2742,10,41,59,570,15),(2744,10,44,119,571,1),(2746,10,39,121,571,1),(2747,10,9,118,571,1),(2748,10,42,122,571,1),(2751,10,40,125,571,1),(2754,10,44,119,572,2),(2756,10,39,121,572,2),(2757,10,9,118,572,2),(2758,10,42,122,572,2),(2761,10,40,125,572,2),(2764,10,44,119,573,3),(2766,10,39,121,573,3),(2767,10,9,118,573,3),(2768,10,42,122,573,3),(2771,10,40,125,573,3),(2774,11,23,17,574,30),(2775,11,23,17,575,31),(2776,12,24,18,576,32),(2777,14,26,20,577,24),(2778,14,26,20,578,25),(2779,15,27,21,579,23),(2780,15,27,21,580,24),(2781,16,28,22,581,15),(2782,4,18,23,582,45),(2783,4,18,23,583,46),(2784,4,18,23,584,47),(2785,4,18,23,585,48),(2786,7,21,25,586,25),(2787,7,21,25,587,26),(2788,7,21,25,234,27),(2789,7,21,25,588,28),(2790,7,21,25,589,29),(2791,7,21,25,590,30),(2792,7,21,25,591,31),(2793,7,21,25,592,32),(2794,7,21,25,593,33),(2795,7,21,25,594,34),(2796,7,21,25,595,35),(2797,8,22,26,596,28),(2798,8,22,26,597,29),(2799,8,22,26,598,30),(2800,8,22,26,599,31),(2801,8,22,26,600,32),(2802,8,22,26,601,33),(2803,8,22,26,602,34),(2804,8,22,26,603,35),(2805,8,22,26,604,36),(2806,18,30,28,605,22),(2807,18,30,28,606,23),(2808,18,30,28,607,24),(2809,18,30,28,608,25),(2810,20,32,30,609,12),(2811,20,32,30,610,13),(2812,23,50,128,611,1),(2813,23,50,128,612,2),(2814,23,50,128,613,3),(2815,24,51,129,614,1),(2816,24,51,129,615,2),(2817,24,51,129,616,3),(2818,24,51,129,617,4),(2819,24,51,129,618,5),(2820,24,51,129,619,6),(2821,24,51,129,620,7),(2822,24,51,129,621,8),(2823,25,52,130,622,1),(2824,25,52,130,623,2),(2825,25,52,130,624,3),(2826,25,52,130,625,4),(2827,25,52,130,626,5),(2828,25,52,130,627,6),(2829,25,52,130,628,7),(2830,25,52,130,629,8),(2831,25,52,130,630,9),(2832,25,52,130,631,10),(2833,26,53,131,632,1),(2834,26,53,131,633,2),(2835,26,53,131,634,3),(2836,27,54,132,635,1),(2837,27,54,132,636,2),(2838,27,54,132,637,3),(2839,27,54,132,638,4),(2840,27,54,132,639,5),(2841,27,54,132,640,6),(2842,27,54,132,641,7),(2843,27,54,132,642,8),(2844,28,55,133,643,1),(2845,28,55,133,644,2),(2846,28,55,133,645,3),(2847,28,55,133,646,4),(2848,28,55,133,647,5),(2849,28,55,133,648,6),(2850,28,55,133,649,7),(2851,28,55,133,650,8),(2852,28,55,133,651,9),(2853,28,55,133,652,10),(2854,28,55,133,653,11),(2855,28,55,133,654,12),(2856,28,55,133,655,13),(2857,28,55,133,656,14),(2858,28,55,133,657,15),(2859,28,55,133,658,16),(2860,28,55,133,659,17),(2861,28,55,133,660,18),(2862,28,55,133,661,19),(2863,28,55,133,662,20),(2864,29,56,134,663,1),(2865,29,56,134,664,2),(2866,29,56,134,665,3),(2867,29,56,134,666,4),(2868,29,56,134,667,5),(2869,29,56,134,668,6),(2870,29,56,134,669,7),(2871,29,56,134,670,8),(2872,29,56,134,671,9),(2873,29,56,134,672,10),(2874,29,56,134,673,11),(2875,29,56,134,674,12),(2876,30,57,135,675,1),(2877,30,57,135,676,2),(2878,30,57,135,677,3),(2879,11,23,17,678,32),(2880,11,23,17,679,33),(2881,14,26,20,680,26),(2882,15,27,21,681,25),(2883,16,28,22,682,16),(2884,16,28,22,683,17),(2885,16,28,22,684,18),(2886,4,18,23,685,49),(2887,4,18,23,686,50),(2888,4,18,23,687,51),(2889,4,18,23,688,52),(2890,4,18,23,689,53),(2891,4,18,23,690,54),(2892,4,18,23,691,55),(2893,4,18,23,692,56),(2894,4,18,23,693,57),(2895,7,21,25,694,36),(2896,8,22,26,695,37),(2897,8,22,26,696,38),(2898,8,22,26,697,39),(2899,18,30,28,698,26),(2900,28,55,133,699,21),(2901,1,1,1,700,10),(2902,9,12,7,701,22),(2903,9,12,7,702,23),(2904,10,44,74,703,5),(2906,10,39,54,703,47),(2907,10,9,15,703,5),(2908,10,42,65,703,47),(2911,10,40,58,703,47),(2914,10,44,72,704,17),(2916,10,39,51,704,60),(2917,10,9,4,704,22),(2918,10,42,63,704,59),(2921,10,40,55,704,58),(2924,10,44,72,705,18),(2926,10,39,51,705,61),(2927,10,9,4,705,23),(2928,10,42,63,705,60),(2931,10,40,55,705,59),(2934,10,44,72,706,19),(2935,10,38,47,706,60),(2936,10,39,51,706,62),(2937,10,9,4,706,24),(2938,10,42,63,706,61),(2939,10,45,80,706,17),(2940,10,46,96,706,24),(2941,10,40,55,706,60),(2942,10,41,59,706,18),(2944,11,23,17,707,34),(2945,12,24,18,708,33),(2946,12,24,18,709,34),(2947,12,24,18,710,35),(2948,12,24,18,711,36),(2949,12,24,18,712,37),(2950,12,24,18,713,38),(2951,12,24,18,714,39),(2952,14,26,20,715,27),(2953,14,26,20,716,28),(2954,14,26,20,717,29),(2955,14,26,20,718,30),(2956,14,26,20,719,31),(2957,15,27,21,720,26),(2958,15,27,21,721,27),(2959,15,27,21,722,28),(2960,15,27,21,723,29),(2961,15,27,21,724,30),(2962,4,18,23,725,58),(2963,4,18,23,726,59),(2964,4,18,23,727,60),(2965,4,18,23,728,61),(2966,4,18,23,729,62),(2967,4,18,23,730,63),(2968,4,18,23,731,64),(2969,4,18,23,732,65),(2970,4,18,23,733,66),(2971,4,18,23,734,67),(2972,4,18,23,735,68),(2973,4,18,23,736,69),(2974,4,18,23,737,70),(2975,4,18,23,738,71),(2976,4,18,23,739,72),(2977,4,18,23,740,73),(2978,4,18,23,741,74),(2979,4,18,23,742,75),(2980,4,18,23,743,76),(2981,4,18,23,744,77),(2982,4,18,23,745,78),(2983,4,18,23,746,79),(2984,7,21,25,747,37),(2985,7,21,25,748,38),(2986,7,21,25,749,39),(2987,7,21,25,750,40),(2988,7,21,25,751,41),(2989,7,21,25,752,42),(2990,7,21,25,753,43),(2991,7,21,25,754,44),(2992,7,21,25,755,45),(2993,7,21,25,756,46),(2994,7,21,25,757,47),(2995,8,22,26,758,40),(2996,8,22,26,759,41),(2997,8,22,26,760,42),(2998,8,22,26,761,43),(2999,8,22,26,762,44),(3000,8,22,26,763,45),(3001,8,22,26,764,46),(3002,8,22,26,765,47),(3003,18,30,28,766,27),(3004,18,30,28,767,28),(3005,18,30,28,768,29),(3006,18,30,28,769,30),(3007,18,30,28,770,31),(3008,18,30,28,771,32),(3009,20,32,30,772,14),(3010,20,32,30,773,15),(3011,20,32,30,774,16),(3012,20,32,30,775,17),(3013,20,32,30,776,18),(3014,24,51,129,777,9),(3015,25,52,130,778,11),(3016,28,55,133,779,22),(3017,28,55,133,780,23),(3018,28,55,133,781,24),(3019,28,55,133,782,25),(3020,28,55,133,783,26),(3021,28,55,133,784,27),(3022,28,55,133,785,28),(3023,28,55,133,786,29),(3024,28,55,133,787,30),(3025,29,56,134,788,13),(3026,29,56,134,789,14),(3027,29,56,134,790,15),(3028,29,56,134,791,16),(3029,29,56,134,792,17),(3030,11,23,17,793,35),(3031,11,23,17,794,36),(3032,4,18,23,795,80),(3033,4,18,23,796,81),(3034,4,18,23,797,82),(3035,4,18,23,798,83),(3036,4,18,23,799,84),(3037,4,18,23,800,85),(3038,4,18,23,801,86),(3039,4,18,23,802,87),(3040,4,18,23,803,88),(3041,4,18,23,804,89),(3042,4,18,23,805,90),(3043,4,18,23,806,91),(3044,4,18,23,807,92),(3045,4,18,23,808,93),(3046,4,18,23,809,94),(3047,4,18,23,810,95),(3048,4,18,23,811,96),(3049,4,18,23,812,97),(3050,4,18,23,813,98),(3051,4,18,23,814,99),(3052,12,24,18,815,40),(3053,11,23,17,816,37),(3054,8,22,26,817,48),(3055,12,24,18,818,41),(3056,12,24,18,819,42),(3057,4,18,23,820,100),(3058,4,18,23,821,101),(3059,18,30,28,822,33),(3060,18,30,28,823,34),(3061,28,55,133,824,31),(3062,28,55,133,825,32),(3063,1,1,1,826,30),(3064,1,1,1,827,50),(3065,1,1,1,828,70),(3066,1,1,1,829,90),(3067,1,1,1,830,100),(3068,1,1,1,831,0),(3069,2,2,2,832,10),(3070,2,2,2,833,30),(3071,2,2,2,834,50),(3072,9,12,7,835,24),(3073,10,44,119,836,14),(3075,10,39,121,836,56),(3076,10,9,118,836,17),(3077,10,42,122,836,55),(3080,10,40,125,836,55),(3083,10,44,72,837,20),(3084,10,38,47,837,61),(3085,10,39,51,837,63),(3086,10,9,4,837,25),(3087,10,42,63,837,62),(3088,10,45,80,837,18),(3089,10,46,96,837,25),(3090,10,40,55,837,61),(3091,10,41,59,837,19),(3093,10,44,72,838,21),(3094,10,38,47,838,62),(3095,10,39,51,838,64),(3096,10,9,4,838,26),(3097,10,42,63,838,63),(3098,10,45,80,838,19),(3099,10,46,96,838,26),(3100,10,40,55,838,62),(3101,10,41,59,838,20),(3103,4,18,23,839,102),(3104,4,18,23,840,103),(3105,4,18,23,841,104),(3106,6,20,24,842,19),(3107,6,20,24,843,20),(3108,6,20,24,844,21),(3109,11,23,17,845,38),(3110,11,23,17,846,39),(3111,11,23,17,847,40),(3112,12,24,18,848,43),(3113,12,24,18,849,44),(3114,12,24,18,850,45),(3115,11,23,17,851,41),(3116,4,18,23,852,105),(3117,7,21,25,853,48),(3118,7,21,25,854,49),(3119,18,30,28,855,35),(3120,28,55,133,856,33),(3121,24,51,129,857,10),(3122,4,18,23,858,106),(3123,10,44,72,859,22),(3124,10,38,47,859,63),(3125,10,39,51,859,65),(3126,10,9,4,859,27),(3127,10,42,63,859,64),(3128,10,45,80,859,20),(3129,10,46,96,859,27),(3130,10,40,55,859,63),(3131,10,41,59,859,21),(3133,10,44,72,860,23),(3134,10,38,47,860,64),(3135,10,39,51,860,66),(3136,10,9,4,860,28),(3137,10,42,63,860,65),(3138,10,45,80,860,21),(3139,10,46,96,860,28),(3140,10,40,55,860,64),(3141,10,41,59,860,22),(3143,10,44,72,861,24),(3144,10,38,47,861,65),(3145,10,39,51,861,67),(3146,10,9,4,861,29),(3147,10,42,63,861,66),(3148,10,45,80,861,22),(3149,10,46,96,861,29),(3150,10,40,55,861,65),(3151,10,41,59,861,23),(3153,10,44,75,862,8),(3155,10,39,53,862,49),(3156,10,9,9,862,7),(3157,10,42,66,862,49),(3160,10,40,57,862,49),(3163,10,44,72,863,25),(3164,10,38,47,863,66),(3165,10,39,51,863,68),(3166,10,9,4,863,30),(3167,10,42,63,863,67),(3168,10,45,80,863,23),(3169,10,46,96,863,30),(3170,10,40,55,863,66),(3171,10,41,59,863,24),(3173,8,22,26,864,49),(3174,18,30,28,865,36),(3175,28,55,133,866,34),(3176,8,22,26,867,50),(3177,8,22,26,868,51),(3178,8,22,26,869,52),(3179,8,22,26,870,53),(3180,8,22,26,871,54),(3181,8,22,26,872,55),(3199,10,58,136,110,15),(3207,10,58,136,570,21),(3213,10,58,136,706,24),(3215,10,58,136,837,25),(3217,10,58,136,838,26),(3219,10,58,136,859,27),(3221,10,58,136,860,28),(3223,10,58,136,861,29),(3225,10,58,136,863,30),(3229,10,58,137,503,1),(3273,10,58,136,96,1),(3275,10,58,136,98,2),(3277,10,58,136,101,3),(3279,10,58,136,102,10),(3283,10,58,136,273,5),(3285,10,58,136,274,6),(3287,10,58,136,481,7),(3289,10,58,136,526,8),(3291,10,58,190,562,9),(3293,10,58,136,704,12),(3295,10,58,136,705,13),(3297,10,58,136,874,11),(3299,10,58,137,99,1),(3301,10,58,137,100,2),(3303,10,58,137,270,3),(3305,10,58,137,567,4),(3307,10,58,137,568,5),(3309,10,58,137,569,6),(3311,10,58,137,862,7),(3313,10,58,138,103,1),(3315,10,58,138,104,2),(3317,10,58,138,105,3),(3319,10,58,139,106,4),(3321,10,58,139,109,2),(3323,10,58,139,271,3),(3325,10,58,139,493,1),(3327,10,58,139,703,5),(3329,10,58,140,97,1),(3331,10,58,140,506,2),(3333,10,58,141,531,4),(3335,10,58,141,571,1),(3337,10,58,141,572,2),(3339,10,58,141,573,3),(3341,10,58,141,836,5),(3359,10,59,142,110,15),(3367,10,59,142,570,21),(3373,10,59,142,706,24),(3375,10,59,142,837,25),(3377,10,59,142,838,26),(3379,10,59,142,859,27),(3381,10,59,142,860,28),(3383,10,59,142,861,29),(3385,10,59,142,863,30),(3389,10,59,143,503,1),(3449,10,60,148,110,15),(3457,10,60,148,570,21),(3463,10,60,148,706,24),(3465,10,60,148,837,25),(3467,10,60,148,838,26),(3469,10,60,148,859,27),(3471,10,60,148,860,28),(3473,10,60,148,861,29),(3475,10,60,148,863,30),(3479,10,60,149,503,1),(3539,10,61,154,110,15),(3547,10,61,154,570,21),(3553,10,61,154,706,24),(3555,10,61,154,837,25),(3557,10,61,154,838,26),(3559,10,61,154,859,27),(3561,10,61,154,860,28),(3563,10,61,154,861,29),(3565,10,61,154,863,30),(3569,10,61,155,503,1),(3613,10,59,142,96,1),(3615,10,59,142,98,2),(3617,10,59,142,101,3),(3621,10,59,142,273,5),(3623,10,59,142,274,6),(3625,10,59,142,481,7),(3627,10,59,142,526,8),(3629,10,59,195,562,9),(3631,10,59,142,704,10),(3633,10,59,142,705,11),(3635,10,59,143,99,1),(3637,10,59,143,100,2),(3639,10,59,143,270,3),(3641,10,59,143,567,4),(3643,10,59,143,568,5),(3645,10,59,143,569,6),(3647,10,59,143,862,7),(3649,10,59,144,103,1),(3651,10,59,144,104,2),(3653,10,59,144,105,3),(3655,10,59,145,106,4),(3657,10,59,145,109,2),(3659,10,59,145,271,3),(3661,10,59,145,493,1),(3663,10,59,145,703,5),(3665,10,59,146,97,1),(3667,10,59,146,506,2),(3669,10,59,147,531,4),(3671,10,59,147,571,1),(3673,10,59,147,572,2),(3675,10,59,147,573,3),(3677,10,59,147,836,5),(3747,10,61,154,96,43),(3749,10,61,154,98,44),(3751,10,61,154,101,45),(3753,10,61,154,102,52),(3757,10,61,154,273,47),(3759,10,61,154,274,48),(3761,10,61,154,481,49),(3763,10,61,154,500,58),(3765,10,61,154,526,50),(3767,10,61,189,562,51),(3769,10,61,154,704,53),(3771,10,61,154,705,54),(3773,10,61,154,873,55),(3775,10,61,154,875,56),(3777,10,61,154,876,57),(3779,10,61,155,99,43),(3781,10,61,155,100,44),(3783,10,61,155,270,45),(3785,10,61,155,567,46),(3787,10,61,155,568,47),(3789,10,61,155,569,48),(3791,10,61,155,862,49),(3793,10,61,156,103,43),(3795,10,61,156,104,44),(3797,10,61,156,105,45),(3799,10,61,157,106,46),(3801,10,61,157,109,44),(3803,10,61,157,271,45),(3805,10,61,157,493,43),(3807,10,61,157,703,47),(3809,10,61,158,97,43),(3811,10,61,158,506,44),(3813,10,61,159,531,46),(3815,10,61,159,571,43),(3817,10,61,159,572,44),(3819,10,61,159,573,45),(3821,10,61,159,836,47),(3823,10,60,148,96,1),(3825,10,60,148,98,2),(3827,10,60,148,101,3),(3829,10,60,148,102,10),(3833,10,60,148,273,5),(3835,10,60,148,274,6),(3837,10,60,148,481,7),(3839,10,60,148,526,8),(3841,10,60,185,562,9),(3843,10,60,148,704,12),(3845,10,60,148,705,13),(3847,10,60,148,877,11),(3849,10,60,149,99,1),(3851,10,60,149,100,2),(3853,10,60,149,270,3),(3855,10,60,149,567,4),(3857,10,60,149,568,5),(3859,10,60,149,569,6),(3861,10,60,149,862,7),(3863,10,60,150,103,1),(3865,10,60,150,104,2),(3867,10,60,150,105,3),(3869,10,60,151,106,4),(3871,10,60,151,109,2),(3873,10,60,151,271,3),(3875,10,60,151,493,1),(3877,10,60,151,703,5),(3879,10,60,152,97,1),(3881,10,60,152,506,2),(3883,10,60,153,531,4),(3885,10,60,153,571,1),(3887,10,60,153,572,2),(3889,10,60,153,573,3),(3891,10,60,153,836,5),(3909,10,62,160,110,15),(3917,10,62,160,570,21),(3923,10,62,160,706,24),(3925,10,62,160,837,25),(3927,10,62,160,838,26),(3929,10,62,160,859,27),(3931,10,62,160,860,28),(3933,10,62,160,861,29),(3935,10,62,160,863,30),(3939,10,62,161,503,1),(3983,10,62,160,96,1),(3985,10,62,160,98,2),(3987,10,62,160,101,3),(3989,10,62,160,102,12),(3993,10,62,160,273,5),(3995,10,62,160,274,6),(3997,10,62,160,481,7),(3999,10,62,160,499,10),(4001,10,62,160,526,8),(4003,10,62,188,562,9),(4005,10,62,160,704,13),(4007,10,62,160,705,14),(4009,10,62,160,878,11),(4011,10,62,161,99,1),(4013,10,62,161,100,2),(4015,10,62,161,270,3),(4017,10,62,161,567,4),(4019,10,62,161,568,5),(4021,10,62,161,569,6),(4023,10,62,161,862,7),(4025,10,62,162,103,1),(4027,10,62,162,104,2),(4029,10,62,162,105,3),(4031,10,62,163,106,4),(4033,10,62,163,109,2),(4035,10,62,163,271,3),(4037,10,62,163,493,1),(4039,10,62,163,703,5),(4041,10,62,164,97,1),(4043,10,62,164,506,2),(4045,10,62,165,531,4),(4047,10,62,165,571,1),(4049,10,62,165,572,2),(4051,10,62,165,573,3),(4053,10,62,165,836,5),(4055,10,38,47,96,1),(4057,10,38,47,98,3),(4059,10,38,47,101,4),(4061,10,38,47,102,5),(4063,10,38,47,273,6),(4065,10,38,47,274,7),(4067,10,38,47,481,8),(4069,10,38,47,495,2),(4071,10,38,47,526,9),(4073,10,38,183,562,10),(4075,10,38,47,704,11),(4077,10,38,47,705,12),(4079,10,38,49,99,1),(4081,10,38,49,100,2),(4083,10,38,49,270,3),(4085,10,38,49,567,4),(4087,10,38,49,568,5),(4089,10,38,49,569,6),(4091,10,38,49,862,7),(4093,10,38,48,103,1),(4095,10,38,48,104,2),(4097,10,38,48,105,3),(4099,10,38,84,97,2),(4101,10,38,84,492,3),(4103,10,38,84,506,1),(4105,10,38,50,106,3),(4107,10,38,50,109,2),(4109,10,38,50,271,4),(4111,10,38,50,493,1),(4113,10,38,50,703,5),(4115,10,38,85,272,3),(4117,10,38,85,494,1),(4119,10,38,85,496,2),(4121,10,38,120,531,4),(4123,10,38,120,571,1),(4125,10,38,120,572,2),(4127,10,38,120,573,3),(4129,10,38,120,836,5),(4131,10,46,96,96,1),(4133,10,46,96,98,2),(4135,10,46,96,101,3),(4137,10,46,96,102,10),(4141,10,46,96,272,11),(4143,10,46,96,273,5),(4145,10,46,96,274,6),(4147,10,46,96,481,7),(4149,10,46,96,526,8),(4151,10,46,191,562,9),(4153,10,46,96,704,12),(4155,10,46,96,705,13),(4157,10,46,97,99,1),(4159,10,46,97,100,2),(4161,10,46,97,270,3),(4163,10,46,97,567,4),(4165,10,46,97,568,5),(4167,10,46,97,569,6),(4169,10,46,97,862,7),(4171,10,46,98,103,1),(4173,10,46,98,104,2),(4175,10,46,98,105,3),(4177,10,46,99,106,4),(4179,10,46,99,109,2),(4181,10,46,99,271,3),(4183,10,46,99,493,1),(4185,10,46,99,703,5),(4187,10,46,100,97,1),(4189,10,46,100,506,2),(4191,10,46,124,531,4),(4193,10,46,124,571,1),(4195,10,46,124,572,2),(4197,10,46,124,573,3),(4199,10,46,124,836,5),(4273,10,41,59,96,1),(4275,10,41,59,98,3),(4277,10,41,59,101,4),(4279,10,41,59,102,10),(4281,10,41,59,273,5),(4283,10,41,59,274,6),(4285,10,41,59,481,7),(4287,10,41,59,495,2),(4289,10,41,59,526,8),(4291,10,41,193,562,9),(4293,10,41,59,704,11),(4295,10,41,59,705,12),(4297,10,41,61,99,1),(4299,10,41,61,100,2),(4301,10,41,61,270,3),(4303,10,41,61,567,4),(4305,10,41,61,568,5),(4307,10,41,61,569,6),(4309,10,41,61,862,7),(4311,10,41,60,103,1),(4313,10,41,60,104,2),(4315,10,41,60,105,3),(4317,10,41,62,106,3),(4319,10,41,62,109,2),(4321,10,41,62,271,4),(4323,10,41,62,493,1),(4325,10,41,62,703,5),(4327,10,41,89,97,2),(4329,10,41,89,506,1),(4331,10,41,94,272,3),(4333,10,41,94,501,1),(4335,10,41,94,525,2),(4337,10,41,126,531,4),(4339,10,41,126,571,1),(4341,10,41,126,572,2),(4343,10,41,126,573,3),(4345,10,41,126,836,5),(4347,10,45,80,96,1),(4349,10,45,80,98,2),(4351,10,45,80,101,3),(4353,10,45,80,102,9),(4355,10,45,80,273,4),(4357,10,45,80,274,5),(4359,10,45,80,481,6),(4361,10,45,80,526,7),(4363,10,45,192,562,8),(4365,10,45,80,704,10),(4367,10,45,80,705,11),(4369,10,45,83,99,1),(4371,10,45,83,100,2),(4373,10,45,83,270,3),(4375,10,45,83,567,4),(4377,10,45,83,568,5),(4379,10,45,83,569,6),(4381,10,45,83,862,7),(4383,10,45,81,103,1),(4385,10,45,81,104,2),(4387,10,45,81,105,3),(4389,10,45,82,106,1),(4391,10,45,82,109,2),(4393,10,45,82,271,4),(4395,10,45,82,493,3),(4397,10,45,82,703,5),(4399,10,45,92,97,1),(4401,10,45,92,506,2),(4403,10,45,93,272,3),(4405,10,45,93,501,2),(4407,10,45,93,525,1),(4409,10,45,123,531,4),(4411,10,45,123,571,1),(4413,10,45,123,572,2),(4415,10,45,123,573,3),(4417,10,45,123,836,5),(4418,10,44,72,879,26),(4419,10,38,47,879,67),(4420,10,39,51,879,69),(4421,10,60,148,879,31),(4422,10,9,4,879,31),(4423,10,42,63,879,68),(4424,10,62,160,879,31),(4425,10,61,154,879,59),(4426,10,58,136,879,31),(4427,10,46,96,879,31),(4428,10,45,80,879,24),(4429,10,41,59,879,25),(4430,10,40,55,879,67),(4431,10,59,142,879,31),(4432,10,44,72,880,27),(4433,10,38,47,880,68),(4434,10,39,51,880,70),(4435,10,60,148,880,32),(4436,10,9,4,880,32),(4437,10,42,63,880,69),(4438,10,62,160,880,32),(4439,10,61,154,880,60),(4440,10,58,136,880,32),(4441,10,46,96,880,32),(4442,10,45,80,880,25),(4443,10,41,59,880,26),(4444,10,40,55,880,68),(4445,10,59,142,880,32),(4446,10,44,72,881,28),(4447,10,38,47,881,69),(4448,10,39,51,881,71),(4449,10,60,148,881,33),(4450,10,9,4,881,33),(4451,10,42,63,881,70),(4452,10,62,160,881,33),(4453,10,61,154,881,61),(4454,10,58,136,881,33),(4455,10,46,96,881,33),(4456,10,45,80,881,26),(4457,10,41,59,881,27),(4458,10,40,55,881,69),(4459,10,59,142,881,33),(4460,4,18,23,882,107),(4461,4,18,23,883,108),(4462,4,18,23,884,109),(4463,4,18,23,885,110),(4464,4,18,23,886,111),(4465,4,18,23,887,112),(4466,4,18,23,888,113),(4467,4,18,23,889,114),(4468,4,18,23,890,115),(4469,18,30,28,891,37),(4470,18,30,28,892,38),(4471,18,30,28,893,39),(4472,28,55,133,894,35),(4473,28,55,133,895,36),(4474,28,55,133,896,37),(4475,4,18,23,897,116),(4476,4,18,23,898,117),(4477,4,18,23,899,118),(4478,4,18,23,900,119),(4479,4,18,23,901,120),(4480,4,18,23,902,121),(4481,10,44,75,903,29),(4482,10,38,49,903,70),(4483,10,39,53,903,72),(4484,10,60,149,903,34),(4485,10,9,9,903,34),(4486,10,42,66,903,71),(4487,10,62,161,903,34),(4488,10,61,155,903,62),(4489,10,58,137,903,34),(4490,10,46,97,903,34),(4491,10,45,83,903,27),(4492,10,41,61,903,28),(4493,10,40,57,903,70),(4494,10,59,143,903,34),(4495,10,44,72,904,29),(4496,10,38,47,904,70),(4497,10,39,51,904,72),(4498,10,60,148,904,34),(4499,10,9,4,904,34),(4500,10,42,63,904,71),(4501,10,62,160,904,34),(4502,10,61,154,904,62),(4503,10,58,136,904,34),(4504,10,46,96,904,34),(4505,10,45,80,904,27),(4506,10,41,59,904,28),(4507,10,40,55,904,70),(4508,10,59,142,904,34),(4509,10,44,72,905,30),(4510,10,38,47,905,71),(4511,10,39,51,905,73),(4512,10,60,148,905,35),(4513,10,9,4,905,35),(4514,10,42,63,905,72),(4515,10,62,160,905,35),(4516,10,61,154,905,63),(4517,10,58,136,905,35),(4518,10,46,96,905,35),(4519,10,45,80,905,28),(4520,10,41,59,905,29),(4521,10,40,55,905,71),(4522,10,59,142,905,35),(4523,10,44,72,906,31),(4524,10,38,47,906,72),(4525,10,39,51,906,74),(4526,10,60,148,906,36),(4527,10,9,4,906,36),(4528,10,42,63,906,73),(4529,10,62,160,906,36),(4530,10,61,154,906,64),(4531,10,58,136,906,36),(4532,10,46,96,906,36),(4533,10,45,80,906,29),(4534,10,41,59,906,30),(4535,10,40,55,906,72),(4536,10,59,142,906,36),(4537,29,56,134,907,18),(4538,29,56,134,908,19),(4539,29,56,134,909,20),(4540,29,56,134,910,21),(4541,20,32,30,911,19),(4542,20,32,30,912,20),(4543,20,32,30,913,21),(4544,20,32,30,914,22),(4545,20,32,30,915,23),(4546,29,56,134,916,22),(4547,29,56,134,917,23),(4548,29,56,134,918,24),(4549,29,56,134,919,25),(4550,29,56,134,920,26),(4551,20,32,30,921,24),(4552,20,32,30,922,25),(4553,20,32,30,923,26),(4554,20,32,30,924,27),(4555,1,1,1,925,110),(4556,1,1,1,926,84),(4557,1,1,1,927,85),(4558,1,1,1,928,86),(4559,9,12,166,929,40),(4560,9,12,166,930,50),(4561,10,44,119,931,15),(4562,10,38,120,931,6),(4563,10,39,121,931,57),(4564,10,60,153,931,6),(4565,10,9,118,931,18),(4566,10,42,122,931,56),(4567,10,62,165,931,6),(4568,10,61,159,931,48),(4569,10,58,141,931,6),(4570,10,46,124,931,6),(4571,10,45,123,931,6),(4572,10,41,126,931,6),(4573,10,40,125,931,56),(4574,10,59,147,931,6),(4575,10,44,72,932,32),(4576,10,38,47,932,73),(4577,10,39,51,932,75),(4578,10,60,148,932,37),(4579,10,9,4,932,37),(4580,10,42,63,932,74),(4581,10,62,160,932,37),(4582,10,61,154,932,65),(4583,10,58,136,932,37),(4584,10,46,96,932,37),(4585,10,45,80,932,30),(4586,10,41,59,932,31),(4587,10,40,55,932,73),(4588,10,59,142,932,37),(4589,10,44,72,933,33),(4590,10,38,47,933,74),(4591,10,39,51,933,76),(4592,10,60,148,933,38),(4593,10,9,4,933,38),(4594,10,42,63,933,75),(4595,10,62,160,933,38),(4596,10,61,154,933,66),(4597,10,58,136,933,38),(4598,10,46,96,933,38),(4599,10,45,80,933,31),(4600,10,41,59,933,32),(4601,10,40,55,933,74),(4602,10,59,142,933,38),(4603,9,12,7,934,10),(4604,10,44,168,935,1),(4605,10,38,169,935,1),(4606,10,39,170,935,1),(4607,10,60,171,935,1),(4608,10,9,172,935,1),(4609,10,42,173,935,1),(4610,10,62,174,935,1),(4611,10,61,175,935,1),(4612,10,58,176,935,1),(4613,10,46,177,935,1),(4614,10,45,178,935,1),(4615,10,41,179,935,1),(4616,10,40,180,935,1),(4617,10,59,181,935,1),(4618,10,44,168,936,2),(4619,10,38,169,936,2),(4620,10,39,170,936,2),(4621,10,60,171,936,2),(4622,10,9,172,936,2),(4623,10,42,173,936,2),(4624,10,62,174,936,2),(4625,10,61,175,936,2),(4626,10,58,176,936,2),(4627,10,46,177,936,2),(4628,10,45,178,936,2),(4629,10,41,179,936,2),(4630,10,40,180,936,2),(4631,10,59,181,936,2),(4632,9,12,167,937,5),(4633,9,12,167,938,6),(4634,9,12,166,939,51),(4635,10,44,72,940,34),(4636,10,38,47,940,75),(4637,10,39,51,940,77),(4638,10,60,148,940,39),(4639,10,9,4,940,39),(4640,10,42,63,940,76),(4641,10,62,160,940,39),(4642,10,61,154,940,67),(4643,10,58,136,940,39),(4644,10,46,96,940,39),(4645,10,45,80,940,32),(4646,10,41,59,940,33),(4647,10,40,55,940,75),(4648,10,59,142,940,39),(4649,10,44,75,941,30),(4650,10,38,49,941,71),(4651,10,39,53,941,73),(4652,10,60,149,941,35),(4653,10,9,9,941,35),(4654,10,42,66,941,72),(4655,10,62,161,941,35),(4656,10,61,155,941,63),(4657,10,58,137,941,35),(4658,10,46,97,941,35),(4659,10,45,83,941,28),(4660,10,41,61,941,29),(4661,10,40,57,941,71),(4662,10,59,143,941,35),(4663,10,44,75,942,31),(4664,10,38,49,942,72),(4665,10,39,53,942,74),(4666,10,60,149,942,36),(4667,10,9,9,942,36),(4668,10,42,66,942,73),(4669,10,62,161,942,36),(4670,10,61,155,942,64),(4671,10,58,137,942,36),(4672,10,46,97,942,36),(4673,10,45,83,942,29),(4674,10,41,61,942,30),(4675,10,40,57,942,72),(4676,10,59,143,942,36),(4677,10,44,75,943,32),(4678,10,38,49,943,73),(4679,10,39,53,943,75),(4680,10,60,149,943,37),(4681,10,9,9,943,37),(4682,10,42,66,943,74),(4683,10,62,161,943,37),(4684,10,61,155,943,65),(4685,10,58,137,943,37),(4686,10,46,97,943,37),(4687,10,45,83,943,30),(4688,10,41,61,943,31),(4689,10,40,57,943,73),(4690,10,59,143,943,37),(4691,4,18,23,944,122),(4692,4,18,23,945,123),(4693,4,18,23,946,124),(4694,4,18,23,947,125),(4695,8,22,26,948,56),(4696,4,18,23,949,126),(4697,8,22,26,950,57),(4698,8,22,26,951,58),(4699,10,44,72,952,35),(4700,10,38,47,952,76),(4701,10,39,51,952,78),(4702,10,60,148,952,40),(4703,10,9,4,952,40),(4704,10,42,63,952,77),(4705,10,62,160,952,40),(4706,10,61,154,952,68),(4707,10,58,136,952,40),(4708,10,46,96,952,40),(4709,10,45,80,952,33),(4710,10,41,59,952,34),(4711,10,40,55,952,76),(4712,10,59,142,952,40),(4713,9,12,7,953,4);


/*Table structure for table `eav_entity_datetime` */


CREATE TABLE `eav_entity_datetime` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `value` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Attribute Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_EAV_ENTITY_DATETIME_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ENTITY_DATETIME_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  KEY `IDX_EAV_ENTITY_DATETIME_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  KEY `IDX_EAV_ENTITY_DATETIME_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`),
  CONSTRAINT `FK_EAV_ENTT_DTIME_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_DATETIME_ENTITY_ID_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `eav_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_DATETIME_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

/*Data for the table `eav_entity_datetime` */



/*Table structure for table `eav_entity_decimal` */


CREATE TABLE `eav_entity_decimal` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Attribute Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ENTITY_DECIMAL_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_EAV_ENTITY_DECIMAL_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  KEY `IDX_EAV_ENTITY_DECIMAL_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`),
  CONSTRAINT `FK_EAV_ENTT_DEC_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_DECIMAL_ENTITY_ID_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `eav_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_DECIMAL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

/*Data for the table `eav_entity_decimal` */



/*Table structure for table `eav_entity_int` */


CREATE TABLE `eav_entity_int` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `value` int(11) NOT NULL COMMENT 'Attribute Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_EAV_ENTITY_INT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ENTITY_INT_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ENTITY_INT_ENTITY_ID` (`entity_id`),
  KEY `IDX_EAV_ENTITY_INT_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  KEY `IDX_EAV_ENTITY_INT_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`),
  CONSTRAINT `FK_EAV_ENTITY_INT_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_INT_ENTITY_ID_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `eav_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_INT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

/*Data for the table `eav_entity_int` */



/*Table structure for table `eav_entity_store` */


CREATE TABLE `eav_entity_store` (
  `entity_store_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Store Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `increment_prefix` varchar(20) DEFAULT NULL COMMENT 'Increment Prefix',
  `increment_last_id` varchar(50) DEFAULT NULL COMMENT 'Last Incremented Id',
  PRIMARY KEY (`entity_store_id`),
  KEY `IDX_EAV_ENTITY_STORE_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_EAV_ENTITY_STORE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTT_STORE_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Store';

/*Data for the table `eav_entity_store` */



/*Table structure for table `eav_entity_text` */


CREATE TABLE `eav_entity_text` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `value` text NOT NULL COMMENT 'Attribute Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_EAV_ENTITY_TEXT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ENTITY_TEXT_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_EAV_ENTITY_TEXT_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_TEXT_ENTITY_ID_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `eav_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_TEXT_ENTITY_TYPE_ID_EAV_ENTITY_TYPE_ENTITY_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

/*Data for the table `eav_entity_text` */



/*Table structure for table `eav_entity_type` */


CREATE TABLE `eav_entity_type` (
  `entity_type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Type Id',
  `entity_type_code` varchar(50) NOT NULL COMMENT 'Entity Type Code',
  `entity_model` varchar(255) NOT NULL COMMENT 'Entity Model',
  `attribute_model` varchar(255) DEFAULT NULL COMMENT 'Attribute Model',
  `entity_table` varchar(255) DEFAULT NULL COMMENT 'Entity Table',
  `value_table_prefix` varchar(255) DEFAULT NULL COMMENT 'Value Table Prefix',
  `entity_id_field` varchar(255) DEFAULT NULL COMMENT 'Entity Id Field',
  `is_data_sharing` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Defines Is Data Sharing',
  `data_sharing_key` varchar(100) DEFAULT 'default' COMMENT 'Data Sharing Key',
  `default_attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Default Attribute Set Id',
  `increment_model` varchar(255) DEFAULT '' COMMENT 'Increment Model',
  `increment_per_store` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Increment Per Store',
  `increment_pad_length` smallint(5) unsigned NOT NULL DEFAULT '8' COMMENT 'Increment Pad Length',
  `increment_pad_char` varchar(1) NOT NULL DEFAULT '0' COMMENT 'Increment Pad Char',
  `additional_attribute_table` varchar(255) DEFAULT '' COMMENT 'Additional Attribute Table',
  `entity_attribute_collection` varchar(255) DEFAULT '' COMMENT 'Entity Attribute Collection',
  PRIMARY KEY (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_TYPE_ENTITY_TYPE_CODE` (`entity_type_code`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COMMENT='Eav Entity Type';

/*Data for the table `eav_entity_type` */


insert  into `eav_entity_type`(`entity_type_id`,`entity_type_code`,`entity_model`,`attribute_model`,`entity_table`,`value_table_prefix`,`entity_id_field`,`is_data_sharing`,`data_sharing_key`,`default_attribute_set_id`,`increment_model`,`increment_per_store`,`increment_pad_length`,`increment_pad_char`,`additional_attribute_table`,`entity_attribute_collection`) values (1,'customer','customer/customer','customer/attribute','customer/entity','','',1,'default',1,'eav/entity_increment_numeric',0,8,'0','customer/eav_attribute','customer/attribute_collection'),(2,'customer_address','customer/address','customer/attribute','customer/address_entity','','',1,'default',2,'',0,8,'0','customer/eav_attribute','customer/address_attribute_collection'),(3,'customer_payment','','','customer/entity','','',1,'default',3,'',0,8,'0','',''),(4,'order','sales/order','','sales/order','','',1,'default',18,'eav/entity_increment_numeric',1,8,'0','',''),(5,'order_status','','','sales/order','','',1,'default',0,'',0,8,'0','',''),(6,'order_address','sales/order_address','','sales/order_entity','','',1,'default',20,'',0,8,'0','',''),(7,'order_item','sales/order_item','','sales/order_entity','','',1,'default',21,'',0,8,'0','',''),(8,'order_payment','sales/order_payment','','sales/order_entity','','',1,'default',22,'',0,8,'0','',''),(9,'catalog_category','catalog/category','catalog/resource_eav_attribute','catalog/category','','',0,'default',12,'',0,8,'0','catalog/eav_attribute','catalog/category_attribute_collection'),(10,'catalog_product','catalog/product','catalog/resource_eav_attribute','catalog/product','','',0,'default',9,'',0,8,'0','catalog/eav_attribute','catalog/product_attribute_collection'),(11,'quote','sales/quote','','sales/quote','','',1,'default',23,'',0,8,'0','',''),(12,'quote_address','sales/quote_address','','sales/quote_address','','',1,'default',24,'',0,8,'0','',''),(13,'quote_address_rate','sales/quote_address_rate','','sales/quote_entity','','',1,'default',25,'',0,8,'0','',''),(14,'quote_address_item','sales/quote_address_item','','sales/quote_entity','','',1,'default',26,'',0,8,'0','',''),(15,'quote_item','sales/quote_item','','sales/quote_item','','',1,'default',27,'',0,8,'0','',''),(16,'quote_payment','sales/quote_payment','','sales/quote_entity','','',1,'default',28,'',0,8,'0','',''),(17,'order_status_history','sales/order_status_history','','sales/order_entity','','',1,'default',29,'',0,8,'0','',''),(18,'invoice','sales/order_invoice','','sales/order_entity','','',1,'default',30,'eav/entity_increment_numeric',1,8,'0','',''),(20,'invoice_item','sales/order_invoice_item','','sales/order_entity','','',1,'default',32,'',0,8,'0','',''),(22,'invoice_shipment','','','sales/invoice','','',1,'default',34,'',0,8,'0','',''),(23,'invoice_comment','sales/order_invoice_comment','','sales/order_entity','','',1,'default',50,'',0,8,'0','',''),(24,'shipment','sales/order_shipment','','sales/order_entity','','',1,'default',51,'eav/entity_increment_numeric',1,8,'0','',''),(25,'shipment_item','sales/order_shipment_item','','sales/order_entity','','',1,'default',52,'',0,8,'0','',''),(26,'shipment_comment','sales/order_shipment_comment','','sales/order_entity','','',1,'default',53,'',0,8,'0','',''),(27,'shipment_track','sales/order_shipment_track','','sales/order_entity','','',1,'default',54,'',0,8,'0','',''),(28,'creditmemo','sales/order_creditmemo','','sales/order_entity','','',1,'default',55,'eav/entity_increment_numeric',1,8,'0','',''),(29,'creditmemo_item','sales/order_creditmemo_item','','sales/order_entity','','',1,'default',56,'',0,8,'0','',''),(30,'creditmemo_comment','sales/order_creditmemo_comment','','sales/order_entity','','',1,'default',57,'',0,8,'0','','');


/*Table structure for table `eav_entity_varchar` */


CREATE TABLE `eav_entity_varchar` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `value` varchar(255) NOT NULL COMMENT 'Attribute Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_EAV_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_EAV_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_EAV_ENTITY_VARCHAR_STORE_ID` (`store_id`),
  KEY `IDX_EAV_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  KEY `IDX_EAV_ENTITY_VARCHAR_ATTRIBUTE_ID_VALUE` (`attribute_id`,`value`),
  KEY `IDX_EAV_ENTITY_VARCHAR_ENTITY_TYPE_ID_VALUE` (`entity_type_id`,`value`),
  CONSTRAINT `FK_EAV_ENTT_VCHR_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_VARCHAR_ENTITY_ID_EAV_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `eav_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_ENTITY_VARCHAR_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Entity Value Prefix';

/*Data for the table `eav_entity_varchar` */



/*Table structure for table `eav_form_element` */


CREATE TABLE `eav_form_element` (
  `element_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Element Id',
  `type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Type Id',
  `fieldset_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Fieldset Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`element_id`),
  UNIQUE KEY `UNQ_EAV_FORM_ELEMENT_TYPE_ID_ATTRIBUTE_ID` (`type_id`,`attribute_id`),
  KEY `IDX_EAV_FORM_ELEMENT_TYPE_ID` (`type_id`),
  KEY `IDX_EAV_FORM_ELEMENT_FIELDSET_ID` (`fieldset_id`),
  KEY `IDX_EAV_FORM_ELEMENT_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_EAV_FORM_ELEMENT_TYPE_ID_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `eav_form_type` (`type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_FORM_ELEMENT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_FORM_ELEMENT_FIELDSET_ID_EAV_FORM_FIELDSET_FIELDSET_ID` FOREIGN KEY (`fieldset_id`) REFERENCES `eav_form_fieldset` (`fieldset_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8 COMMENT='Eav Form Element';

/*Data for the table `eav_form_element` */


insert  into `eav_form_element`(`element_id`,`type_id`,`fieldset_id`,`attribute_id`,`sort_order`) values (1,1,1,1,0),(2,1,1,2,1),(3,1,1,3,2),(4,2,2,1,0),(5,2,2,2,1),(6,2,2,3,2),(7,3,3,9,0),(8,3,3,10,1),(9,3,3,95,2),(10,3,3,17,3),(11,3,3,18,4),(12,3,4,16,0),(13,3,4,15,1),(14,3,4,12,2),(15,3,4,14,3),(16,3,4,11,4),(17,4,NULL,9,0),(18,4,NULL,10,1),(19,4,NULL,95,2),(20,4,NULL,3,3),(21,4,NULL,16,4),(22,4,NULL,15,5),(23,4,NULL,12,6),(24,4,NULL,14,7),(25,4,NULL,11,8),(26,4,NULL,17,9),(27,4,NULL,18,10),(28,5,NULL,9,0),(29,5,NULL,10,1),(30,5,NULL,95,2),(31,5,NULL,3,3),(32,5,NULL,16,4),(33,5,NULL,15,5),(34,5,NULL,12,6),(35,5,NULL,14,7),(36,5,NULL,11,8),(37,5,NULL,17,9),(38,5,NULL,18,10),(39,6,NULL,9,0),(40,6,NULL,10,1),(41,6,NULL,95,2),(42,6,NULL,16,3),(43,6,NULL,15,4),(44,6,NULL,12,5),(45,6,NULL,14,6),(46,6,NULL,11,7),(47,6,NULL,17,8),(48,6,NULL,18,9),(49,7,NULL,9,0),(50,7,NULL,10,1),(51,7,NULL,95,2),(52,7,NULL,16,3),(53,7,NULL,15,4),(54,7,NULL,12,5),(55,7,NULL,14,6),(56,7,NULL,11,7),(57,7,NULL,17,8),(58,7,NULL,18,9),(59,8,5,1,0),(60,8,5,2,1),(61,8,5,3,2),(62,8,6,95,0),(63,8,6,17,1),(64,8,6,16,2),(65,8,6,15,3),(66,8,6,12,4),(67,8,6,14,5),(68,8,6,11,6);


/*Table structure for table `eav_form_fieldset` */


CREATE TABLE `eav_form_fieldset` (
  `fieldset_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Fieldset Id',
  `type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Type Id',
  `code` varchar(64) NOT NULL COMMENT 'Code',
  `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`fieldset_id`),
  UNIQUE KEY `UNQ_EAV_FORM_FIELDSET_TYPE_ID_CODE` (`type_id`,`code`),
  KEY `IDX_EAV_FORM_FIELDSET_TYPE_ID` (`type_id`),
  CONSTRAINT `FK_EAV_FORM_FIELDSET_TYPE_ID_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `eav_form_type` (`type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='Eav Form Fieldset';

/*Data for the table `eav_form_fieldset` */


insert  into `eav_form_fieldset`(`fieldset_id`,`type_id`,`code`,`sort_order`) values (1,1,'general',1),(2,2,'general',1),(3,3,'contact',1),(4,3,'address',2),(5,8,'general',1),(6,8,'address',2);


/*Table structure for table `eav_form_fieldset_label` */


CREATE TABLE `eav_form_fieldset_label` (
  `fieldset_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Fieldset Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `label` varchar(255) NOT NULL COMMENT 'Label',
  PRIMARY KEY (`fieldset_id`,`store_id`),
  KEY `IDX_EAV_FORM_FIELDSET_LABEL_FIELDSET_ID` (`fieldset_id`),
  KEY `IDX_EAV_FORM_FIELDSET_LABEL_STORE_ID` (`store_id`),
  CONSTRAINT `FK_EAV_FORM_FIELDSET_LABEL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_FORM_FSET_LBL_FSET_ID_EAV_FORM_FSET_FSET_ID` FOREIGN KEY (`fieldset_id`) REFERENCES `eav_form_fieldset` (`fieldset_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Fieldset Label';

/*Data for the table `eav_form_fieldset_label` */


insert  into `eav_form_fieldset_label`(`fieldset_id`,`store_id`,`label`) values (1,0,'Personal Information'),(2,0,'Account Information'),(3,0,'Contact Information'),(4,0,'Address'),(5,0,'Personal Information'),(6,0,'Address Information');


/*Table structure for table `eav_form_type` */


CREATE TABLE `eav_form_type` (
  `type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Type Id',
  `code` varchar(64) NOT NULL COMMENT 'Code',
  `label` varchar(255) NOT NULL COMMENT 'Label',
  `is_system` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is System',
  `theme` varchar(64) DEFAULT NULL COMMENT 'Theme',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  PRIMARY KEY (`type_id`),
  UNIQUE KEY `UNQ_EAV_FORM_TYPE_CODE_THEME_STORE_ID` (`code`,`theme`,`store_id`),
  KEY `IDX_EAV_FORM_TYPE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_EAV_FORM_TYPE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='Eav Form Type';

/*Data for the table `eav_form_type` */


insert  into `eav_form_type`(`type_id`,`code`,`label`,`is_system`,`theme`,`store_id`) values (1,'customer_account_create','customer_account_create',1,'',0),(2,'customer_account_edit','customer_account_edit',1,'',0),(3,'customer_address_edit','customer_address_edit',1,'',0),(4,'checkout_onepage_register','checkout_onepage_register',1,'',0),(5,'checkout_onepage_register_guest','checkout_onepage_register_guest',1,'',0),(6,'checkout_onepage_billing_address','checkout_onepage_billing_address',1,'',0),(7,'checkout_onepage_shipping_address','checkout_onepage_shipping_address',1,'',0),(8,'checkout_multishipping_register','checkout_multishipping_register',1,'',0);


/*Table structure for table `eav_form_type_entity` */


CREATE TABLE `eav_form_type_entity` (
  `type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Type Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  PRIMARY KEY (`type_id`,`entity_type_id`),
  KEY `IDX_EAV_FORM_TYPE_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`),
  CONSTRAINT `FK_EAV_FORM_TYPE_ENTITY_TYPE_ID_EAV_FORM_TYPE_TYPE_ID` FOREIGN KEY (`type_id`) REFERENCES `eav_form_type` (`type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_EAV_FORM_TYPE_ENTT_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID` FOREIGN KEY (`entity_type_id`) REFERENCES `eav_entity_type` (`entity_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Eav Form Type Entity';

/*Data for the table `eav_form_type_entity` */


insert  into `eav_form_type_entity`(`type_id`,`entity_type_id`) values (1,1),(2,1),(4,1),(5,1),(8,1),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2);


/*Table structure for table `gift_message` */


CREATE TABLE `gift_message` (
  `gift_message_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'GiftMessage Id',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer id',
  `sender` varchar(255) DEFAULT NULL COMMENT 'Sender',
  `recipient` varchar(255) DEFAULT NULL COMMENT 'Recipient',
  `message` text COMMENT 'Message',
  PRIMARY KEY (`gift_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Gift Message';

/*Data for the table `gift_message` */



/*Table structure for table `googlecheckout_notification` */


CREATE TABLE `googlecheckout_notification` (
  `serial_number` varchar(64) NOT NULL COMMENT 'Serial Number',
  `started_at` timestamp NULL DEFAULT NULL COMMENT 'Started At',
  `status` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Status',
  PRIMARY KEY (`serial_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Google Checkout Notification Table';

/*Data for the table `googlecheckout_notification` */



/*Table structure for table `importexport_importdata` */


CREATE TABLE `importexport_importdata` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `entity` varchar(50) NOT NULL COMMENT 'Entity',
  `behavior` varchar(10) NOT NULL DEFAULT 'append' COMMENT 'Behavior',
  `data` longtext COMMENT 'Data',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Import Data Table';

/*Data for the table `importexport_importdata` */



/*Table structure for table `index_event` */


CREATE TABLE `index_event` (
  `event_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Event Id',
  `type` varchar(64) NOT NULL COMMENT 'Type',
  `entity` varchar(64) NOT NULL COMMENT 'Entity',
  `entity_pk` bigint(20) DEFAULT NULL COMMENT 'Entity Primary Key',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Creation Time',
  `old_data` mediumtext COMMENT 'Old Data',
  `new_data` mediumtext COMMENT 'New Data',
  PRIMARY KEY (`event_id`),
  UNIQUE KEY `UNQ_INDEX_EVENT_TYPE_ENTITY_ENTITY_PK` (`type`,`entity`,`entity_pk`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Index Event';

/*Data for the table `index_event` */



/*Table structure for table `index_process` */


CREATE TABLE `index_process` (
  `process_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Process Id',
  `indexer_code` varchar(32) NOT NULL COMMENT 'Indexer Code',
  `status` varchar(15) NOT NULL DEFAULT 'pending' COMMENT 'Status',
  `started_at` timestamp NULL DEFAULT NULL COMMENT 'Started At',
  `ended_at` timestamp NULL DEFAULT NULL COMMENT 'Ended At',
  `mode` varchar(9) NOT NULL DEFAULT 'real_time' COMMENT 'Mode',
  PRIMARY KEY (`process_id`),
  UNIQUE KEY `UNQ_INDEX_PROCESS_INDEXER_CODE` (`indexer_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Index Process';

/*Data for the table `index_process` */



/*Table structure for table `index_process_event` */


CREATE TABLE `index_process_event` (
  `process_id` int(10) unsigned NOT NULL COMMENT 'Process Id',
  `event_id` bigint(20) unsigned NOT NULL COMMENT 'Event Id',
  `status` varchar(7) NOT NULL DEFAULT 'new' COMMENT 'Status',
  PRIMARY KEY (`process_id`,`event_id`),
  KEY `IDX_INDEX_PROCESS_EVENT_EVENT_ID` (`event_id`),
  CONSTRAINT `FK_INDEX_PROCESS_EVENT_EVENT_ID_INDEX_EVENT_EVENT_ID` FOREIGN KEY (`event_id`) REFERENCES `index_event` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_INDEX_PROCESS_EVENT_PROCESS_ID_INDEX_PROCESS_PROCESS_ID` FOREIGN KEY (`process_id`) REFERENCES `index_process` (`process_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Index Process Event';

/*Data for the table `index_process_event` */



/*Table structure for table `log_customer` */


CREATE TABLE `log_customer` (
  `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Log ID',
  `visitor_id` bigint(20) unsigned DEFAULT NULL COMMENT 'Visitor ID',
  `customer_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Customer ID',
  `login_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Login Time',
  `logout_at` timestamp NULL DEFAULT NULL COMMENT 'Logout Time',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  PRIMARY KEY (`log_id`),
  KEY `IDX_LOG_CUSTOMER_VISITOR_ID` (`visitor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Customers Table';

/*Data for the table `log_customer` */



/*Table structure for table `log_quote` */


CREATE TABLE `log_quote` (
  `quote_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quote ID',
  `visitor_id` bigint(20) unsigned DEFAULT NULL COMMENT 'Visitor ID',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Creation Time',
  `deleted_at` timestamp NULL DEFAULT NULL COMMENT 'Deletion Time',
  PRIMARY KEY (`quote_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Quotes Table';

/*Data for the table `log_quote` */



/*Table structure for table `log_summary` */


CREATE TABLE `log_summary` (
  `summary_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Summary ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `type_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Type ID',
  `visitor_count` int(11) NOT NULL DEFAULT '0' COMMENT 'Visitor Count',
  `customer_count` int(11) NOT NULL DEFAULT '0' COMMENT 'Customer Count',
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date',
  PRIMARY KEY (`summary_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Summary Table';

/*Data for the table `log_summary` */



/*Table structure for table `log_summary_type` */


CREATE TABLE `log_summary_type` (
  `type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Type ID',
  `type_code` varchar(64) NOT NULL COMMENT 'Type Code',
  `period` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Period',
  `period_type` varchar(6) NOT NULL DEFAULT 'MINUTE' COMMENT 'Period Type',
  PRIMARY KEY (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Log Summary Types Table';

/*Data for the table `log_summary_type` */


insert  into `log_summary_type`(`type_id`,`type_code`,`period`,`period_type`) values (1,'hour',1,'HOUR'),(2,'day',1,'DAY');


/*Table structure for table `log_url` */


CREATE TABLE `log_url` (
  `url_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'URL ID',
  `visitor_id` bigint(20) unsigned DEFAULT NULL COMMENT 'Visitor ID',
  `visit_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Visit Time',
  PRIMARY KEY (`url_id`),
  KEY `IDX_LOG_URL_VISITOR_ID` (`visitor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log URL Table';

/*Data for the table `log_url` */



/*Table structure for table `log_url_info` */


CREATE TABLE `log_url_info` (
  `url_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'URL ID',
  `url` varchar(255) NOT NULL DEFAULT '' COMMENT 'URL',
  `referer` varchar(255) DEFAULT NULL COMMENT 'Referrer',
  PRIMARY KEY (`url_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log URL Info Table';

/*Data for the table `log_url_info` */



/*Table structure for table `log_visitor` */


CREATE TABLE `log_visitor` (
  `visitor_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Visitor ID',
  `session_id` varchar(64) NOT NULL COMMENT 'Session ID',
  `first_visit_at` timestamp NULL DEFAULT NULL COMMENT 'First Visit Time',
  `last_visit_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Last Visit Time',
  `last_url_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Last URL ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  PRIMARY KEY (`visitor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Visitors Table';

/*Data for the table `log_visitor` */



/*Table structure for table `log_visitor_info` */


CREATE TABLE `log_visitor_info` (
  `visitor_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Visitor ID',
  `http_referer` varchar(255) DEFAULT NULL COMMENT 'HTTP Referrer',
  `http_user_agent` varchar(255) DEFAULT NULL COMMENT 'HTTP User-Agent',
  `http_accept_charset` varchar(255) DEFAULT NULL COMMENT 'HTTP Accept-Charset',
  `http_accept_language` varchar(255) DEFAULT NULL COMMENT 'HTTP Accept-Language',
  `server_addr` bigint(20) DEFAULT NULL COMMENT 'Server Address',
  `remote_addr` bigint(20) DEFAULT NULL COMMENT 'Remote Address',
  PRIMARY KEY (`visitor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Visitor Info Table';

/*Data for the table `log_visitor_info` */



/*Table structure for table `log_visitor_online` */


CREATE TABLE `log_visitor_online` (
  `visitor_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Visitor ID',
  `visitor_type` varchar(1) NOT NULL COMMENT 'Visitor Type',
  `remote_addr` bigint(20) NOT NULL COMMENT 'Remote Address',
  `first_visit_at` timestamp NULL DEFAULT NULL COMMENT 'First Visit Time',
  `last_visit_at` timestamp NULL DEFAULT NULL COMMENT 'Last Visit Time',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer ID',
  `last_url` varchar(255) DEFAULT NULL COMMENT 'Last URL',
  PRIMARY KEY (`visitor_id`),
  KEY `IDX_LOG_VISITOR_ONLINE_VISITOR_TYPE` (`visitor_type`),
  KEY `IDX_LOG_VISITOR_ONLINE_FIRST_VISIT_AT_LAST_VISIT_AT` (`first_visit_at`,`last_visit_at`),
  KEY `IDX_LOG_VISITOR_ONLINE_CUSTOMER_ID` (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Log Visitor Online Table';

/*Data for the table `log_visitor_online` */



/*Table structure for table `newsletter_problem` */


CREATE TABLE `newsletter_problem` (
  `problem_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Problem Id',
  `subscriber_id` int(10) unsigned DEFAULT NULL COMMENT 'Subscriber Id',
  `queue_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Queue Id',
  `problem_error_code` int(10) unsigned DEFAULT '0' COMMENT 'Problem Error Code',
  `problem_error_text` varchar(200) DEFAULT NULL COMMENT 'Problem Error Text',
  PRIMARY KEY (`problem_id`),
  KEY `IDX_NEWSLETTER_PROBLEM_SUBSCRIBER_ID` (`subscriber_id`),
  KEY `IDX_NEWSLETTER_PROBLEM_QUEUE_ID` (`queue_id`),
  CONSTRAINT `FK_NLTTR_PROBLEM_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID` FOREIGN KEY (`subscriber_id`) REFERENCES `newsletter_subscriber` (`subscriber_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_NEWSLETTER_PROBLEM_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID` FOREIGN KEY (`queue_id`) REFERENCES `newsletter_queue` (`queue_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Problems';

/*Data for the table `newsletter_problem` */



/*Table structure for table `newsletter_queue` */


CREATE TABLE `newsletter_queue` (
  `queue_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Queue Id',
  `template_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Template Id',
  `newsletter_type` int(11) DEFAULT NULL COMMENT 'Newsletter Type',
  `newsletter_text` text COMMENT 'Newsletter Text',
  `newsletter_styles` text COMMENT 'Newsletter Styles',
  `newsletter_subject` varchar(200) DEFAULT NULL COMMENT 'Newsletter Subject',
  `newsletter_sender_name` varchar(200) DEFAULT NULL COMMENT 'Newsletter Sender Name',
  `newsletter_sender_email` varchar(200) DEFAULT NULL COMMENT 'Newsletter Sender Email',
  `queue_status` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Queue Status',
  `queue_start_at` timestamp NULL DEFAULT NULL COMMENT 'Queue Start At',
  `queue_finish_at` timestamp NULL DEFAULT NULL COMMENT 'Queue Finish At',
  PRIMARY KEY (`queue_id`),
  KEY `IDX_NEWSLETTER_QUEUE_TEMPLATE_ID` (`template_id`),
  CONSTRAINT `FK_NEWSLETTER_QUEUE_TEMPLATE_ID_NEWSLETTER_TEMPLATE_TEMPLATE_ID` FOREIGN KEY (`template_id`) REFERENCES `newsletter_template` (`template_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Queue';

/*Data for the table `newsletter_queue` */



/*Table structure for table `newsletter_queue_link` */


CREATE TABLE `newsletter_queue_link` (
  `queue_link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Queue Link Id',
  `queue_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Queue Id',
  `subscriber_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Subscriber Id',
  `letter_sent_at` timestamp NULL DEFAULT NULL COMMENT 'Letter Sent At',
  PRIMARY KEY (`queue_link_id`),
  KEY `IDX_NEWSLETTER_QUEUE_LINK_SUBSCRIBER_ID` (`subscriber_id`),
  KEY `IDX_NEWSLETTER_QUEUE_LINK_QUEUE_ID` (`queue_id`),
  KEY `IDX_NEWSLETTER_QUEUE_LINK_QUEUE_ID_LETTER_SENT_AT` (`queue_id`,`letter_sent_at`),
  CONSTRAINT `FK_NLTTR_QUEUE_LNK_SUBSCRIBER_ID_NLTTR_SUBSCRIBER_SUBSCRIBER_ID` FOREIGN KEY (`subscriber_id`) REFERENCES `newsletter_subscriber` (`subscriber_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_NEWSLETTER_QUEUE_LINK_QUEUE_ID_NEWSLETTER_QUEUE_QUEUE_ID` FOREIGN KEY (`queue_id`) REFERENCES `newsletter_queue` (`queue_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Queue Link';

/*Data for the table `newsletter_queue_link` */



/*Table structure for table `newsletter_queue_store_link` */


CREATE TABLE `newsletter_queue_store_link` (
  `queue_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Queue Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  PRIMARY KEY (`queue_id`,`store_id`),
  KEY `IDX_NEWSLETTER_QUEUE_STORE_LINK_STORE_ID` (`store_id`),
  CONSTRAINT `FK_NEWSLETTER_QUEUE_STORE_LINK_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_NLTTR_QUEUE_STORE_LNK_QUEUE_ID_NLTTR_QUEUE_QUEUE_ID` FOREIGN KEY (`queue_id`) REFERENCES `newsletter_queue` (`queue_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Queue Store Link';

/*Data for the table `newsletter_queue_store_link` */



/*Table structure for table `newsletter_subscriber` */


CREATE TABLE `newsletter_subscriber` (
  `subscriber_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Subscriber Id',
  `store_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Store Id',
  `change_status_at` timestamp NULL DEFAULT NULL COMMENT 'Change Status At',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Id',
  `subscriber_email` varchar(150) NOT NULL COMMENT 'Subscriber Email',
  `subscriber_status` int(11) NOT NULL DEFAULT '0' COMMENT 'Subscriber Status',
  `subscriber_confirm_code` varchar(32) DEFAULT 'NULL' COMMENT 'Subscriber Confirm Code',
  PRIMARY KEY (`subscriber_id`),
  KEY `IDX_NEWSLETTER_SUBSCRIBER_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_NEWSLETTER_SUBSCRIBER_STORE_ID` (`store_id`),
  CONSTRAINT `FK_NEWSLETTER_SUBSCRIBER_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Subscriber';

/*Data for the table `newsletter_subscriber` */



/*Table structure for table `newsletter_template` */


CREATE TABLE `newsletter_template` (
  `template_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Template Id',
  `template_code` varchar(150) DEFAULT NULL COMMENT 'Template Code',
  `template_text` text COMMENT 'Template Text',
  `template_text_preprocessed` text COMMENT 'Template Text Preprocessed',
  `template_styles` text COMMENT 'Template Styles',
  `template_type` int(10) unsigned DEFAULT NULL COMMENT 'Template Type',
  `template_subject` varchar(200) DEFAULT NULL COMMENT 'Template Subject',
  `template_sender_name` varchar(200) DEFAULT NULL COMMENT 'Template Sender Name',
  `template_sender_email` varchar(200) DEFAULT NULL COMMENT 'Template Sender Email',
  `template_actual` smallint(5) unsigned DEFAULT '1' COMMENT 'Template Actual',
  `added_at` timestamp NULL DEFAULT NULL COMMENT 'Added At',
  `modified_at` timestamp NULL DEFAULT NULL COMMENT 'Modified At',
  PRIMARY KEY (`template_id`),
  KEY `IDX_NEWSLETTER_TEMPLATE_TEMPLATE_ACTUAL` (`template_actual`),
  KEY `IDX_NEWSLETTER_TEMPLATE_ADDED_AT` (`added_at`),
  KEY `IDX_NEWSLETTER_TEMPLATE_MODIFIED_AT` (`modified_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Template';

/*Data for the table `newsletter_template` */



/*Table structure for table `paypal_cert` */


CREATE TABLE `paypal_cert` (
  `cert_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Cert Id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `content` text COMMENT 'Content',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  PRIMARY KEY (`cert_id`),
  KEY `IDX_PAYPAL_CERT_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_PAYPAL_CERT_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Paypal Certificate Table';

/*Data for the table `paypal_cert` */



/*Table structure for table `paypal_payment_transaction` */


CREATE TABLE `paypal_payment_transaction` (
  `transaction_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `txn_id` varchar(100) DEFAULT NULL COMMENT 'Txn Id',
  `additional_information` blob COMMENT 'Additional Information',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`transaction_id`),
  UNIQUE KEY `UNQ_PAYPAL_PAYMENT_TRANSACTION_TXN_ID` (`txn_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='PayPal Payflow Link Payment Transaction';

/*Data for the table `paypal_payment_transaction` */



/*Table structure for table `paypal_settlement_report` */


CREATE TABLE `paypal_settlement_report` (
  `report_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Report Id',
  `report_date` timestamp NULL DEFAULT NULL COMMENT 'Report Date',
  `account_id` varchar(64) DEFAULT NULL COMMENT 'Account Id',
  `filename` varchar(24) DEFAULT NULL COMMENT 'Filename',
  `last_modified` timestamp NULL DEFAULT NULL COMMENT 'Last Modified',
  PRIMARY KEY (`report_id`),
  UNIQUE KEY `UNQ_PAYPAL_SETTLEMENT_REPORT_REPORT_DATE_ACCOUNT_ID` (`report_date`,`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Paypal Settlement Report Table';

/*Data for the table `paypal_settlement_report` */



/*Table structure for table `paypal_settlement_report_row` */


CREATE TABLE `paypal_settlement_report_row` (
  `row_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Row Id',
  `report_id` int(10) unsigned NOT NULL COMMENT 'Report Id',
  `transaction_id` varchar(19) DEFAULT NULL COMMENT 'Transaction Id',
  `invoice_id` varchar(127) DEFAULT NULL COMMENT 'Invoice Id',
  `paypal_reference_id` varchar(19) DEFAULT NULL COMMENT 'Paypal Reference Id',
  `paypal_reference_id_type` varchar(3) DEFAULT NULL COMMENT 'Paypal Reference Id Type',
  `transaction_event_code` varchar(5) DEFAULT NULL COMMENT 'Transaction Event Code',
  `transaction_initiation_date` timestamp NULL DEFAULT NULL COMMENT 'Transaction Initiation Date',
  `transaction_completion_date` timestamp NULL DEFAULT NULL COMMENT 'Transaction Completion Date',
  `transaction_debit_or_credit` varchar(2) NOT NULL DEFAULT 'CR' COMMENT 'Transaction Debit Or Credit',
  `gross_transaction_amount` decimal(20,6) NOT NULL DEFAULT '0.000000' COMMENT 'Gross Transaction Amount',
  `gross_transaction_currency` varchar(3) DEFAULT '' COMMENT 'Gross Transaction Currency',
  `fee_debit_or_credit` varchar(2) DEFAULT NULL COMMENT 'Fee Debit Or Credit',
  `fee_amount` decimal(20,6) NOT NULL DEFAULT '0.000000' COMMENT 'Fee Amount',
  `fee_currency` varchar(3) DEFAULT NULL COMMENT 'Fee Currency',
  `custom_field` varchar(255) DEFAULT NULL COMMENT 'Custom Field',
  `consumer_id` varchar(127) DEFAULT NULL COMMENT 'Consumer Id',
  PRIMARY KEY (`row_id`),
  KEY `IDX_PAYPAL_SETTLEMENT_REPORT_ROW_REPORT_ID` (`report_id`),
  CONSTRAINT `FK_E183E488F593E0DE10C6EBFFEBAC9B55` FOREIGN KEY (`report_id`) REFERENCES `paypal_settlement_report` (`report_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Paypal Settlement Report Row Table';

/*Data for the table `paypal_settlement_report_row` */



/*Table structure for table `persistent_session` */


CREATE TABLE `persistent_session` (
  `persistent_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Session id',
  `key` varchar(50) NOT NULL COMMENT 'Unique cookie key',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  `info` text COMMENT 'Session Data',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  PRIMARY KEY (`persistent_id`),
  UNIQUE KEY `IDX_PERSISTENT_SESSION_KEY` (`key`),
  UNIQUE KEY `IDX_PERSISTENT_SESSION_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_PERSISTENT_SESSION_UPDATED_AT` (`updated_at`),
  KEY `FK_PERSISTENT_SESSION_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_PERSISTENT_SESSION_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `FK_PERSISTENT_SESSION_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Persistent Session';

/*Data for the table `persistent_session` */



/*Table structure for table `poll` */


CREATE TABLE `poll` (
  `poll_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Poll Id',
  `poll_title` varchar(255) DEFAULT NULL COMMENT 'Poll title',
  `votes_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Votes Count',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store id',
  `date_posted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date posted',
  `date_closed` timestamp NULL DEFAULT NULL COMMENT 'Date closed',
  `active` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Is active',
  `closed` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is closed',
  `answers_display` smallint(6) DEFAULT NULL COMMENT 'Answers display',
  PRIMARY KEY (`poll_id`),
  KEY `IDX_POLL_STORE_ID` (`store_id`),
  CONSTRAINT `FK_POLL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Poll';

/*Data for the table `poll` */


insert  into `poll`(`poll_id`,`poll_title`,`votes_count`,`store_id`,`date_posted`,`date_closed`,`active`,`closed`,`answers_display`) values (1,'What is your favorite color',7,1,'2007-06-15 19:17:49','2007-08-31 07:41:32',1,1,NULL),(2,'What is your favorite Magento feature?',4708,0,'2007-08-31 07:41:20',NULL,1,0,NULL);


/*Table structure for table `poll_answer` */


CREATE TABLE `poll_answer` (
  `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Answer Id',
  `poll_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Poll Id',
  `answer_title` varchar(255) DEFAULT NULL COMMENT 'Answer title',
  `votes_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Votes Count',
  `answer_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Answers display',
  PRIMARY KEY (`answer_id`),
  KEY `IDX_POLL_ANSWER_POLL_ID` (`poll_id`),
  CONSTRAINT `FK_POLL_ANSWER_POLL_ID_POLL_POLL_ID` FOREIGN KEY (`poll_id`) REFERENCES `poll` (`poll_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='Poll Answers';

/*Data for the table `poll_answer` */


insert  into `poll_answer`(`answer_id`,`poll_id`,`answer_title`,`votes_count`,`answer_order`) values (1,1,'Green',0,0),(2,1,'Red',0,0),(3,1,'Black',2,0),(4,1,'Magenta',5,0),(5,2,'Layered Navigation',1889,0),(6,2,'Price Rules',1340,0),(7,2,'Category Management',724,0),(8,2,'Compare Products',762,0);


/*Table structure for table `poll_store` */


CREATE TABLE `poll_store` (
  `poll_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Poll Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store id',
  PRIMARY KEY (`poll_id`,`store_id`),
  KEY `IDX_POLL_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_POLL_STORE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_POLL_STORE_POLL_ID_POLL_POLL_ID` FOREIGN KEY (`poll_id`) REFERENCES `poll` (`poll_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Poll Store';

/*Data for the table `poll_store` */


insert  into `poll_store`(`poll_id`,`store_id`) values (2,1),(2,2),(2,3);


/*Table structure for table `poll_vote` */


CREATE TABLE `poll_vote` (
  `vote_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Vote Id',
  `poll_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Poll Id',
  `poll_answer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Poll answer id',
  `ip_address` bigint(20) DEFAULT NULL COMMENT 'Poll answer id',
  `customer_id` int(11) DEFAULT NULL COMMENT 'Customer id',
  `vote_time` timestamp NULL DEFAULT NULL COMMENT 'Date closed',
  PRIMARY KEY (`vote_id`),
  KEY `IDX_POLL_VOTE_POLL_ANSWER_ID` (`poll_answer_id`),
  CONSTRAINT `FK_POLL_VOTE_POLL_ANSWER_ID_POLL_ANSWER_ANSWER_ID` FOREIGN KEY (`poll_answer_id`) REFERENCES `poll_answer` (`answer_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Poll Vote';

/*Data for the table `poll_vote` */



/*Table structure for table `product_alert_price` */


CREATE TABLE `product_alert_price` (
  `alert_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product alert price id',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product id',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price amount',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website id',
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Product alert add date',
  `last_send_date` timestamp NULL DEFAULT NULL COMMENT 'Product alert last send date',
  `send_count` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Product alert send count',
  `status` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Product alert status',
  PRIMARY KEY (`alert_price_id`),
  KEY `IDX_PRODUCT_ALERT_PRICE_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_PRODUCT_ALERT_PRICE_PRODUCT_ID` (`product_id`),
  KEY `IDX_PRODUCT_ALERT_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_PRODUCT_ALERT_PRICE_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_PRD_ALERT_PRICE_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_PRODUCT_ALERT_PRICE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Product Alert Price';

/*Data for the table `product_alert_price` */



/*Table structure for table `product_alert_stock` */


CREATE TABLE `product_alert_stock` (
  `alert_stock_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product alert stock id',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website id',
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Product alert add date',
  `send_date` timestamp NULL DEFAULT NULL COMMENT 'Product alert send date',
  `send_count` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Send Count',
  `status` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Product alert status',
  PRIMARY KEY (`alert_stock_id`),
  KEY `IDX_PRODUCT_ALERT_STOCK_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_PRODUCT_ALERT_STOCK_PRODUCT_ID` (`product_id`),
  KEY `IDX_PRODUCT_ALERT_STOCK_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_PRD_ALERT_STOCK_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_PRODUCT_ALERT_STOCK_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_PRODUCT_ALERT_STOCK_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Product Alert Stock';

/*Data for the table `product_alert_stock` */



/*Table structure for table `rating` */


CREATE TABLE `rating` (
  `rating_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rating Id',
  `entity_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `rating_code` varchar(64) NOT NULL COMMENT 'Rating Code',
  `position` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Position On Frontend',
  PRIMARY KEY (`rating_id`),
  UNIQUE KEY `UNQ_RATING_RATING_CODE` (`rating_code`),
  KEY `IDX_RATING_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_RATING_ENTITY_ID_RATING_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `rating_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Ratings';

/*Data for the table `rating` */


insert  into `rating`(`rating_id`,`entity_id`,`rating_code`,`position`) values (1,1,'Quality',0),(2,1,'Value',0),(3,1,'Price',0);


/*Table structure for table `rating_entity` */


CREATE TABLE `rating_entity` (
  `entity_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `entity_code` varchar(64) NOT NULL COMMENT 'Entity Code',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_RATING_ENTITY_ENTITY_CODE` (`entity_code`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Rating entities';

/*Data for the table `rating_entity` */


insert  into `rating_entity`(`entity_id`,`entity_code`) values (1,'product'),(2,'product_review'),(3,'review');


/*Table structure for table `rating_option` */


CREATE TABLE `rating_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rating Option Id',
  `rating_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Id',
  `code` varchar(32) NOT NULL COMMENT 'Rating Option Code',
  `value` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Option Value',
  `position` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Ration option position on frontend',
  PRIMARY KEY (`option_id`),
  KEY `IDX_RATING_OPTION_RATING_ID` (`rating_id`),
  CONSTRAINT `FK_RATING_OPTION_RATING_ID_RATING_RATING_ID` FOREIGN KEY (`rating_id`) REFERENCES `rating` (`rating_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='Rating options';

/*Data for the table `rating_option` */


insert  into `rating_option`(`option_id`,`rating_id`,`code`,`value`,`position`) values (1,1,'1',1,1),(2,1,'2',2,2),(3,1,'3',3,3),(4,1,'4',4,4),(5,1,'5',5,5),(6,2,'1',1,1),(7,2,'2',2,2),(8,2,'3',3,3),(9,2,'4',4,4),(10,2,'5',5,5),(11,3,'1',1,1),(12,3,'2',2,2),(13,3,'3',3,3),(14,3,'4',4,4),(15,3,'5',5,5);


/*Table structure for table `rating_option_vote` */


CREATE TABLE `rating_option_vote` (
  `vote_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Vote id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Vote option id',
  `remote_ip` varchar(16) NOT NULL COMMENT 'Customer IP',
  `remote_ip_long` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Customer IP converted to long integer format',
  `customer_id` int(10) unsigned DEFAULT '0' COMMENT 'Customer Id',
  `entity_pk_value` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Product id',
  `rating_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating id',
  `review_id` bigint(20) unsigned DEFAULT NULL COMMENT 'Review id',
  `percent` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Percent amount',
  `value` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Vote option value',
  PRIMARY KEY (`vote_id`),
  KEY `IDX_RATING_OPTION_VOTE_OPTION_ID` (`option_id`),
  KEY `FK_RATING_OPTION_VOTE_REVIEW_ID_REVIEW_REVIEW_ID` (`review_id`),
  CONSTRAINT `FK_RATING_OPTION_VOTE_OPTION_ID_RATING_OPTION_OPTION_ID` FOREIGN KEY (`option_id`) REFERENCES `rating_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_RATING_OPTION_VOTE_REVIEW_ID_REVIEW_REVIEW_ID` FOREIGN KEY (`review_id`) REFERENCES `review` (`review_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=332 DEFAULT CHARSET=utf8 COMMENT='Rating option values';

/*Data for the table `rating_option_vote` */


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


/*Table structure for table `rating_option_vote_aggregated` */


CREATE TABLE `rating_option_vote_aggregated` (
  `primary_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Vote aggregation id',
  `rating_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating id',
  `entity_pk_value` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Product id',
  `vote_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Vote dty',
  `vote_value_sum` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'General vote sum',
  `percent` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Vote percent',
  `percent_approved` smallint(6) DEFAULT '0' COMMENT 'Vote percent approved by admin',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  PRIMARY KEY (`primary_id`),
  KEY `IDX_RATING_OPTION_VOTE_AGGREGATED_RATING_ID` (`rating_id`),
  KEY `IDX_RATING_OPTION_VOTE_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_RATING_OPTION_VOTE_AGGREGATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_RATING_OPTION_VOTE_AGGREGATED_RATING_ID_RATING_RATING_ID` FOREIGN KEY (`rating_id`) REFERENCES `rating` (`rating_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=utf8 COMMENT='Rating vote aggregated';

/*Data for the table `rating_option_vote_aggregated` */


insert  into `rating_option_vote_aggregated`(`primary_id`,`rating_id`,`entity_pk_value`,`vote_count`,`vote_value_sum`,`percent`,`percent_approved`,`store_id`) values (1,1,51,2,4,40,40,0),(2,1,51,5,4,16,16,1),(3,1,16,2,4,40,40,0),(4,1,16,3,4,27,27,1),(5,1,17,1,0,0,0,1),(6,1,18,1,2,40,40,0),(7,1,18,3,0,0,0,1),(8,1,18,1,2,40,40,2),(9,1,19,1,5,100,100,0),(10,1,19,3,5,33,33,1),(11,1,20,1,5,100,100,0),(12,1,20,5,5,20,20,1),(13,1,25,1,5,100,100,0),(14,1,25,3,5,33,33,1),(15,1,26,3,9,60,60,0),(16,1,26,6,9,30,30,1),(17,1,27,6,26,87,87,0),(18,1,27,10,16,32,32,1),(19,1,27,1,5,100,100,2),(20,1,27,1,5,100,100,3),(21,1,28,1,2,40,40,0),(22,1,28,2,2,20,20,1),(23,1,29,2,0,0,0,1),(24,1,30,1,0,0,0,1),(25,1,31,2,0,0,0,1),(26,1,32,1,5,100,100,0),(27,1,32,4,5,25,25,1),(28,1,33,3,0,0,0,1),(29,1,34,2,0,0,0,1),(30,1,35,1,5,100,100,0),(31,1,35,5,5,20,20,1),(32,1,36,2,0,0,0,1),(33,1,37,3,0,0,0,1),(34,1,38,1,0,0,0,1),(35,1,39,2,0,0,0,1),(36,1,41,3,0,0,0,1),(37,1,42,2,0,0,0,1),(38,1,44,2,9,90,90,0),(39,1,44,4,9,45,45,1),(40,1,49,2,0,0,0,1),(41,2,16,2,4,40,40,0),(42,2,16,3,4,27,27,1),(43,2,17,1,0,0,0,1),(44,2,18,1,3,60,60,0),(45,2,18,3,0,0,0,1),(46,2,18,1,3,60,60,2),(47,2,19,1,4,80,80,0),(48,2,19,3,4,27,27,1),(49,2,20,1,4,80,80,0),(50,2,20,5,4,16,16,1),(51,2,25,1,4,80,80,0),(52,2,25,3,4,27,27,1),(53,2,26,3,9,60,60,0),(54,2,26,6,9,30,30,1),(55,2,27,6,26,87,87,0),(56,2,27,10,17,34,34,1),(57,2,27,1,5,100,100,2),(58,2,27,1,4,80,80,3),(59,2,28,1,4,80,80,0),(60,2,28,2,4,40,40,1),(61,2,29,2,0,0,0,1),(62,2,30,1,0,0,0,1),(63,2,31,2,0,0,0,1),(64,2,32,1,5,100,100,0),(65,2,32,4,5,25,25,1),(66,2,33,3,0,0,0,1),(67,2,34,2,0,0,0,1),(68,2,35,1,5,100,100,0),(69,2,35,5,5,20,20,1),(70,2,36,2,0,0,0,1),(71,2,37,3,0,0,0,1),(72,2,38,1,0,0,0,1),(73,2,39,2,0,0,0,1),(74,2,41,3,0,0,0,1),(75,2,42,2,0,0,0,1),(76,2,44,2,6,60,60,0),(77,2,44,4,6,30,30,1),(78,2,49,2,0,0,0,1),(79,2,51,2,5,50,50,0),(80,2,51,4,5,25,25,1),(81,3,16,2,4,40,40,0),(82,3,16,3,4,27,27,1),(83,3,17,1,0,0,0,1),(84,3,18,1,3,60,60,0),(85,3,18,3,0,0,0,1),(86,3,18,1,3,60,60,2),(87,3,19,1,4,80,80,0),(88,3,19,3,4,27,27,1),(89,3,20,1,4,80,80,0),(90,3,20,5,4,16,16,1),(91,3,25,1,3,60,60,0),(92,3,25,3,3,20,20,1),(93,3,26,3,7,47,47,0),(94,3,26,6,7,23,23,1),(95,3,27,6,24,80,80,0),(96,3,27,10,15,30,30,1),(97,3,27,1,5,100,100,2),(98,3,27,1,4,80,80,3),(99,3,28,1,3,60,60,0),(100,3,28,2,3,30,30,1),(101,3,29,2,0,0,0,1),(102,3,30,1,0,0,0,1),(103,3,31,2,0,0,0,1),(104,3,32,1,5,100,100,0),(105,3,32,4,5,25,25,1),(106,3,33,3,0,0,0,1),(107,3,34,2,0,0,0,1),(108,3,35,1,3,60,60,0),(109,3,35,5,3,12,12,1),(110,3,36,2,0,0,0,1),(111,3,37,3,0,0,0,1),(112,3,38,1,0,0,0,1),(113,3,39,2,0,0,0,1),(114,3,41,3,0,0,0,1),(115,3,42,2,0,0,0,1),(116,3,44,2,6,60,60,0),(117,3,44,4,6,30,30,1),(118,3,49,2,0,0,0,1),(119,3,51,2,5,50,50,0),(120,3,51,4,5,25,25,1),(121,1,48,1,0,0,0,1),(122,2,48,1,0,0,0,1),(123,3,48,1,0,0,0,1),(124,1,47,1,0,0,0,1),(125,2,47,1,0,0,0,1),(126,3,47,1,0,0,0,1),(127,1,46,1,0,0,0,1),(128,2,46,1,0,0,0,1),(129,3,46,1,0,0,0,1),(130,1,53,1,0,0,0,1),(131,2,53,1,0,0,0,1),(132,3,53,1,0,0,0,1),(133,1,119,2,0,0,0,1),(134,2,119,2,0,0,0,1),(135,3,119,2,0,0,0,1),(136,1,120,1,0,0,0,1),(137,2,120,1,0,0,0,1),(138,3,120,1,0,0,0,1),(139,1,126,1,2,40,40,0),(140,1,126,2,2,20,20,1),(141,2,126,1,3,60,60,0),(142,2,126,2,3,30,30,1),(143,3,126,1,1,20,20,0),(144,3,126,2,1,10,10,1),(145,1,83,2,5,50,50,0),(146,1,83,3,5,33,33,1),(147,2,83,2,5,50,50,0),(148,2,83,3,5,33,33,1),(149,3,83,2,6,60,60,0),(150,3,83,3,6,40,40,1),(151,1,112,1,4,80,80,0),(152,1,112,2,4,40,40,1),(153,2,112,1,5,100,100,0),(154,2,112,2,5,50,50,1),(155,3,112,1,3,60,60,0),(156,3,112,2,3,30,30,1),(157,1,98,2,0,0,0,1),(158,2,98,2,0,0,0,1),(159,3,98,2,0,0,0,1),(160,1,103,2,5,50,50,0),(161,1,103,3,5,33,33,1),(162,2,103,2,5,50,50,0),(163,2,103,3,5,33,33,1),(164,3,103,2,6,60,60,0),(165,3,103,3,6,40,40,1),(166,1,111,1,0,0,0,1),(167,2,111,1,0,0,0,1),(168,3,111,1,0,0,0,1),(169,1,54,1,0,0,0,1),(170,2,54,1,0,0,0,1),(171,3,54,1,0,0,0,1),(172,1,135,2,8,80,80,0),(173,1,135,4,8,40,40,1),(174,2,135,2,6,60,60,0),(175,2,135,4,6,30,30,1),(176,3,135,2,6,60,60,0),(177,3,135,4,6,30,30,1),(178,1,52,1,5,100,100,0),(179,1,52,1,5,100,100,1),(180,3,52,1,5,100,100,0),(181,3,52,1,5,100,100,1),(182,2,52,1,5,100,100,0),(183,2,52,1,5,100,100,1),(184,1,132,2,9,90,90,0),(185,1,132,1,4,80,80,1),(186,1,132,1,5,100,100,2),(187,3,132,2,6,60,60,0),(188,3,132,1,3,60,60,1),(189,3,132,1,3,60,60,2),(190,2,132,2,8,80,80,0),(191,2,132,1,4,80,80,1),(192,2,132,1,4,80,80,2),(193,1,45,1,3,60,60,0),(194,1,45,1,3,60,60,1),(195,3,45,1,4,80,80,0),(196,3,45,1,4,80,80,1),(197,2,45,1,3,60,60,0),(198,2,45,1,3,60,60,1);


/*Table structure for table `rating_store` */


CREATE TABLE `rating_store` (
  `rating_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store id',
  PRIMARY KEY (`rating_id`,`store_id`),
  KEY `IDX_RATING_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_RATING_STORE_RATING_ID_RATING_RATING_ID` FOREIGN KEY (`rating_id`) REFERENCES `rating` (`rating_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `FK_RATING_STORE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rating Store';

/*Data for the table `rating_store` */


insert  into `rating_store`(`rating_id`,`store_id`) values (1,0),(2,0),(3,0),(1,1),(2,1),(3,1),(1,2),(2,2),(3,2),(1,3),(2,3),(3,3);


/*Table structure for table `rating_title` */


CREATE TABLE `rating_title` (
  `rating_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Rating Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `value` varchar(255) NOT NULL COMMENT 'Rating Label',
  PRIMARY KEY (`rating_id`,`store_id`),
  KEY `IDX_RATING_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_RATING_TITLE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_RATING_TITLE_RATING_ID_RATING_RATING_ID` FOREIGN KEY (`rating_id`) REFERENCES `rating` (`rating_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rating Title';

/*Data for the table `rating_title` */



/*Table structure for table `report_compared_product_index` */


CREATE TABLE `report_compared_product_index` (
  `index_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Index Id',
  `visitor_id` int(10) unsigned DEFAULT NULL COMMENT 'Visitor Id',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `added_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Added At',
  PRIMARY KEY (`index_id`),
  UNIQUE KEY `UNQ_REPORT_COMPARED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID` (`visitor_id`,`product_id`),
  UNIQUE KEY `UNQ_REPORT_COMPARED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID` (`customer_id`,`product_id`),
  KEY `IDX_REPORT_COMPARED_PRODUCT_INDEX_STORE_ID` (`store_id`),
  KEY `IDX_REPORT_COMPARED_PRODUCT_INDEX_ADDED_AT` (`added_at`),
  KEY `IDX_REPORT_COMPARED_PRODUCT_INDEX_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_REPORT_COMPARED_PRODUCT_INDEX_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_REPORT_CMPD_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_REPORT_CMPD_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Reports Compared Product Index Table';

/*Data for the table `report_compared_product_index` */



/*Table structure for table `report_event` */


CREATE TABLE `report_event` (
  `event_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Event Id',
  `logged_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Logged At',
  `event_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Event Type Id',
  `object_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Object Id',
  `subject_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Subject Id',
  `subtype` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Subtype',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  PRIMARY KEY (`event_id`),
  KEY `IDX_REPORT_EVENT_EVENT_TYPE_ID` (`event_type_id`),
  KEY `IDX_REPORT_EVENT_SUBJECT_ID` (`subject_id`),
  KEY `IDX_REPORT_EVENT_OBJECT_ID` (`object_id`),
  KEY `IDX_REPORT_EVENT_SUBTYPE` (`subtype`),
  KEY `IDX_REPORT_EVENT_STORE_ID` (`store_id`),
  CONSTRAINT `FK_REPORT_EVENT_EVENT_TYPE_ID_REPORT_EVENT_TYPES_EVENT_TYPE_ID` FOREIGN KEY (`event_type_id`) REFERENCES `report_event_types` (`event_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_REPORT_EVENT_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Reports Event Table';

/*Data for the table `report_event` */


insert  into `report_event`(`event_id`,`logged_at`,`event_type_id`,`object_id`,`subject_id`,`subtype`,`store_id`) values (1,'2011-10-24 13:29:36',1,27,2,1,1),(2,'2011-10-24 13:30:03',1,27,2,1,1),(3,'2011-10-24 13:30:30',1,135,2,1,1);


/*Table structure for table `report_event_types` */


CREATE TABLE `report_event_types` (
  `event_type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Event Type Id',
  `event_name` varchar(64) NOT NULL COMMENT 'Event Name',
  `customer_login` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Login',
  PRIMARY KEY (`event_type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='Reports Event Type Table';

/*Data for the table `report_event_types` */


insert  into `report_event_types`(`event_type_id`,`event_name`,`customer_login`) values (1,'catalog_product_view',1),(2,'sendfriend_product',1),(3,'catalog_product_compare_add_product',1),(4,'checkout_cart_add_product',1),(5,'wishlist_add_product',1),(6,'wishlist_share',1);


/*Table structure for table `report_viewed_product_index` */


CREATE TABLE `report_viewed_product_index` (
  `index_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Index Id',
  `visitor_id` int(10) unsigned DEFAULT NULL COMMENT 'Visitor Id',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `added_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Added At',
  PRIMARY KEY (`index_id`),
  UNIQUE KEY `UNQ_REPORT_VIEWED_PRODUCT_INDEX_VISITOR_ID_PRODUCT_ID` (`visitor_id`,`product_id`),
  UNIQUE KEY `UNQ_REPORT_VIEWED_PRODUCT_INDEX_CUSTOMER_ID_PRODUCT_ID` (`customer_id`,`product_id`),
  KEY `IDX_REPORT_VIEWED_PRODUCT_INDEX_STORE_ID` (`store_id`),
  KEY `IDX_REPORT_VIEWED_PRODUCT_INDEX_ADDED_AT` (`added_at`),
  KEY `IDX_REPORT_VIEWED_PRODUCT_INDEX_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_REPORT_VIEWED_PRODUCT_INDEX_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_REPORT_VIEWED_PRD_IDX_CSTR_ID_CSTR_ENTT_ENTT_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_REPORT_VIEWED_PRD_IDX_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Reports Viewed Product Index Table';

/*Data for the table `report_viewed_product_index` */


insert  into `report_viewed_product_index`(`index_id`,`visitor_id`,`customer_id`,`product_id`,`store_id`,`added_at`) values (1,2,NULL,27,1,'2011-10-24 13:30:03'),(3,2,NULL,135,1,'2011-10-24 13:30:30');


/*Table structure for table `review` */


CREATE TABLE `review` (
  `review_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Review id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Review create date',
  `entity_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity id',
  `entity_pk_value` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product id',
  `status_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Status code',
  PRIMARY KEY (`review_id`),
  KEY `IDX_REVIEW_ENTITY_ID` (`entity_id`),
  KEY `IDX_REVIEW_STATUS_ID` (`status_id`),
  KEY `IDX_REVIEW_ENTITY_PK_VALUE` (`entity_pk_value`),
  CONSTRAINT `FK_REVIEW_STATUS_ID_REVIEW_STATUS_STATUS_ID` FOREIGN KEY (`status_id`) REFERENCES `review_status` (`status_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `FK_REVIEW_ENTITY_ID_REVIEW_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `review_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8 COMMENT='Review base information';

/*Data for the table `review` */


insert  into `review`(`review_id`,`created_at`,`entity_id`,`entity_pk_value`,`status_id`) values (1,'2007-08-25 11:39:12',1,35,1),(2,'2007-08-25 13:23:30',1,19,1),(3,'2007-08-25 15:33:22',1,36,1),(4,'2007-08-25 15:37:26',1,35,1),(5,'2007-08-25 15:43:42',1,20,1),(6,'2007-08-25 16:03:12',1,30,1),(7,'2007-08-26 15:29:23',1,18,1),(8,'2007-08-26 15:30:08',1,18,1),(9,'2007-08-26 15:30:33',1,18,1),(10,'2007-08-26 15:36:40',1,19,1),(11,'2007-08-26 15:49:19',1,17,1),(12,'2007-08-26 15:58:11',1,20,1),(13,'2007-08-26 15:58:40',1,20,1),(14,'2007-08-26 15:59:16',1,20,1),(15,'2007-08-26 16:02:56',1,16,1),(16,'2007-08-26 16:27:30',1,25,1),(17,'2007-08-26 16:37:51',1,26,1),(18,'2007-08-26 16:38:25',1,26,1),(19,'2007-08-26 16:41:21',1,27,1),(20,'2007-08-26 16:41:48',1,27,1),(21,'2007-08-26 16:44:43',1,28,1),(22,'2007-08-26 18:28:49',1,35,1),(23,'2007-08-27 16:50:11',1,36,1),(24,'2007-08-27 16:52:24',1,37,1),(25,'2007-08-27 16:55:51',1,37,1),(26,'2007-08-27 16:56:54',1,37,1),(27,'2007-08-27 17:00:12',1,38,1),(28,'2007-08-27 17:03:59',1,29,1),(29,'2007-08-27 17:05:03',1,29,1),(30,'2007-08-27 17:07:39',1,31,1),(31,'2007-08-27 17:08:21',1,31,1),(32,'2007-08-27 17:10:56',1,32,1),(33,'2007-08-27 17:12:27',1,33,1),(34,'2007-08-27 17:12:47',1,33,1),(35,'2007-08-27 17:13:22',1,33,1),(36,'2007-08-27 17:15:54',1,34,1),(37,'2007-08-27 17:16:21',1,34,1),(38,'2007-08-27 17:17:44',1,39,1),(39,'2007-08-27 17:31:53',1,41,1),(40,'2007-08-27 17:32:45',1,41,1),(41,'2007-08-27 17:35:48',1,42,1),(42,'2007-08-27 17:37:02',1,42,1),(43,'2007-08-28 13:09:40',1,44,1),(44,'2007-08-28 13:10:25',1,44,1),(45,'2007-08-28 15:15:01',1,49,1),(46,'2007-08-28 18:08:11',1,49,1),(47,'2007-08-28 18:37:23',1,51,1),(48,'2007-08-28 19:36:56',1,25,1),(49,'2007-08-28 19:58:35',1,48,1),(50,'2007-08-28 19:59:57',1,47,1),(51,'2007-08-28 20:01:42',1,46,1),(52,'2007-08-28 20:04:06',1,53,1),(53,'2007-08-29 16:07:46',1,119,1),(54,'2007-08-29 16:10:20',1,120,1),(55,'2007-08-29 16:14:17',1,126,1),(56,'2007-08-29 16:17:33',1,83,1),(57,'2007-08-29 16:22:24',1,112,1),(58,'2007-08-29 16:24:28',1,98,1),(59,'2007-08-29 16:27:44',1,103,1),(60,'2007-08-29 16:32:17',1,111,1),(61,'2007-08-31 06:09:21',1,27,1),(62,'2007-08-31 08:40:10',1,26,1),(63,'2007-08-31 08:59:09',1,32,1),(64,'2007-08-31 09:14:35',1,98,1),(65,'2007-08-31 09:36:10',1,27,1),(66,'2007-08-31 09:57:17',1,27,1),(67,'2007-08-31 09:58:56',1,32,1),(68,'2007-08-31 10:11:07',1,41,1),(69,'2007-08-31 10:37:13',1,39,1),(70,'2007-08-31 10:38:15',1,54,1),(71,'2007-08-31 10:41:44',1,51,1),(72,'2007-08-31 13:41:41',1,35,1),(73,'2007-08-31 22:26:36',1,135,1),(74,'2007-09-01 02:01:23',1,119,1),(75,'2007-09-01 09:24:58',1,135,1),(76,'2007-09-01 12:22:54',1,27,1),(77,'2008-03-18 20:10:18',1,27,1),(78,'2008-03-19 17:57:53',1,135,1),(79,'2008-03-21 14:03:56',1,32,1),(80,'2008-03-22 17:50:12',1,112,1),(81,'2008-03-23 12:01:37',1,103,1),(82,'2008-03-26 09:02:31',1,35,1),(83,'2008-03-27 14:35:22',1,135,1),(84,'2008-03-27 20:19:45',1,27,1),(85,'2008-03-28 00:03:06',1,135,1),(86,'2008-03-30 04:00:00',1,27,1),(87,'2008-03-30 15:44:06',1,27,1),(88,'2008-03-31 10:53:41',1,44,1),(89,'2008-03-31 13:14:39',1,28,1),(90,'2008-04-01 17:25:22',1,16,1),(91,'2008-04-02 05:48:33',1,20,1),(92,'2008-04-03 03:17:13',1,126,1),(93,'2008-04-03 20:19:19',1,103,1),(94,'2008-04-04 03:58:14',1,19,1),(95,'2008-04-04 17:20:44',1,27,1),(96,'2008-04-07 20:41:16',1,52,1),(97,'2008-04-10 20:44:14',1,32,1),(98,'2008-04-12 00:00:29',1,83,1),(99,'2008-04-13 11:07:39',1,25,1),(100,'2008-04-14 13:31:49',1,51,1),(101,'2008-04-14 17:20:43',1,44,1),(102,'2008-04-14 22:19:03',1,132,1),(103,'2008-04-14 23:35:03',1,16,1),(104,'2008-04-15 10:12:40',1,18,1),(105,'2008-04-15 20:42:49',1,51,1),(106,'2008-04-17 02:24:45',1,27,1),(107,'2008-04-17 12:56:09',1,132,1),(108,'2008-04-17 17:14:48',1,26,1),(109,'2008-04-17 17:27:16',1,18,1),(110,'2008-04-17 18:56:01',1,26,1),(111,'2008-04-18 00:40:58',1,45,1),(112,'2008-04-18 11:12:13',1,83,1),(113,'2008-04-18 17:26:56',1,26,1);


/*Table structure for table `review_detail` */


CREATE TABLE `review_detail` (
  `detail_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Review detail id',
  `review_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Review id',
  `store_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Store id',
  `title` varchar(255) NOT NULL COMMENT 'Title',
  `detail` text NOT NULL COMMENT 'Detail description',
  `nickname` varchar(128) NOT NULL COMMENT 'User nickname',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  PRIMARY KEY (`detail_id`),
  KEY `IDX_REVIEW_DETAIL_REVIEW_ID` (`review_id`),
  KEY `IDX_REVIEW_DETAIL_STORE_ID` (`store_id`),
  KEY `IDX_REVIEW_DETAIL_CUSTOMER_ID` (`customer_id`),
  CONSTRAINT `FK_REVIEW_DETAIL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_REVIEW_DETAIL_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_REVIEW_DETAIL_REVIEW_ID_REVIEW_REVIEW_ID` FOREIGN KEY (`review_id`) REFERENCES `review` (`review_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8 COMMENT='Review detail information';

/*Data for the table `review_detail` */


insert  into `review_detail`(`detail_id`,`review_id`,`store_id`,`title`,`detail`,`nickname`,`customer_id`) values (1,1,1,'I love this shirt!','This shirts if really great. Especially with the spinal diagram, finally I can see myself for who I really am! ','Sandra Doe',1),(2,2,1,'I feel strange holding a television to my head','I feel strange holding a television to my head.  This product should come with free suspenders','Starbuck',1),(3,3,1,'Cute, but see through','Cute design, but material is too thin.','Natashenka',1),(4,4,1,'chics dig ribs','Ever since buying this shirt chics cant take their hands off me. I don\'t know what it is it must be sprayed with axe - the seductive body spray for men. I\'m the last one to believe commercials but I tell you you won\'t regret buying this shirt. I ordered it n every color.','udini',1),(5,5,1,'Not an i-phone','cest ci nest pas une i-phone.','Udini',1),(6,6,1,'It\'s a pitty they don\'t have large sizes','You wont believe it, my show size is 13 so it\'s impossible for me to get a new pa','Seba\'s',1),(7,7,1,'Great all around phone','Hello all. Just received my phone a few days ago, was super fast shipping using the 2 day shipping option (which by the way is free!! So make sure you select that, as the discount is only shown when you are about to place the final purchase). Luckily I ordered my phone right before the phone was about in low stock.\r\nPHONE: So can\'t really complain about much of anything. Phone has really intuitive interface, very easy to navigate as the arrow keys all function as shortcuts (to calls, file folders, aim, etc..). The walkman button is very convenient as it leads right to the music player. ','John Johnson',1),(8,8,1,'Awesome Phone','The phone is awesome. Fully Loaded & sounds really great, camera is also good.2MP.\r\nExcellent!!! ','Panda',1),(9,9,1,' Ultimate Cell Phone','Wow....What a great cell phone. I really like.....no no.....LOVE this Phone. The Functions and usability of this one are too cool. The MP3 Player palys nice with good user interface. The 2.0 MP Camera is very good, I have stopped taking my Digi Cam to my trips. I never have anytype of problem during the phone call. So considering the +ve points, I truly recommend it to any one.','Ananda',1),(10,10,1,'Worth the upgrade!!!','I\'ve had this phone now for 2 weeks and it has met all of my expectations and exceeded them even. I upgraded from the 8125 and just about everything is a huge improvement!\r\nThe 3G(UMTS) is very impressive with it\'s speed. I even use this phone as a modem on my home pc and it\'s nearly identical in speed as DSL when surfing the net or downloading file/music etc.\r\nCamera is very impressive with clear resolutions for a camera phone with the 2MP.\r\nI also use a bluetooth headset 2.0 with this and mine works wonderfully with sony erriccson; it\'s quite intuitive and picks up the signal instantly. The \'blackberry\' scroll wheel is a huge plus on this phone and I find myself using this feature more than any other buttons. ','Armstrong',1),(11,11,1,'Sweet!','What I love:\r\n============\r\n- Form factor: It is beautiful, it is cute and catchy! It turns heads. Enough said.\r\n- Size: Size is one of the strongest points considering all it does. It neatly slips into a shirt pocket or sits well on the belt.\r\n- Keys: Could be a bit small but I could use it pretty easily though my fingers are bordering on \'butterfingers\'.\r\n- Trackball: Awesome! Just don\'t press it too hard while using it. Just \'roll-it\'!. It is great while you have to move around the screen from control to control\r\n- Voice-dialing: Has worked for me very well the 10 or so times I have tried in my van on the road and off. You have to first choose the voice dialing option from the list of icons on the main menu. I read you can ','Ashwini',1),(12,12,1,'Fouch','I wouldn\'t normally write a review, but everyone is giving this phone a bad rap.. I think people that buy into those reviews are getting cheated out of an excellent phone. I\'ve know several people with Razors that ALL like this much much better. The battery life is absolutely fine, and my phone is on vibrate all day. Maybe other reviewers are on the phone constantly on full blast playing mp3s and shooting video.. I don\'t get it. I\'ve had this phone the better part of a year and never ran out of charge during the day. I plug it in at night. I work as an architect and am on the phone all day long and beat the living hell out of it.. which is another huge plus about this phone. It has a *sturdy* metal housing.. not thin toy crap a la razors or plastic like most phones. I don\'t do a lot of bluetooth, computer syncing, etc, just use the phone in a fairly conventional way, with regular camera use, and for that it is *easily* far and away the best phone I\'ve ever owned.','solid phone',1),(13,13,1,' A crippled cell phone','1, you can not synchronize the phonebook with your PC in a convenient way. I had to code a program to generate single vcard files and send them over bluetooth ONE BY ONE. There seems to be no way to do it without bluetooth.\r\n\r\n2, you can not apply mp3 files as ringtones. However you can download mp3/aac ringtones from sprint (for a fee). Oh the original ringtones that came with the phone? They are just awful.\r\n\r\n','bessel',1),(14,14,1,'MJS','Yeah it looks cool, but it\'s got terrible sound quality, even with an ear-piece. Additionally, they\'ve crammed a lot of stuff into the menus that would probably be desirable to some people, but if you don\'t want it, it\'s just more junk to have to navigate through.','Looks can be deceiving',1),(15,15,1,'Great phone - unless you are outside or in the car','I only needed a basic phone - no MP3, camera, or FM radio. This phone delivered with great reception, good sound quality, great battery life, and a very small size. Inside a building it works great. Why the low score? The tinted plastic over the display makes it impossible to see the display outdoors and in the car. If the sun is out, forget it! I even managed to figure out how to remove all of the wallpaper backgrounds and to maximize the contrast. Still, don\'t plan to use this outdoors. Nokia should recall this product to replace the tinted cover. Update: Yesterday this phone took was accidently dropped onto a very hard ceramic tile floor and it still works perfectly! A similar drop ended the life of my digital camera a few months ago. So, if I were to rate this cell phone now I would give it 3 stars, maybe even 4 stars. I like reliable, sturdy stuff and this cell seems to be unusually well made.','Sheridan',1),(16,16,1,' The Fastest Mac Notebook Ever','It\'s the most stunning idea, isn\'t it? This top of the line MacBook Pro is the fastest Mac Notebook ever, and probably one of the fastest Macs period.\r\n\r\nWhen Steve Jobs announced the new Macs, with Intel Core Duo processors I was almost certain I wanted to buy one. Why? Macs are well known for ease of use and capabilities, but they have managed all that for years, with processors that are not always top-notch. That all changed in January 2006.\r\n\r\n','Stephen',1),(17,17,1,'It\'s worked phenominally for me so far...','Fortunately, the computer worked and worked well from the start for me. The performance is phenomenal, the craftsmanship and style are only slightly short of amazing. (sturdy and stylish, but heavy and heats up quickly.) I hope I never have to deal with customer service but the product performs. The worse thing is that if you have it set to use full power all of the time you get maybe an hour and a half of battery time. Still like my PowerBook better though.','Next',1),(18,18,1,' Not happy at all','I purchased the Red Ferrari Laptop and had nothing but problems form the start. I was supposed to get a free matching mouse, when I received the mouse it looked two years old. When I got laptop working the wrist rest pad right next to the mouse pad was heating up to an uncomfortable level. When I notified PCmode, the supplier of the laptop, they agreed to replace it with another laptop. When I asked if it had the same problems, they told me it headed up as all laptops heat up. The agreed to replace the laptop with another laptop but with a 50% lesser value than the one I purchased.\r\n\r\nI will never buy from these people again... ','Cappello',1),(19,19,1,'Vision of Vaio...','If you\'re buying this laptop, it\'s undoubtedly partially for the design, style and lightweight features of the TX series. You can get cheaper, better performing options at about the same weight, but it won\'t have the \"wow\" factor of this TXN27N. That being said let\'s get right into the pros and cons.\r\n\r\nAs a side note, if you\'re wondering about differences between the 25,27, 29 TX models, it\'s pretty straightforward. The 25 has 1GB RAM and 80GB hard drive, the 27 has 2GB RAM, 100 GB hard drive, the 29 is the same as the 27 except it comes with a carrying case and the exterior has a sleek special shiny coating. IMO, the 27N is the best value among the 3 when you look at the price points.\r\n\r\n','Chen',1),(20,20,1,'Sleek compact design for business travelers on the go.','I waited to get this notebook loaded with Vista. I have mixed feelings. The notebook hardware design is quite sleek and handsome. I am not so impressed with Vista running on this machine though. It just feels that Vista is a resource hog and is constantly running the CPU at 100% which causes the fan to run endlessly. I think the issue is that Sony used the same hardware specs as the previous TX series just to get a Vista version out quickly, but it really is not equipped to handle the new Vista OS as well. So I was disappointed when I upgraded to this notebook thinking that it would run faster, but actually it runs slower than my previous Vaio running Win XP. Though there are some improvements with Vista over XP, Vista probably runs better on a Duo Intel chipset than the Solo that is used in this notebook. The poor notebook is contantly working overtime just to do very simple normal every day applications and it takes forever to start up or reboot. If you just base it on looks alone, then it gets a 4 start rating.','Steven',1),(21,21,1,'Solid and reliable','At first, I wasn\'t terribly impressed. I had been accustomed to working\r\nwith a Toshiba Protege M405 at home and when I purchased the Gateway for\r\nexclusive use at the office, my initial impression of the machine when\r\nI put it into action was noticeably lacking in enthusiasm or excitement.\r\n\r\nI\'ve since come to appreciate this notebook for something much more\r\nimpressive that I couldn\'t gauge out of the box, and that was its\r\namazing reliability and performance over time.\r\n\r\nThis machine is solid. It does not crash.\r\n\r\n','Mendez',1),(22,22,1,'Love it!!! get it!!!','You got to have one of these they come in green','yochan',1),(23,23,1,'Extremely Comfortable!!!','i love this T-shirt\r\nthe quality is nice\r\nand it\'s very soft without tag\r\n\r\ni bought the white one\r\nit can be see through just like other custom\'s review.\r\n\r\nalso i think their size small is a little bigger than other brand\r\nbut it\'s not a big deal though! ','Robin',1),(24,24,1,'excellent','The T-shirt is a very good one. its comfortable and easy to wash, doesn\'t even soften the cloth when washed daily. i love it and good stuff','A Review',1),(25,25,1,'Perfect Cotton Feel','My friend really liked the Tee shirt.he did\'nt think that I would be able to get it in his size but I was able to.I really made my friends day when I told him that I was able to find the tee shirt in the size he wanted.','Adam',1),(26,26,1,'Great, affordable product','These tee shirts are generously cut, hold their color, stand up to repeated washings and are very comfortable. In addition, they are comfortable, extremely affordable and maintain their shape. I highly recommend them.','Patrick',1),(27,27,1,' Well made, affordable. . .you can\'t go wrong!','I am very hard on my t-shirts, and therefore, I need the best quality t-shirt on the market. I\'ve tried them all (except Hanes).  Durable, strong, and surprisingly flattering to those of us lugging around a spare tire, if you get my drift.','Mike',1),(28,28,1,'Inexpensive and very light weight clog','This clog was inexpensive compared to crocs, but I found it did not fit my foot very well. It is, however, very light weight and would otherwise be comfortable. It is also not very attractive. I would not wear this one anywhere but my own yard for gardening, etc.','Loren',1),(29,29,1,' Beach Clogs,','I received these today in the mail and am pleased with the way these feel on my feet,they are so comfortable and so easy to slide on.','Laurie',1),(30,30,1,'Love the look and was comfy for heels!','Would give them 5 stars if not for the toe cleavage issue. Loved them enough to keep them though. Very cute!','Shoe Lover',1),(31,31,1,'Good, Sexy Shoe','These shoes are beautiful, the bright ruby red color complimented by outfit nicely. It did take some breaking in but after which they were as comfortable as pumps can get.','Shoes!!!',1),(32,32,1,'Classic and Cute','This shoe is comfortable and the way the front of the shoe is cut makes it a little more interesting.....','Vanessa',1),(33,33,1,' lite golf shoe','nice shoe. A little tight in the width','Tippy',1),(34,34,1,'Comfortable, good-looking','This is a sharp-looking shoe that is very comfortable for walking and provides a good alternative to the traditional, boring \"golf shoe.\"\r\n','Kathryn',1),(35,35,1,'womens golf shoes','These shoes are my first pair of golf shoes.I have bad feet and wear orthotics so I really wanted a pair of shoes that would feel great on my feet. These are really nice and are a great price for this brand.','Moqilka',1),(36,36,1,' Great Purchase. Best value and very comfortable,','I purchased a pair and have been using it everyday from the past six months. The shoes are very comfortable and look very professional. Love them.','Arun',1),(37,37,1,'Top leather scuffed on first wear','The shoes look and wear great. However, the leather is pretty weak. I think I must have kicked a table leg or something on my frist outing in them. Now the tip of my left shoe has a quarter-size scuff on it. I will have to try to cover it up by oiling it. Obviously I don\'t think this pair will last long at all.','Lian',1),(38,38,1,' !!!!!!','this is exactly what i wanted from a sweatshirt.\r\n\r\nit has a tight figure with a full sized hood\r\nand its really warm and comfortable. ','Sanchez',1),(39,39,1,'Pretty Nice','This is great looking and functional dresser.  I love it.','matt',1),(40,40,1,'Buy this now!!!','This is a beautiful dresser with a rustic feel','Juan',1),(41,41,1,' its a modern bed!','actually my bf and i we were looking for a king size bed..when i saw this bed it was beautiful and thats the color i like and also its a modern style....\r\n','Gertrude',1),(42,42,1,' Excellent!',' Excellent wood bed and drawer set.  Excellent value, fast shipping and a quality product. Awesome! ','David',1),(43,43,1,' Another stunning winner from the bright minds at Canon','I spent three hours yesterday playing with the brand-new Canon Digital Rebel XT digital SLR camera, and man, was I impressed.\r\n\r\nI hadn\'t been too impressed with the original Digital Rebel, except for its revolutionarily low price (for a d-SLR), because it was slow and felt slimsy. The new DR XT is quite different. Even though it\'s 3 ounces lighter than the original DR -- mostly due to the use of a smaller battery; see below -- its smaller form factor actually makes it feel more solid and \"real\". In other word, unlike the original DR, this one feels professional, not toy-like at all.\r\n\r\n\r\n','Mira',1),(44,44,1,' The best thing I\'ve ever bought','The XT is amazing. The battery comes partly charged so you can immedietly start using the camera (thank you Canon!) I\'ve already shot about 200 pictures with it and the battery hasn\'t died yet.\r\n\r\n\r\n\r\n\r\n','Al',1),(45,45,1,'great, comfy flip flops!','Very comfortable flip flops! I wear a size 10-11 and the \"extra-large\" was too small. Most stores don\'t carry the 10 or 11 (beyond extra-large) but I was able to find them on Amazon. Don\'t give up if you need a bigger size than the extra-large!','Erika',1),(46,46,1,'These are the best sandals!','They were delivered really quickly and are just what I was expecting. The are great quality and so comfortable!','Jenna',1),(47,47,1,'I love this Ottoman','Best Ottoman ever!!!!','Terry Ferguson',1),(48,48,1,'I can\'t believe they still make PC\'s....','These Mac\'s are so much better than PC\'s it\'s unbelievable!!!   Obviously designed for the user...  less clicks to get to everything.  amazing!!!','Terry Ferguson',1),(49,49,1,'great for everyday use','I purchased this camera a few months ago because I like to have a camera on hand always. My DSLR and 35 mm SLR cameras are too bulky for everyday. The price and MPs were right, as well as the small size which fits into the clean pockets of any of my purses- no need to worry about lens scratch. For those who don\'t carry a purse and are concerned about the lens, a very small case will do the trick. The images are clean although I\'ve only printed up to 8.5 X 11 so far.','Stull',1),(50,50,1,'Amazing camera value!','This is one of those nice cameras that\'s so well done, it\'s easier to talk about what the camera ISN\'T, rather than what it IS! This camera is not a small, shirt pocket camera, and might be a bit bigger than a woman would wish to carry in a purse. It\'s not a super-tele camera, but it does have a respectable, bit longer than average 4x optical zoom. ','Juan',1),(51,51,1,'Good Camera','    	\r\n77 of 82 people found the following review helpful:\r\nGood Camera, October 11, 2006\r\nBy 	Steve (FL) - See all my reviews\r\nGot it yesterday. In green. Actually it\'s a shiney yellowish-green. Nice feel. Fits well in shirt pocket. Very light; particullarly compared to my Pentax Optio 550. Good, nice size LCD. Easy to use yet with nice availability of choices for customization. Well written manual (you can find online thru google) and onboard help menu. Photos come out fairly nice. Tried indoors in low light with several scene settings, outdoors, macro, and supermacro. Colors look true, fairly sharp without noticable artifact. Used in South Florida morning daylight outside without any trouble with LCD viewing (camera has no classic viewfinder). Have read reviews of washout in bright sun: have not tried that yet. Overall, I\'m happy with the camera thus far. ','Jenella',1),(52,52,1,'Great inexpensive Couch','I love this couch...  extremely comfortable and easy to clean\r\n','Toish',1),(53,53,1,'Comfortable!!!','This is the most comfortable shirt I own...  I will buy many of these shirts','Essentl',1),(54,54,1,'A little see thru','The shirt is a little transparent but is extremely comfortable.\r\nOne of my favorite shirts!','Linda',1),(55,55,1,'Makes me relive my rocker days!!!','The cat kind of looks like me...  Great quality shirt at a good price...','Tetris',1),(56,56,1,'My Party Shoes','So comfortable i were them when I go out.  Whether your dancing or working in the garden, these are the perfect shoe!','J Mo',1),(57,57,1,'Great shoes, but a little expensive!','These are great...  very comfortable.  But a little expensive','Best Golfer Ever',1),(58,58,1,'All around comfort','these are great - whether in the office or a stroll to the store...  wear these everywhere','Bret',1),(59,59,1,'Sexy affordable shoes!','These a very sexy comfortable shoes...  buy them and go out dancing!','Lady Jazz',1),(60,60,0,'I wear these as I walk down the Boardwalk','Sexy shoes that always draw attention to my legs...  ','Fransisco',1),(61,61,1,'Light-weight small laptop','Sony VAIO TX serie is amazing light-weight laptop that I\'ve ever seen it. But TZ is lastest and lighter than TX series.','Tarzan',1),(62,62,1,'sounds great','what a great laptop!','Joe',1),(63,63,1,'These look great','I was the hottest drag model at the show','Johnny',NULL),(64,64,1,'Kenneth Cole Slip Ons are a good choice for Work','I dont like them personally\r\n','Zapateria',NULL),(65,65,2,'Solid Laptop','Expensive but solidly built laptop','Tommy',1),(66,66,1,'not bad','yeah it\'s alright I suppose','ryhrhrh',NULL),(67,67,1,'Top of the top','I\'ve been wearing these shoes since 1912 and believe me, they\'re hot !','Didier',NULL),(68,68,2,'nice deal','made my living room looks great again','lopsta.com',NULL),(69,69,1,'Nice','very coll design','dimsal',NULL),(70,70,1,'This ist great - Love the style','I`ve been looking for such a couch for months now I\'ve found it!','JBrunner',1),(71,71,1,'Looks Good','Looks good and nice. Highly recommended ;)','devx',NULL),(72,72,1,'Greattt','Very good product !','Moimeme',NULL),(73,73,1,'Good shoes','great look, solid design','Terry',NULL),(74,74,1,'Amazing','What a cool shirt, i wear it everyday','Me',NULL),(75,75,1,'very cool','I love these','ilja',NULL),(76,76,1,'Excellent quality','The Sony producs have alway had an excellent quality and value.','Dr. Gish',NULL),(77,77,1,'This notebook is great','This very high quality notebook great for office and business applications. ','tane',NULL),(78,78,1,'Mega shoes','I like it ...','Tester',1),(79,79,1,'Increased my profit margins by 15%','These shoes are great....I was in so much demand with my usal tricks...I could put my prices up by 15%... These shoes will definitely work wonders on your  Supply and Demand curve on your local turf :)','Lady of the night',NULL),(80,80,1,'These shoes rock','I was walking down the street one day, and I looked down at these shoes and thought, \"these are so great.\"','Joe',NULL),(81,81,1,'Nice','I particulary liked the stylish color/design implementation of these Pumps.\r\n\r\nI look forward to use them on the next Weekend Party!','Diane',NULL),(82,82,1,'Love the shirt and print - but a bit too pricey','I\'m a heavy spender of t-shirts and love the quality and prints offered, but the combinded price handling, shipping and item price is very high compared to desigener t-shirts','Dynamo',NULL),(83,83,NULL,'The best!','Wow!  Amazing shoes if I ever saw ones:  great for those cold, dreary winter months, keep your feet warm and dry!','Jane Austin',NULL),(84,84,1,'Cool application','This looks very nice I\'ll have to check out the back end','Nick',NULL),(85,85,1,'Look good but wow are they expensive for what they are!','These sandalls look good, very photogenenic, but would anybody seriously pay this price for them?','Pete',NULL),(86,86,1,'A typical Sony product','Review goes here...','chucker',1),(87,87,2,'i love this product','i love this product','german',NULL),(88,88,1,'A little expensive for what you get','To be honest, the quality of the pictures it takes is excellent. But there are other cameras out there that do just a good a job for $100 less.','JohnnyBoy',NULL),(89,89,1,'Not Bad','perhaps i should have bought six instead of sixty six','Burt',NULL),(90,90,1,'Sucks ','Sucks','Sucks',NULL),(91,91,1,'great','great phone\r\nwith rich features','ashwani',1),(92,92,1,'It sucks','Its too small.','Dramatic Goefer',NULL),(93,93,1,'They match my poodle\'s collar!','Now Sweetums and I are a perfect match!','Toodles',NULL),(94,94,1,'I got \'em','I got suspenders with mine','Mr Green Jeans',NULL),(95,95,3,'test','that\'s a very good product','swisswine',NULL),(96,96,1,'Amazing','Holy-Moly.','Crazy Pants',NULL),(97,97,NULL,'her the summary','that\'s my best review ;-)','lagad',1),(98,98,1,'nice','this is nice','mikey',NULL),(99,99,1,'Apple has done it again!','The MacBook Pro is Apple\'s latest notebook and their first with Intel\'s new attempt at notebook dominance, the Core Duo.  It represents the near peak of current notebook technology in terms of power, making only a few compromises for the sake of a slim profile and a better battery life.  I am a college student who has been lusting over notebooks for the past two years, but with so many choices and every promising notebook seemingly always lacking in an essential area I was paralyzed by indecision (and a lack of funds).  I will be attending Law School next fall and the time has finally come when owning a notebook is no longer an option. Luckily, notebook technology is better than ever, and I finally had some notebooks to choose from that represent nearly everything I have wanted since I first got the idea in my head that I needed one. I have simple needs: gaming capable graphics card, near desktop power, low weight, bright screen, decent battery life, and sweet looks (you know, the basics).\r\n\r\nOnce I saw the Core Duo I knew the day had arrived and that any laptop I bought was going to have it.  I have to have a laptop before August so that took out waiting for the 64bit Core Duo sequel that is coming out sometime later this year or early next year (Merom).\r\n\r\nThe notebooks I considered getting were the W3J, the Acer 8204, and the new MacBook Pro from Apple, all top of the line machines which had the Radeon X1600 and the new Core Duo.  The Apple wasn\'t really an option because the Law School I am attending requires a Windows machine.  The Acer just had too many complaints of a poor screen and other problems, although I know people who are enjoying the machine just fine.  I actually ordered the W3J last week but was dismayed to discover that my preorder wasn\'t made quite soon enough and I was going to have to wait even longer if I wanted that option.  My preorder was cancelled about 4 days after the announcement of Boot Camp, which was not just a hack, but the promise of an (in the future) officially supported dual boot program.  I\'m no fool, and I wasn\'t going to spit the notebook gods in the face.  I had been given a sign, and 24 hours later I picked up my (educationally discounted at $2,299) brand new MacBook Pro.  This is my first Apple ever, but with the safety net of Boot Camp, I figured the time to dive in was now.','Stephen Lee',NULL),(100,100,1,'Word ottoman ever','I know because I am king of the Ottoman Empire','Xerses',1),(101,101,1,'This is a great camera','This camera rocks,  Solid. beautiful pictures ','bob',NULL),(102,102,1,'can\'t do without','i can\'t take photos without this tripod now that i have one. great product!! ','gibbo',NULL),(103,103,1,'Meh','Not great, not awful.','Nick Name',NULL),(104,104,2,'Ist in Ordnung','ganz nette Funktionen','Müller',NULL),(105,105,1,'great website','great website','smerphy',1),(106,106,1,'Good choice','I think this is the best laptop i\'ve ever tried','Ata',NULL),(107,107,2,'Pretty darn good','this is an amazing product with great features and superbly priced - i like it a lot!!','Danners',NULL),(108,108,1,'Fantasticly Expensive','Great product, bit rip off','Joe Gimp',NULL),(109,109,NULL,'Loved It','Awesome Phone!','Phonelover',1),(110,110,1,'Awful Product','I have had nothing but problems with this product. When I received the computer the box was broken. I didn\'t think anything of it but when powered on the computer had a loud whirling sound. A few hours later it refused to turn on. It appears the cheap internal fan broke. I got a new one 2 weeks later. This time the optical drive broke 3 weeks later. I was beginning to become frustrated. After calling customer service they refused to give me a full refund because it had been over 60 days since I first bought it. I hesitantly accepted a third replacement. This one works but the shift button broke already and power cord no longer fits into the computer snugly. I ended up selling it to my cousin and buying a Mac.','SupaStar',NULL),(111,111,1,'good','oh yeah, so so cheesy','gib',NULL),(112,112,1,'perfect and cool','nice shoes, i recommend to y\'all.\r\n\r\n','turgen',NULL),(113,113,1,'el mejor prodducto por el mejor precio','el mejor prodducto por el mejor precio','will',NULL);


/*Table structure for table `review_entity` */


CREATE TABLE `review_entity` (
  `entity_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Review entity id',
  `entity_code` varchar(32) NOT NULL COMMENT 'Review entity code',
  PRIMARY KEY (`entity_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Review entities';

/*Data for the table `review_entity` */


insert  into `review_entity`(`entity_id`,`entity_code`) values (1,'product'),(2,'customer'),(3,'category');


/*Table structure for table `review_entity_summary` */


CREATE TABLE `review_entity_summary` (
  `primary_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Summary review entity id',
  `entity_pk_value` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Product id',
  `entity_type` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Entity type id',
  `reviews_count` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Qty of reviews',
  `rating_summary` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Summarized rating',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store id',
  PRIMARY KEY (`primary_id`),
  KEY `IDX_REVIEW_ENTITY_SUMMARY_STORE_ID` (`store_id`),
  CONSTRAINT `FK_REVIEW_ENTITY_SUMMARY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=utf8 COMMENT='Review aggregates';

/*Data for the table `review_entity_summary` */


insert  into `review_entity_summary`(`primary_id`,`entity_pk_value`,`entity_type`,`reviews_count`,`rating_summary`,`store_id`) values (1,35,1,5,87,0),(2,35,1,5,75,1),(3,35,1,0,0,2),(4,35,1,0,0,3),(5,19,1,3,87,0),(6,19,1,3,71,1),(7,19,1,0,0,2),(8,19,1,0,0,3),(9,36,1,2,67,1),(10,36,1,0,0,2),(11,36,1,0,0,3),(12,20,1,5,87,0),(13,20,1,5,71,1),(14,20,1,0,0,2),(15,20,1,0,0,3),(16,30,1,1,60,1),(17,30,1,0,0,2),(18,30,1,0,0,3),(19,18,1,5,53,0),(20,18,1,3,62,1),(21,18,1,1,53,2),(22,18,1,0,0,3),(23,17,1,1,73,1),(24,17,1,0,0,2),(25,17,1,0,0,3),(26,16,1,3,40,0),(27,16,1,3,51,1),(28,16,1,0,0,2),(29,16,1,0,0,3),(30,25,1,3,80,0),(31,25,1,3,87,1),(32,25,1,0,0,2),(33,25,1,0,0,3),(34,26,1,6,56,0),(35,26,1,6,64,1),(36,26,1,0,0,2),(37,26,1,0,0,3),(38,27,1,12,84,0),(39,27,1,10,73,1),(40,27,1,1,100,2),(41,27,1,1,87,3),(42,28,1,2,60,0),(43,28,1,2,70,1),(44,28,1,0,0,2),(45,28,1,0,0,3),(46,37,1,3,60,1),(47,37,1,0,0,2),(48,37,1,0,0,3),(49,38,1,1,67,1),(50,38,1,0,0,2),(51,38,1,0,0,3),(52,29,1,2,60,1),(53,29,1,0,0,2),(54,29,1,0,0,3),(55,31,1,2,67,1),(56,31,1,0,0,2),(57,31,1,0,0,3),(58,32,1,5,100,0),(59,32,1,4,85,1),(60,32,1,0,0,2),(61,32,1,0,0,3),(62,33,1,3,62,1),(63,33,1,0,0,2),(64,33,1,0,0,3),(65,34,1,2,63,1),(66,34,1,0,0,2),(67,34,1,0,0,3),(68,39,1,2,73,1),(69,39,1,0,0,2),(70,39,1,0,0,3),(71,41,1,3,64,1),(72,41,1,0,0,2),(73,41,1,0,0,3),(74,42,1,2,80,1),(75,42,1,0,0,2),(76,42,1,0,0,3),(77,44,1,4,70,0),(78,44,1,4,77,1),(79,44,1,0,0,2),(80,44,1,0,0,3),(81,49,1,2,80,1),(82,49,1,0,0,2),(83,49,1,0,0,3),(84,51,1,4,47,0),(85,51,1,4,69,1),(86,51,1,0,0,2),(87,51,1,0,0,3),(88,48,1,1,60,1),(89,48,1,0,0,2),(90,48,1,0,0,3),(91,47,1,1,93,1),(92,47,1,0,0,2),(93,47,1,0,0,3),(94,46,1,1,80,1),(95,46,1,0,0,2),(96,46,1,0,0,3),(97,53,1,1,73,1),(98,53,1,0,0,2),(99,53,1,0,0,3),(100,119,1,2,80,1),(101,119,1,0,0,2),(102,119,1,0,0,3),(103,120,1,1,80,1),(104,120,1,0,0,2),(105,120,1,0,0,3),(106,126,1,2,40,0),(107,126,1,2,70,1),(108,126,1,0,0,2),(109,126,1,0,0,3),(110,83,1,3,53,0),(111,83,1,3,62,1),(112,83,1,0,0,2),(113,83,1,0,0,3),(114,112,1,2,80,0),(115,112,1,2,73,1),(116,112,1,0,0,2),(117,112,1,0,0,3),(118,98,1,2,67,1),(119,98,1,0,0,2),(120,98,1,0,0,3),(121,103,1,3,53,0),(122,103,1,3,62,1),(123,103,1,0,0,2),(124,103,1,0,0,3),(125,111,1,1,80,1),(126,111,1,0,0,2),(127,111,1,0,0,3),(128,54,1,1,87,1),(129,54,1,0,0,2),(130,54,1,0,0,3),(131,135,1,5,67,0),(132,135,1,4,63,1),(133,135,1,0,0,2),(134,135,1,0,0,3),(135,52,1,1,100,0),(136,52,1,1,100,1),(137,52,1,0,0,2),(138,52,1,0,0,3),(139,132,1,2,77,0),(140,132,1,1,73,1),(141,132,1,1,80,2),(142,132,1,0,0,3),(143,45,1,1,67,0),(144,45,1,1,67,1),(145,45,1,0,0,2),(146,45,1,0,0,3);


/*Table structure for table `review_status` */


CREATE TABLE `review_status` (
  `status_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Status id',
  `status_code` varchar(32) NOT NULL COMMENT 'Status code',
  PRIMARY KEY (`status_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Review statuses';

/*Data for the table `review_status` */


insert  into `review_status`(`status_id`,`status_code`) values (1,'Approved'),(2,'Pending'),(3,'Not Approved');


/*Table structure for table `review_store` */


CREATE TABLE `review_store` (
  `review_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Review Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  PRIMARY KEY (`review_id`,`store_id`),
  KEY `IDX_REVIEW_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_REVIEW_STORE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_REVIEW_STORE_REVIEW_ID_REVIEW_REVIEW_ID` FOREIGN KEY (`review_id`) REFERENCES `review` (`review_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Review Store';

/*Data for the table `review_store` */


insert  into `review_store`(`review_id`,`store_id`) values (3,1),(4,1),(5,1),(7,1),(9,1),(10,1),(12,1),(15,1),(16,1),(17,1),(19,1),(21,1),(24,1),(26,1),(28,1),(29,1),(31,1),(32,1),(37,1),(38,1),(40,1),(46,1),(47,1),(48,1),(49,1),(51,1),(52,1),(53,1),(56,1),(57,1),(58,1),(59,1),(60,1),(61,1),(64,1),(66,1),(70,1),(71,1),(72,1),(75,1),(77,1),(78,1),(79,1),(80,1),(84,1),(85,1),(86,1),(87,1),(88,1),(90,1),(92,1),(95,1),(97,1),(98,1),(101,1),(107,1),(108,1),(109,1),(112,1),(113,1),(1,2),(2,2),(6,2),(8,2),(9,2),(11,2),(13,2),(17,2),(18,2),(19,2),(20,2),(22,2),(26,2),(27,2),(28,2),(29,2),(30,2),(31,2),(32,2),(33,2),(34,2),(35,2),(37,2),(39,2),(41,2),(42,2),(43,2),(44,2),(45,2),(47,2),(49,2),(56,2),(62,2),(63,2),(67,2),(68,2),(69,2),(70,2),(71,2),(72,2),(73,2),(74,2),(75,2),(80,2),(81,2),(83,2),(84,2),(85,2),(86,2),(87,2),(89,2),(91,2),(92,2),(93,2),(94,2),(96,2),(98,2),(99,2),(100,2),(101,2),(103,2),(105,2),(106,2),(107,2),(108,2),(110,2),(4,3),(5,3),(6,3),(11,3),(13,3),(14,3),(15,3),(17,3),(23,3),(25,3),(26,3),(29,3),(30,3),(31,3),(32,3),(35,3),(36,3),(38,3),(41,3),(42,3),(45,3),(50,3),(51,3),(53,3),(54,3),(55,3),(57,3),(58,3),(61,3),(62,3),(63,3),(64,3),(65,3),(66,3),(68,3),(69,3),(71,3),(74,3),(75,3),(76,3),(77,3),(79,3),(80,3),(82,3),(84,3),(85,3),(91,3),(94,3),(96,3),(97,3),(101,3),(102,3),(104,3),(106,3),(109,3),(110,3),(111,3),(112,3),(113,3);


/*Table structure for table `sales_bestsellers_aggregated_daily` */


CREATE TABLE `sales_bestsellers_aggregated_daily` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `product_name` varchar(255) 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(5) unsigned NOT NULL COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_BESTSELLERS_AGGRED_DAILY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_DAILY_STORE_ID` (`store_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_DAILY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_DAILY_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_DAILY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Bestsellers Aggregated Daily';

/*Data for the table `sales_bestsellers_aggregated_daily` */



/*Table structure for table `sales_bestsellers_aggregated_monthly` */


CREATE TABLE `sales_bestsellers_aggregated_monthly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `product_name` varchar(255) 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(5) unsigned NOT NULL COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_BESTSELLERS_AGGRED_MONTHLY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_MONTHLY_STORE_ID` (`store_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_MONTHLY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_MONTHLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_MONTHLY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Bestsellers Aggregated Monthly';

/*Data for the table `sales_bestsellers_aggregated_monthly` */



/*Table structure for table `sales_bestsellers_aggregated_yearly` */


CREATE TABLE `sales_bestsellers_aggregated_yearly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `product_name` varchar(255) 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(5) unsigned NOT NULL COMMENT 'Rating Pos',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_BESTSELLERS_AGGRED_YEARLY_PERIOD_STORE_ID_PRD_ID` (`period`,`store_id`,`product_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID` (`store_id`),
  KEY `IDX_SALES_BESTSELLERS_AGGREGATED_YEARLY_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_YEARLY_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_BESTSELLERS_AGGRED_YEARLY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Bestsellers Aggregated Yearly';

/*Data for the table `sales_bestsellers_aggregated_yearly` */



/*Table structure for table `sales_billing_agreement` */


CREATE TABLE `sales_billing_agreement` (
  `agreement_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Agreement Id',
  `customer_id` int(10) unsigned NOT NULL COMMENT 'Customer Id',
  `method_code` varchar(32) NOT NULL COMMENT 'Method Code',
  `reference_id` varchar(32) NOT NULL COMMENT 'Reference Id',
  `status` varchar(20) NOT NULL COMMENT 'Status',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `agreement_label` varchar(255) DEFAULT NULL COMMENT 'Agreement Label',
  PRIMARY KEY (`agreement_id`),
  KEY `IDX_SALES_BILLING_AGREEMENT_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_SALES_BILLING_AGREEMENT_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_BILLING_AGREEMENT_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_BILLING_AGREEMENT_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Billing Agreement';

/*Data for the table `sales_billing_agreement` */



/*Table structure for table `sales_billing_agreement_order` */


CREATE TABLE `sales_billing_agreement_order` (
  `agreement_id` int(10) unsigned NOT NULL COMMENT 'Agreement Id',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  PRIMARY KEY (`agreement_id`,`order_id`),
  KEY `IDX_SALES_BILLING_AGREEMENT_ORDER_ORDER_ID` (`order_id`),
  CONSTRAINT `FK_SALES_BILLING_AGRT_ORDER_ORDER_ID_SALES_FLAT_ORDER_ENTT_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_BILLING_AGRT_ORDER_AGRT_ID_SALES_BILLING_AGRT_AGRT_ID` FOREIGN KEY (`agreement_id`) REFERENCES `sales_billing_agreement` (`agreement_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Billing Agreement Order';

/*Data for the table `sales_billing_agreement_order` */



/*Table structure for table `sales_flat_creditmemo` */


CREATE TABLE `sales_flat_creditmemo` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `adjustment_positive` decimal(12,4) DEFAULT NULL COMMENT 'Adjustment Positive',
  `base_shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `store_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `base_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `base_adjustment_negative` decimal(12,4) DEFAULT NULL COMMENT 'Base Adjustment Negative',
  `base_subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `adjustment_negative` decimal(12,4) DEFAULT NULL COMMENT 'Adjustment Negative',
  `base_shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `store_to_base_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `base_to_global_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_adjustment` decimal(12,4) DEFAULT NULL COMMENT 'Base Adjustment',
  `base_subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Discount Amount',
  `subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal',
  `adjustment` decimal(12,4) DEFAULT NULL COMMENT 'Adjustment',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_adjustment_positive` decimal(12,4) DEFAULT NULL COMMENT 'Base Adjustment Positive',
  `base_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `email_sent` smallint(5) unsigned DEFAULT NULL COMMENT 'Email Sent',
  `creditmemo_status` int(11) DEFAULT NULL COMMENT 'Creditmemo Status',
  `state` int(11) DEFAULT NULL COMMENT 'State',
  `shipping_address_id` int(11) DEFAULT NULL COMMENT 'Shipping Address Id',
  `billing_address_id` int(11) DEFAULT NULL COMMENT 'Billing Address Id',
  `invoice_id` int(11) DEFAULT NULL COMMENT 'Invoice Id',
  `cybersource_token` varchar(255) DEFAULT NULL,
  `store_currency_code` varchar(3) DEFAULT NULL COMMENT 'Store Currency Code',
  `order_currency_code` varchar(3) DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) DEFAULT NULL COMMENT 'Global Currency Code',
  `transaction_id` varchar(255) DEFAULT NULL COMMENT 'Transaction Id',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  `shipping_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Hidden Tax Amount',
  `base_shipping_hidden_tax_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Hidden Tax Amount',
  `shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_CREDITMEMO_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_CREDITMEMO_STATUS` (`creditmemo_status`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_STATE` (`state`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_CREATED_AT` (`created_at`),
  CONSTRAINT `FK_SALES_FLAT_CREDITMEMO_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_CREDITMEMO_ORDER_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Creditmemo';

/*Data for the table `sales_flat_creditmemo` */



/*Table structure for table `sales_flat_creditmemo_comment` */


CREATE TABLE `sales_flat_creditmemo_comment` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `is_customer_notified` int(11) DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint(5) unsigned NOT NULL COMMENT 'Is Visible On Front',
  `comment` text COMMENT 'Comment',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_COMMENT_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_B0FCB0B5467075BE63D474F2CD5F7804` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_creditmemo` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Creditmemo Comment';

/*Data for the table `sales_flat_creditmemo_comment` */



/*Table structure for table `sales_flat_creditmemo_grid` */


CREATE TABLE `sales_flat_creditmemo_grid` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `store_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `base_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `store_to_base_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `base_to_global_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `creditmemo_status` int(11) DEFAULT NULL COMMENT 'Creditmemo Status',
  `state` int(11) DEFAULT NULL COMMENT 'State',
  `invoice_id` int(11) DEFAULT NULL COMMENT 'Invoice Id',
  `store_currency_code` varchar(3) DEFAULT NULL COMMENT 'Store Currency Code',
  `order_currency_code` varchar(3) DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) DEFAULT NULL COMMENT 'Global Currency Code',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `order_increment_id` varchar(50) DEFAULT NULL COMMENT 'Order Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `order_created_at` timestamp NULL DEFAULT NULL COMMENT 'Order Created At',
  `billing_name` varchar(255) DEFAULT NULL COMMENT 'Billing Name',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_CREDITMEMO_GRID_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_GRAND_TOTAL` (`grand_total`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_BASE_GRAND_TOTAL` (`base_grand_total`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_CREDITMEMO_STATUS` (`creditmemo_status`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_STATE` (`state`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_GRID_BILLING_NAME` (`billing_name`),
  CONSTRAINT `FK_SALES_FLAT_CREDITMEMO_GRID_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_78C711B225167A11CC077B03D1C8E1CC` FOREIGN KEY (`entity_id`) REFERENCES `sales_flat_creditmemo` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Creditmemo Grid';

/*Data for the table `sales_flat_creditmemo_grid` */



/*Table structure for table `sales_flat_creditmemo_item` */


CREATE TABLE `sales_flat_creditmemo_item` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Row Amount',
  `base_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Price',
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Row Disposition',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Amount',
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Row Disposition',
  `base_row_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total',
  `discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Discount Amount',
  `row_total` decimal(12,4) DEFAULT NULL COMMENT 'Row Total',
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Amount',
  `base_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Disposition',
  `price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Disposition',
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `base_cost` decimal(12,4) DEFAULT NULL COMMENT 'Base Cost',
  `base_weee_tax_applied_row_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Row Amnt',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `product_id` int(11) DEFAULT NULL COMMENT 'Product Id',
  `order_item_id` int(11) DEFAULT NULL COMMENT 'Order Item Id',
  `additional_data` text COMMENT 'Additional Data',
  `description` text COMMENT 'Description',
  `weee_tax_applied` text COMMENT 'Weee Tax Applied',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_CREDITMEMO_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_306DAC836C699F0B5E13BE486557AC8A` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_creditmemo` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Creditmemo Item';

/*Data for the table `sales_flat_creditmemo_item` */



/*Table structure for table `sales_flat_invoice` */


CREATE TABLE `sales_flat_invoice` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `store_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Order Rate',
  `base_shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `base_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `base_subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `store_to_base_rate` decimal(12,4) DEFAULT NULL COMMENT 'Store To Base Rate',
  `base_shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `total_qty` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty',
  `base_to_global_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal',
  `base_subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Discount Amount',
  `billing_address_id` int(11) DEFAULT NULL COMMENT 'Billing Address Id',
  `is_used_for_refund` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Used For Refund',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `email_sent` smallint(5) unsigned DEFAULT NULL COMMENT 'Email Sent',
  `can_void_flag` smallint(5) unsigned DEFAULT NULL COMMENT 'Can Void Flag',
  `state` int(11) DEFAULT NULL COMMENT 'State',
  `shipping_address_id` int(11) DEFAULT NULL COMMENT 'Shipping Address Id',
  `cybersource_token` varchar(255) DEFAULT NULL,
  `store_currency_code` varchar(3) DEFAULT NULL COMMENT 'Store Currency Code',
  `transaction_id` varchar(255) DEFAULT NULL COMMENT 'Transaction Id',
  `order_currency_code` varchar(3) DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) DEFAULT NULL COMMENT 'Global Currency Code',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `customer_id` int(11) DEFAULT NULL,
  `invoice_status_id` int(11) DEFAULT NULL,
  `invoice_type` int(11) DEFAULT NULL,
  `is_virtual` int(11) DEFAULT NULL,
  `real_order_id` varchar(255) DEFAULT NULL,
  `total_due` decimal(12,4) DEFAULT NULL,
  `total_paid` decimal(12,4) DEFAULT NULL,
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  `shipping_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Hidden Tax Amount',
  `base_shipping_hidden_tax_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Hidden Tax Amount',
  `shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  `base_total_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Refunded',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_INVOICE_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_INVOICE_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_INVOICE_GRAND_TOTAL` (`grand_total`),
  KEY `IDX_SALES_FLAT_INVOICE_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_INVOICE_STATE` (`state`),
  KEY `IDX_SALES_FLAT_INVOICE_CREATED_AT` (`created_at`),
  CONSTRAINT `FK_SALES_FLAT_INVOICE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_INVOICE_ORDER_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Invoice';

/*Data for the table `sales_flat_invoice` */



/*Table structure for table `sales_flat_invoice_comment` */


CREATE TABLE `sales_flat_invoice_comment` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `is_customer_notified` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint(5) unsigned NOT NULL COMMENT 'Is Visible On Front',
  `comment` text COMMENT 'Comment',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_INVOICE_COMMENT_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_INVOICE_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_5C4B36BBE5231A76AB8018B281ED50BC` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_invoice` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Invoice Comment';

/*Data for the table `sales_flat_invoice_comment` */



/*Table structure for table `sales_flat_invoice_grid` */


CREATE TABLE `sales_flat_invoice_grid` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `state` int(11) DEFAULT NULL COMMENT 'State',
  `store_currency_code` varchar(3) DEFAULT NULL COMMENT 'Store Currency Code',
  `order_currency_code` varchar(3) DEFAULT NULL COMMENT 'Order Currency Code',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `global_currency_code` varchar(3) DEFAULT NULL COMMENT 'Global Currency Code',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `order_increment_id` varchar(50) DEFAULT NULL COMMENT 'Order Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `order_created_at` timestamp NULL DEFAULT NULL COMMENT 'Order Created At',
  `billing_name` varchar(255) DEFAULT NULL COMMENT 'Billing Name',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_INVOICE_GRID_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_GRAND_TOTAL` (`grand_total`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_STATE` (`state`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `IDX_SALES_FLAT_INVOICE_GRID_BILLING_NAME` (`billing_name`),
  CONSTRAINT `FK_SALES_FLAT_INVOICE_GRID_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_INVOICE_GRID_ENTT_ID_SALES_FLAT_INVOICE_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `sales_flat_invoice` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Invoice Grid';

/*Data for the table `sales_flat_invoice_grid` */



/*Table structure for table `sales_flat_invoice_item` */


CREATE TABLE `sales_flat_invoice_item` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `base_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Price',
  `base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Row Disposition',
  `weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Row Amount',
  `base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Amount',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `base_row_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total',
  `discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Discount Amount',
  `row_total` decimal(12,4) DEFAULT NULL COMMENT 'Row Total',
  `weee_tax_row_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Row Disposition',
  `base_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Disposition',
  `price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `weee_tax_applied_amount` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Applied Amount',
  `base_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `weee_tax_disposition` decimal(12,4) DEFAULT NULL COMMENT 'Weee Tax Disposition',
  `base_cost` decimal(12,4) DEFAULT NULL COMMENT 'Base Cost',
  `base_weee_tax_applied_row_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Weee Tax Applied Row Amnt',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `product_id` int(11) DEFAULT NULL COMMENT 'Product Id',
  `order_item_id` int(11) DEFAULT NULL COMMENT 'Order Item Id',
  `additional_data` text COMMENT 'Additional Data',
  `description` text COMMENT 'Description',
  `weee_tax_applied` text COMMENT 'Weee Tax Applied',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `shipment_id` int(11) DEFAULT NULL,
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_INVOICE_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_SALES_FLAT_INVOICE_ITEM_PARENT_ID_SALES_FLAT_INVOICE_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_invoice` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Invoice Item';

/*Data for the table `sales_flat_invoice_item` */



/*Table structure for table `sales_flat_order` */


CREATE TABLE `sales_flat_order` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `state` varchar(32) DEFAULT NULL COMMENT 'State',
  `status` varchar(32) DEFAULT NULL COMMENT 'Status',
  `coupon_code` varchar(255) DEFAULT NULL COMMENT 'Coupon Code',
  `protect_code` varchar(255) DEFAULT NULL COMMENT 'Protect Code',
  `shipping_description` varchar(255) DEFAULT NULL COMMENT 'Shipping Description',
  `is_virtual` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Virtual',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `base_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Amount',
  `base_discount_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Canceled',
  `base_discount_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Invoiced',
  `base_discount_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Discount Refunded',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `base_shipping_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Canceled',
  `base_shipping_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Invoiced',
  `base_shipping_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Refunded',
  `base_shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `base_shipping_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Tax Refunded',
  `base_subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `base_subtotal_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Canceled',
  `base_subtotal_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Invoiced',
  `base_subtotal_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Refunded',
  `base_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Amount',
  `base_tax_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Canceled',
  `base_tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Invoiced',
  `base_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Refunded',
  `base_to_global_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_to_order_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Order Rate',
  `base_total_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Canceled',
  `base_total_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Invoiced',
  `base_total_invoiced_cost` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Invoiced Cost',
  `base_total_offline_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Offline Refunded',
  `base_total_online_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Online Refunded',
  `base_total_paid` decimal(12,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(12,4) DEFAULT NULL COMMENT 'Base Total Refunded',
  `discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Discount Amount',
  `discount_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Discount Canceled',
  `discount_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Discount Invoiced',
  `discount_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Discount Refunded',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `shipping_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Canceled',
  `shipping_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Invoiced',
  `shipping_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Refunded',
  `shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `shipping_tax_refunded` decimal(12,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(12,4) DEFAULT NULL COMMENT 'Subtotal',
  `subtotal_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Canceled',
  `subtotal_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Invoiced',
  `subtotal_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Refunded',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `tax_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Tax Canceled',
  `tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Tax Invoiced',
  `tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Tax Refunded',
  `total_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Total Canceled',
  `total_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Total Invoiced',
  `total_offline_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Total Offline Refunded',
  `total_online_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Total Online Refunded',
  `total_paid` decimal(12,4) DEFAULT NULL COMMENT 'Total Paid',
  `total_qty_ordered` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty Ordered',
  `total_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Total Refunded',
  `can_ship_partially` smallint(5) unsigned DEFAULT NULL COMMENT 'Can Ship Partially',
  `can_ship_partially_item` smallint(5) unsigned DEFAULT NULL COMMENT 'Can Ship Partially Item',
  `customer_is_guest` smallint(5) unsigned DEFAULT NULL COMMENT 'Customer Is Guest',
  `customer_note_notify` smallint(5) unsigned DEFAULT NULL COMMENT 'Customer Note Notify',
  `billing_address_id` int(11) DEFAULT NULL COMMENT 'Billing Address Id',
  `customer_group_id` smallint(6) DEFAULT NULL COMMENT 'Customer Group Id',
  `edit_increment` int(11) DEFAULT NULL COMMENT 'Edit Increment',
  `email_sent` smallint(5) unsigned DEFAULT NULL COMMENT 'Email Sent',
  `forced_shipment_with_invoice` smallint(5) unsigned DEFAULT NULL COMMENT 'Forced Do Shipment With Invoice',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `payment_auth_expiration` int(11) DEFAULT NULL COMMENT 'Payment Authorization Expiration',
  `paypal_ipn_customer_notified` int(11) DEFAULT NULL COMMENT 'Paypal Ipn Customer Notified',
  `quote_address_id` int(11) DEFAULT NULL COMMENT 'Quote Address Id',
  `quote_id` int(11) DEFAULT NULL COMMENT 'Quote Id',
  `shipping_address_id` int(11) DEFAULT NULL COMMENT 'Shipping Address Id',
  `adjustment_negative` decimal(12,4) DEFAULT NULL COMMENT 'Adjustment Negative',
  `adjustment_positive` decimal(12,4) DEFAULT NULL COMMENT 'Adjustment Positive',
  `base_adjustment_negative` decimal(12,4) DEFAULT NULL COMMENT 'Base Adjustment Negative',
  `base_adjustment_positive` decimal(12,4) DEFAULT NULL COMMENT 'Base Adjustment Positive',
  `base_shipping_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Discount Amount',
  `base_subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Incl Tax',
  `base_total_due` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Due',
  `payment_authorization_amount` decimal(12,4) DEFAULT NULL COMMENT 'Payment Authorization Amount',
  `shipping_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Discount Amount',
  `subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `total_due` decimal(12,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) DEFAULT NULL COMMENT 'Increment Id',
  `applied_rule_ids` varchar(255) DEFAULT NULL COMMENT 'Applied Rule Ids',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `customer_email` varchar(255) DEFAULT NULL COMMENT 'Customer Email',
  `customer_firstname` varchar(255) DEFAULT NULL COMMENT 'Customer Firstname',
  `customer_lastname` varchar(255) DEFAULT NULL COMMENT 'Customer Lastname',
  `customer_middlename` varchar(255) DEFAULT NULL COMMENT 'Customer Middlename',
  `customer_prefix` varchar(255) DEFAULT NULL COMMENT 'Customer Prefix',
  `customer_suffix` varchar(255) DEFAULT NULL COMMENT 'Customer Suffix',
  `customer_taxvat` varchar(255) DEFAULT NULL COMMENT 'Customer Taxvat',
  `discount_description` varchar(255) DEFAULT NULL COMMENT 'Discount Description',
  `ext_customer_id` varchar(255) DEFAULT NULL COMMENT 'Ext Customer Id',
  `ext_order_id` varchar(255) DEFAULT NULL COMMENT 'Ext Order Id',
  `global_currency_code` varchar(3) DEFAULT NULL COMMENT 'Global Currency Code',
  `hold_before_state` varchar(255) DEFAULT NULL COMMENT 'Hold Before State',
  `hold_before_status` varchar(255) DEFAULT NULL COMMENT 'Hold Before Status',
  `order_currency_code` varchar(255) DEFAULT NULL COMMENT 'Order Currency Code',
  `original_increment_id` varchar(50) DEFAULT NULL COMMENT 'Original Increment Id',
  `relation_child_id` varchar(32) DEFAULT NULL COMMENT 'Relation Child Id',
  `relation_child_real_id` varchar(32) DEFAULT NULL COMMENT 'Relation Child Real Id',
  `relation_parent_id` varchar(32) DEFAULT NULL COMMENT 'Relation Parent Id',
  `relation_parent_real_id` varchar(32) DEFAULT NULL COMMENT 'Relation Parent Real Id',
  `remote_ip` varchar(255) DEFAULT NULL COMMENT 'Remote Ip',
  `shipping_method` varchar(255) DEFAULT NULL COMMENT 'Shipping Method',
  `store_currency_code` varchar(3) DEFAULT NULL COMMENT 'Store Currency Code',
  `store_name` varchar(255) DEFAULT NULL COMMENT 'Store Name',
  `x_forwarded_for` varchar(255) DEFAULT NULL COMMENT 'X Forwarded For',
  `customer_note` text COMMENT 'Customer Note',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `total_item_count` smallint(5) unsigned NOT NULL COMMENT 'Total Item Count',
  `customer_gender` int(11) DEFAULT NULL COMMENT 'Customer Gender',
  `base_custbalance_amount` decimal(12,4) DEFAULT NULL,
  `currency_base_id` int(11) DEFAULT NULL,
  `currency_code` varchar(255) DEFAULT NULL,
  `currency_rate` decimal(12,4) DEFAULT NULL,
  `custbalance_amount` decimal(12,4) DEFAULT NULL,
  `is_hold` int(11) DEFAULT NULL,
  `is_multi_payment` int(11) DEFAULT NULL,
  `real_order_id` varchar(255) DEFAULT NULL,
  `tax_percent` decimal(12,4) DEFAULT NULL,
  `tracking_numbers` text,
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  `shipping_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Hidden Tax Amount',
  `base_shipping_hidden_tax_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Hidden Tax Amount',
  `hidden_tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Invoiced',
  `base_hidden_tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Invoiced',
  `hidden_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Refunded',
  `base_hidden_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Refunded',
  `shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_ORDER_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_ORDER_STATUS` (`status`),
  KEY `IDX_SALES_FLAT_ORDER_STATE` (`state`),
  KEY `IDX_SALES_FLAT_ORDER_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_ORDER_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_ORDER_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_SALES_FLAT_ORDER_EXT_ORDER_ID` (`ext_order_id`),
  KEY `IDX_SALES_FLAT_ORDER_QUOTE_ID` (`quote_id`),
  KEY `IDX_SALES_FLAT_ORDER_UPDATED_AT` (`updated_at`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_ORDER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order';

/*Data for the table `sales_flat_order` */



/*Table structure for table `sales_flat_order_address` */


CREATE TABLE `sales_flat_order_address` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Id',
  `customer_address_id` int(11) DEFAULT NULL COMMENT 'Customer Address Id',
  `quote_address_id` int(11) DEFAULT NULL COMMENT 'Quote Address Id',
  `region_id` int(11) DEFAULT NULL COMMENT 'Region Id',
  `customer_id` int(11) DEFAULT NULL COMMENT 'Customer Id',
  `fax` varchar(255) DEFAULT NULL COMMENT 'Fax',
  `region` varchar(255) DEFAULT NULL COMMENT 'Region',
  `postcode` varchar(255) DEFAULT NULL COMMENT 'Postcode',
  `lastname` varchar(255) DEFAULT NULL COMMENT 'Lastname',
  `street` varchar(255) DEFAULT NULL COMMENT 'Street',
  `city` varchar(255) DEFAULT NULL COMMENT 'City',
  `email` varchar(255) DEFAULT NULL COMMENT 'Email',
  `telephone` varchar(255) DEFAULT NULL COMMENT 'Telephone',
  `country_id` varchar(2) DEFAULT NULL COMMENT 'Country Id',
  `firstname` varchar(255) DEFAULT NULL COMMENT 'Firstname',
  `address_type` varchar(255) DEFAULT NULL COMMENT 'Address Type',
  `prefix` varchar(255) DEFAULT NULL COMMENT 'Prefix',
  `middlename` varchar(255) DEFAULT NULL COMMENT 'Middlename',
  `suffix` varchar(255) DEFAULT NULL COMMENT 'Suffix',
  `company` varchar(255) DEFAULT NULL COMMENT 'Company',
  `address_id` int(11) DEFAULT NULL,
  `gift_message_id` int(11) DEFAULT NULL,
  `tax_id` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_ORDER_ADDRESS_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_ADDRESS_PARENT_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order Address';

/*Data for the table `sales_flat_order_address` */



/*Table structure for table `sales_flat_order_grid` */


CREATE TABLE `sales_flat_order_grid` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `status` varchar(32) DEFAULT NULL COMMENT 'Status',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `store_name` varchar(255) DEFAULT NULL COMMENT 'Store Name',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `base_grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Base Grand Total',
  `base_total_paid` decimal(12,4) DEFAULT NULL COMMENT 'Base Total Paid',
  `grand_total` decimal(12,4) DEFAULT NULL COMMENT 'Grand Total',
  `total_paid` decimal(12,4) DEFAULT NULL COMMENT 'Total Paid',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `base_currency_code` varchar(3) DEFAULT NULL COMMENT 'Base Currency Code',
  `order_currency_code` varchar(255) DEFAULT NULL COMMENT 'Order Currency Code',
  `shipping_name` varchar(255) DEFAULT NULL COMMENT 'Shipping Name',
  `billing_name` varchar(255) DEFAULT NULL COMMENT 'Billing 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 `UNQ_SALES_FLAT_ORDER_GRID_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_STATUS` (`status`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_BASE_GRAND_TOTAL` (`base_grand_total`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_BASE_TOTAL_PAID` (`base_total_paid`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_GRAND_TOTAL` (`grand_total`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_TOTAL_PAID` (`total_paid`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_SHIPPING_NAME` (`shipping_name`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_BILLING_NAME` (`billing_name`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_SALES_FLAT_ORDER_GRID_UPDATED_AT` (`updated_at`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_GRID_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_ORDER_GRID_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_ORDER_GRID_ENTITY_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order Grid';

/*Data for the table `sales_flat_order_grid` */



/*Table structure for table `sales_flat_order_item` */


CREATE TABLE `sales_flat_order_item` (
  `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item Id',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `parent_item_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Item Id',
  `quote_item_id` int(10) unsigned DEFAULT NULL COMMENT 'Quote Item Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `product_type` varchar(255) DEFAULT NULL COMMENT 'Product Type',
  `product_options` text COMMENT 'Product Options',
  `weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Weight',
  `is_virtual` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Virtual',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `description` text COMMENT 'Description',
  `applied_rule_ids` text COMMENT 'Applied Rule Ids',
  `additional_data` text COMMENT 'Additional Data',
  `free_shipping` smallint(5) unsigned NOT NULL COMMENT 'Free Shipping',
  `is_qty_decimal` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Qty Decimal',
  `no_discount` smallint(5) unsigned NOT NULL 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(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `base_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Price',
  `original_price` decimal(12,4) DEFAULT NULL COMMENT 'Original Price',
  `base_original_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Original Price',
  `tax_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Percent',
  `tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Amount',
  `base_tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Tax Amount',
  `tax_invoiced` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Invoiced',
  `base_tax_invoiced` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Tax Invoiced',
  `discount_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Percent',
  `discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Amount',
  `base_discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Discount Amount',
  `discount_invoiced` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Invoiced',
  `base_discount_invoiced` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Discount Invoiced',
  `amount_refunded` decimal(12,4) DEFAULT '0.0000' COMMENT 'Amount Refunded',
  `base_amount_refunded` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Amount Refunded',
  `row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Total',
  `base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Total',
  `row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Invoiced',
  `base_row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Invoiced',
  `row_weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Weight',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `gift_message_available` int(11) DEFAULT NULL COMMENT 'Gift Message Available',
  `base_tax_before_discount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Before Discount',
  `tax_before_discount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Before Discount',
  `weee_tax_applied` text 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',
  `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',
  `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_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',
  `ext_order_item_id` varchar(255) DEFAULT NULL COMMENT 'Ext Order Item Id',
  `locked_do_invoice` smallint(5) unsigned DEFAULT NULL COMMENT 'Locked Do Invoice',
  `locked_do_ship` smallint(5) unsigned DEFAULT NULL COMMENT 'Locked Do Ship',
  `price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  `hidden_tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Invoiced',
  `base_hidden_tax_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Invoiced',
  `hidden_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Refunded',
  `base_hidden_tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Refunded',
  `is_nominal` int(11) NOT NULL COMMENT 'Is Nominal',
  `tax_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Tax Canceled',
  `hidden_tax_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Canceled',
  `tax_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Tax Refunded',
  PRIMARY KEY (`item_id`),
  KEY `IDX_SALES_FLAT_ORDER_ITEM_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_ORDER_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_ORDER_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order Item';

/*Data for the table `sales_flat_order_item` */



/*Table structure for table `sales_flat_order_payment` */


CREATE TABLE `sales_flat_order_payment` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `base_shipping_captured` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Captured',
  `shipping_captured` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Captured',
  `amount_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Amount Refunded',
  `base_amount_paid` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Paid',
  `amount_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Amount Canceled',
  `base_amount_authorized` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Authorized',
  `base_amount_paid_online` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Paid Online',
  `base_amount_refunded_online` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Refunded Online',
  `base_shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Amount',
  `shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `amount_paid` decimal(12,4) DEFAULT NULL COMMENT 'Amount Paid',
  `amount_authorized` decimal(12,4) DEFAULT NULL COMMENT 'Amount Authorized',
  `base_amount_ordered` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Ordered',
  `base_shipping_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Refunded',
  `shipping_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Refunded',
  `base_amount_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Refunded',
  `amount_ordered` decimal(12,4) DEFAULT NULL COMMENT 'Amount Ordered',
  `base_amount_canceled` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount Canceled',
  `ideal_transaction_checked` tinyint(1) unsigned DEFAULT NULL,
  `quote_payment_id` int(11) DEFAULT NULL COMMENT 'Quote Payment Id',
  `additional_data` text COMMENT 'Additional Data',
  `cc_exp_month` varchar(255) DEFAULT NULL COMMENT 'Cc Exp Month',
  `cc_ss_start_year` varchar(255) DEFAULT NULL COMMENT 'Cc Ss Start Year',
  `echeck_bank_name` varchar(255) DEFAULT NULL COMMENT 'Echeck Bank Name',
  `method` varchar(255) DEFAULT NULL COMMENT 'Method',
  `cc_debug_request_body` varchar(255) DEFAULT NULL COMMENT 'Cc Debug Request Body',
  `cc_secure_verify` varchar(255) DEFAULT NULL COMMENT 'Cc Secure Verify',
  `cybersource_token` varchar(255) DEFAULT NULL,
  `ideal_issuer_title` varchar(255) DEFAULT NULL,
  `protection_eligibility` varchar(255) DEFAULT NULL COMMENT 'Protection Eligibility',
  `cc_approval` varchar(255) DEFAULT NULL COMMENT 'Cc Approval',
  `cc_last4` varchar(255) DEFAULT NULL COMMENT 'Cc Last4',
  `cc_status_description` varchar(255) DEFAULT NULL COMMENT 'Cc Status Description',
  `echeck_type` varchar(255) DEFAULT NULL COMMENT 'Echeck Type',
  `paybox_question_number` varchar(255) DEFAULT NULL,
  `cc_debug_response_serialized` varchar(255) DEFAULT NULL COMMENT 'Cc Debug Response Serialized',
  `cc_ss_start_month` varchar(255) DEFAULT NULL COMMENT 'Cc Ss Start Month',
  `echeck_account_type` varchar(255) DEFAULT NULL COMMENT 'Echeck Account Type',
  `last_trans_id` varchar(255) DEFAULT NULL COMMENT 'Last Trans Id',
  `cc_cid_status` varchar(255) DEFAULT NULL COMMENT 'Cc Cid Status',
  `cc_owner` varchar(255) DEFAULT NULL COMMENT 'Cc Owner',
  `cc_type` varchar(255) DEFAULT NULL COMMENT 'Cc Type',
  `ideal_issuer_id` varchar(255) DEFAULT NULL,
  `po_number` varchar(255) DEFAULT NULL COMMENT 'Po Number',
  `cc_exp_year` varchar(255) DEFAULT NULL COMMENT 'Cc Exp Year',
  `cc_status` varchar(255) DEFAULT NULL COMMENT 'Cc Status',
  `echeck_routing_number` varchar(255) DEFAULT NULL COMMENT 'Echeck Routing Number',
  `account_status` varchar(255) DEFAULT NULL COMMENT 'Account Status',
  `anet_trans_method` varchar(255) DEFAULT NULL COMMENT 'Anet Trans Method',
  `cc_debug_response_body` varchar(255) DEFAULT NULL COMMENT 'Cc Debug Response Body',
  `cc_ss_issue` varchar(255) DEFAULT NULL COMMENT 'Cc Ss Issue',
  `echeck_account_name` varchar(255) DEFAULT NULL COMMENT 'Echeck Account Name',
  `cc_avs_status` varchar(255) DEFAULT NULL COMMENT 'Cc Avs Status',
  `cc_number_enc` varchar(255) DEFAULT NULL COMMENT 'Cc Number Enc',
  `cc_trans_id` varchar(255) DEFAULT NULL COMMENT 'Cc Trans Id',
  `flo2cash_account_id` varchar(255) DEFAULT NULL,
  `paybox_request_number` varchar(255) DEFAULT NULL COMMENT 'Paybox Request Number',
  `address_status` varchar(255) DEFAULT NULL COMMENT 'Address Status',
  `additional_information` text COMMENT 'Additional Information',
  `amount` decimal(12,4) DEFAULT NULL,
  `cc_raw_request` text,
  `cc_raw_response` text,
  `customer_payment_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_ORDER_PAYMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_SALES_FLAT_ORDER_PAYMENT_PARENT_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order Payment';

/*Data for the table `sales_flat_order_payment` */



/*Table structure for table `sales_flat_order_status_history` */


CREATE TABLE `sales_flat_order_status_history` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `is_customer_notified` int(11) DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint(5) unsigned NOT NULL COMMENT 'Is Visible On Front',
  `comment` text COMMENT 'Comment',
  `status` varchar(32) DEFAULT NULL COMMENT 'Status',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `entity_name` varchar(32) DEFAULT NULL COMMENT 'Shows what entity history is bind to.',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_ORDER_STATUS_HISTORY_PARENT_ID` (`parent_id`),
  KEY `IDX_SALES_FLAT_ORDER_STATUS_HISTORY_CREATED_AT` (`created_at`),
  CONSTRAINT `FK_CE7C71E74CB74DDACED337CEE6753D5E` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Order Status History';

/*Data for the table `sales_flat_order_status_history` */



/*Table structure for table `sales_flat_quote` */


CREATE TABLE `sales_flat_quote` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `converted_at` timestamp NULL DEFAULT NULL COMMENT 'Converted At',
  `is_active` smallint(5) unsigned DEFAULT '1' COMMENT 'Is Active',
  `is_virtual` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Virtual',
  `is_multi_shipping` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Multi Shipping',
  `items_count` int(10) unsigned DEFAULT '0' COMMENT 'Items Count',
  `items_qty` decimal(12,4) DEFAULT '0.0000' COMMENT 'Items Qty',
  `orig_order_id` int(10) unsigned DEFAULT '0' COMMENT 'Orig Order Id',
  `store_to_base_rate` decimal(12,4) DEFAULT '0.0000' COMMENT 'Store To Base Rate',
  `store_to_quote_rate` decimal(12,4) DEFAULT '0.0000' COMMENT 'Store To Quote Rate',
  `base_to_global_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Global Rate',
  `base_to_quote_rate` decimal(12,4) DEFAULT NULL COMMENT 'Base To Quote Rate',
  `global_currency_code` varchar(255) DEFAULT NULL COMMENT 'Global Currency Code',
  `base_currency_code` varchar(255) DEFAULT NULL COMMENT 'Base Currency Code',
  `store_currency_code` varchar(255) DEFAULT NULL COMMENT 'Store Currency Code',
  `quote_currency_code` varchar(255) DEFAULT NULL COMMENT 'Quote Currency Code',
  `grand_total` decimal(12,4) DEFAULT '0.0000' COMMENT 'Grand Total',
  `base_grand_total` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Grand Total',
  `checkout_method` varchar(255) DEFAULT NULL COMMENT 'Checkout Method',
  `customer_id` int(10) unsigned DEFAULT '0' COMMENT 'Customer Id',
  `customer_tax_class_id` int(10) unsigned DEFAULT '0' COMMENT 'Customer Tax Class Id',
  `customer_group_id` int(10) unsigned DEFAULT '0' COMMENT 'Customer Group Id',
  `customer_email` varchar(255) DEFAULT NULL COMMENT 'Customer Email',
  `customer_prefix` varchar(40) DEFAULT NULL COMMENT 'Customer Prefix',
  `customer_firstname` varchar(255) DEFAULT NULL COMMENT 'Customer Firstname',
  `customer_middlename` varchar(40) DEFAULT NULL COMMENT 'Customer Middlename',
  `customer_lastname` varchar(255) DEFAULT NULL COMMENT 'Customer Lastname',
  `customer_suffix` varchar(40) DEFAULT NULL COMMENT 'Customer Suffix',
  `customer_dob` datetime DEFAULT NULL COMMENT 'Customer Dob',
  `customer_note` varchar(255) DEFAULT NULL COMMENT 'Customer Note',
  `customer_note_notify` smallint(5) unsigned DEFAULT '1' COMMENT 'Customer Note Notify',
  `customer_is_guest` smallint(5) unsigned DEFAULT '0' COMMENT 'Customer Is Guest',
  `customer_taxvat` varchar(255) DEFAULT NULL COMMENT 'Customer Taxvat',
  `remote_ip` varchar(32) DEFAULT NULL COMMENT 'Remote Ip',
  `applied_rule_ids` varchar(255) DEFAULT NULL COMMENT 'Applied Rule Ids',
  `reserved_order_id` varchar(64) DEFAULT NULL COMMENT 'Reserved Order Id',
  `password_hash` varchar(255) DEFAULT NULL COMMENT 'Password Hash',
  `coupon_code` varchar(255) DEFAULT NULL COMMENT 'Coupon Code',
  `subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal',
  `base_subtotal` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal',
  `subtotal_with_discount` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal With Discount',
  `base_subtotal_with_discount` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal With Discount',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `is_changed` int(10) unsigned DEFAULT NULL COMMENT 'Is Changed',
  `trigger_recollect` smallint(6) NOT NULL COMMENT 'Trigger Recollect',
  `ext_shipping_info` text COMMENT 'Ext Shipping Info',
  `customer_gender` varchar(255) DEFAULT NULL COMMENT 'Customer Gender',
  `is_persistent` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Quote Persistent',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_QUOTE_CUSTOMER_ID_STORE_ID_IS_ACTIVE` (`customer_id`,`store_id`,`is_active`),
  KEY `IDX_SALES_FLAT_QUOTE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_FLAT_QUOTE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote';

/*Data for the table `sales_flat_quote` */



/*Table structure for table `sales_flat_quote_address` */


CREATE TABLE `sales_flat_quote_address` (
  `address_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Address Id',
  `quote_id` int(10) unsigned NOT NULL COMMENT 'Quote Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `save_in_address_book` smallint(6) DEFAULT '0' COMMENT 'Save In Address Book',
  `customer_address_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Address Id',
  `address_type` varchar(255) DEFAULT NULL COMMENT 'Address Type',
  `email` varchar(255) DEFAULT NULL COMMENT 'Email',
  `prefix` varchar(40) DEFAULT NULL COMMENT 'Prefix',
  `firstname` varchar(255) DEFAULT NULL COMMENT 'Firstname',
  `middlename` varchar(40) DEFAULT NULL COMMENT 'Middlename',
  `lastname` varchar(255) DEFAULT NULL COMMENT 'Lastname',
  `suffix` varchar(40) DEFAULT NULL COMMENT 'Suffix',
  `company` varchar(255) DEFAULT NULL COMMENT 'Company',
  `street` varchar(255) DEFAULT NULL COMMENT 'Street',
  `city` varchar(255) DEFAULT NULL COMMENT 'City',
  `region` varchar(255) DEFAULT NULL COMMENT 'Region',
  `region_id` int(10) unsigned DEFAULT NULL COMMENT 'Region Id',
  `postcode` varchar(255) DEFAULT NULL COMMENT 'Postcode',
  `country_id` varchar(255) DEFAULT NULL COMMENT 'Country Id',
  `telephone` varchar(255) DEFAULT NULL COMMENT 'Telephone',
  `fax` varchar(255) DEFAULT NULL COMMENT 'Fax',
  `same_as_billing` smallint(5) unsigned NOT NULL COMMENT 'Same As Billing',
  `free_shipping` smallint(5) unsigned NOT NULL COMMENT 'Free Shipping',
  `collect_shipping_rates` smallint(5) unsigned NOT NULL COMMENT 'Collect Shipping Rates',
  `shipping_method` varchar(255) DEFAULT NULL COMMENT 'Shipping Method',
  `shipping_description` varchar(255) DEFAULT NULL COMMENT 'Shipping Description',
  `weight` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Weight',
  `subtotal` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal',
  `base_subtotal` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Subtotal',
  `subtotal_with_discount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal With Discount',
  `base_subtotal_with_discount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Subtotal With Discount',
  `tax_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Tax Amount',
  `base_tax_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Tax Amount',
  `shipping_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Shipping Amount',
  `base_shipping_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Shipping Amount',
  `shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Tax Amount',
  `base_shipping_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Tax Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `base_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Discount Amount',
  `grand_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Grand Total',
  `base_grand_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Grand Total',
  `customer_notes` text COMMENT 'Customer Notes',
  `applied_taxes` text COMMENT 'Applied Taxes',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `shipping_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Discount Amount',
  `base_shipping_discount_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Discount Amount',
  `subtotal_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Subtotal Incl Tax',
  `base_subtotal_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Subtotal Total Incl Tax',
  `discount_description` varchar(255) DEFAULT NULL COMMENT 'Discount Description',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  `shipping_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Hidden Tax Amount',
  `base_shipping_hidden_tax_amnt` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Hidden Tax Amount',
  `shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Incl Tax',
  `base_shipping_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Shipping Incl Tax',
  PRIMARY KEY (`address_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ADDRESS_QUOTE_ID` (`quote_id`),
  CONSTRAINT `FK_SALES_FLAT_QUOTE_ADDRESS_QUOTE_ID_SALES_FLAT_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `sales_flat_quote` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Address';

/*Data for the table `sales_flat_quote_address` */



/*Table structure for table `sales_flat_quote_address_item` */


CREATE TABLE `sales_flat_quote_address_item` (
  `address_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Address Item Id',
  `parent_item_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Item Id',
  `quote_address_id` int(10) unsigned NOT NULL COMMENT 'Quote Address Id',
  `quote_item_id` int(10) unsigned NOT NULL COMMENT 'Quote Item Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `applied_rule_ids` text COMMENT 'Applied Rule Ids',
  `additional_data` text COMMENT 'Additional Data',
  `weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Weight',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Amount',
  `tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Amount',
  `row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Total',
  `base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Total',
  `row_total_with_discount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Total With Discount',
  `base_discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Discount Amount',
  `base_tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Tax Amount',
  `row_weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Weight',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `base_cost` decimal(12,4) DEFAULT NULL COMMENT 'Base Cost',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `super_product_id` int(10) unsigned DEFAULT NULL COMMENT 'Super Product Id',
  `parent_product_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Product Id',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  `image` varchar(255) DEFAULT NULL COMMENT 'Image',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `description` text COMMENT 'Description',
  `free_shipping` int(10) unsigned DEFAULT NULL COMMENT 'Free Shipping',
  `is_qty_decimal` int(10) unsigned DEFAULT NULL COMMENT 'Is Qty Decimal',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `discount_percent` decimal(12,4) DEFAULT NULL COMMENT 'Discount Percent',
  `no_discount` int(10) unsigned DEFAULT NULL COMMENT 'No Discount',
  `tax_percent` decimal(12,4) DEFAULT NULL COMMENT 'Tax Percent',
  `base_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Price',
  `price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  PRIMARY KEY (`address_item_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID` (`quote_address_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ADDRESS_ITEM_PARENT_ITEM_ID` (`parent_item_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID` (`quote_item_id`),
  CONSTRAINT `FK_2EF8E28181D666D94D4E30DC2B0F80BF` FOREIGN KEY (`quote_item_id`) REFERENCES `sales_flat_quote_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_A345FC758F20C314169CE27DCE53477F` FOREIGN KEY (`parent_item_id`) REFERENCES `sales_flat_quote_address_item` (`address_item_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_B521389746C00700D1B2B76EBBE53854` FOREIGN KEY (`quote_address_id`) REFERENCES `sales_flat_quote_address` (`address_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Address Item';

/*Data for the table `sales_flat_quote_address_item` */



/*Table structure for table `sales_flat_quote_item` */


CREATE TABLE `sales_flat_quote_item` (
  `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item Id',
  `quote_id` int(10) unsigned NOT NULL COMMENT 'Quote Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `parent_item_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Item Id',
  `is_virtual` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Virtual',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `description` text COMMENT 'Description',
  `applied_rule_ids` text COMMENT 'Applied Rule Ids',
  `additional_data` text COMMENT 'Additional Data',
  `free_shipping` smallint(5) unsigned NOT NULL COMMENT 'Free Shipping',
  `is_qty_decimal` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Qty Decimal',
  `no_discount` smallint(5) unsigned DEFAULT '0' COMMENT 'No Discount',
  `weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Weight',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `base_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Price',
  `custom_price` decimal(12,4) DEFAULT NULL COMMENT 'Custom Price',
  `discount_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Percent',
  `discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Discount Amount',
  `base_discount_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Discount Amount',
  `tax_percent` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Percent',
  `tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Tax Amount',
  `base_tax_amount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Base Tax Amount',
  `row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Row Total',
  `base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Base Row Total',
  `row_total_with_discount` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Total With Discount',
  `row_weight` decimal(12,4) DEFAULT '0.0000' COMMENT 'Row Weight',
  `product_type` varchar(255) DEFAULT NULL COMMENT 'Product Type',
  `base_tax_before_discount` decimal(12,4) DEFAULT NULL COMMENT 'Base Tax Before Discount',
  `tax_before_discount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Before Discount',
  `original_custom_price` decimal(12,4) DEFAULT NULL COMMENT 'Original Custom Price',
  `gift_message_id` int(11) DEFAULT NULL COMMENT 'Gift Message Id',
  `weee_tax_applied` text 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',
  `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',
  `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_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',
  `redirect_url` varchar(255) DEFAULT NULL COMMENT 'Redirect Url',
  `base_cost` decimal(12,4) DEFAULT NULL COMMENT 'Base Cost',
  `price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Price Incl Tax',
  `base_price_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Price Incl Tax',
  `row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Row Total Incl Tax',
  `base_row_total_incl_tax` decimal(12,4) DEFAULT NULL COMMENT 'Base Row Total Incl Tax',
  `hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Hidden Tax Amount',
  `base_hidden_tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Hidden Tax Amount',
  PRIMARY KEY (`item_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ITEM_PARENT_ITEM_ID` (`parent_item_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ITEM_PRODUCT_ID` (`product_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ITEM_QUOTE_ID` (`quote_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `FK_B201DEB5DE51B791AF5C5BF87053C5A7` FOREIGN KEY (`parent_item_id`) REFERENCES `sales_flat_quote_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_QUOTE_ITEM_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_QUOTE_ITEM_QUOTE_ID_SALES_FLAT_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `sales_flat_quote` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_QUOTE_ITEM_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Item';

/*Data for the table `sales_flat_quote_item` */



/*Table structure for table `sales_flat_quote_item_option` */


CREATE TABLE `sales_flat_quote_item_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Id',
  `item_id` int(10) unsigned NOT NULL COMMENT 'Item Id',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `value` text COMMENT 'Value',
  PRIMARY KEY (`option_id`),
  KEY `IDX_SALES_FLAT_QUOTE_ITEM_OPTION_ITEM_ID` (`item_id`),
  CONSTRAINT `FK_5F20E478CA64B6891EA8A9D6C2735739` FOREIGN KEY (`item_id`) REFERENCES `sales_flat_quote_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Item Option';

/*Data for the table `sales_flat_quote_item_option` */



/*Table structure for table `sales_flat_quote_payment` */


CREATE TABLE `sales_flat_quote_payment` (
  `payment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Payment Id',
  `quote_id` int(10) unsigned NOT NULL COMMENT 'Quote Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `method` varchar(255) DEFAULT NULL COMMENT 'Method',
  `cc_type` varchar(255) DEFAULT NULL COMMENT 'Cc Type',
  `cc_number_enc` varchar(255) DEFAULT NULL COMMENT 'Cc Number Enc',
  `cc_last4` varchar(255) DEFAULT NULL COMMENT 'Cc Last4',
  `cc_cid_enc` varchar(255) DEFAULT NULL COMMENT 'Cc Cid Enc',
  `cc_owner` varchar(255) DEFAULT NULL COMMENT 'Cc Owner',
  `cc_exp_month` smallint(5) unsigned DEFAULT '0' COMMENT 'Cc Exp Month',
  `cc_exp_year` smallint(5) unsigned DEFAULT '0' COMMENT 'Cc Exp Year',
  `cc_ss_owner` varchar(255) DEFAULT NULL COMMENT 'Cc Ss Owner',
  `cc_ss_start_month` smallint(5) unsigned DEFAULT '0' COMMENT 'Cc Ss Start Month',
  `cc_ss_start_year` smallint(5) unsigned DEFAULT '0' COMMENT 'Cc Ss Start Year',
  `cybersource_token` varchar(255) DEFAULT '',
  `paypal_correlation_id` varchar(255) DEFAULT NULL COMMENT 'Paypal Correlation Id',
  `paypal_payer_id` varchar(255) DEFAULT NULL COMMENT 'Paypal Payer Id',
  `paypal_payer_status` varchar(255) DEFAULT NULL COMMENT 'Paypal Payer Status',
  `po_number` varchar(255) DEFAULT NULL COMMENT 'Po Number',
  `ideal_issuer_id` varchar(255) DEFAULT NULL,
  `ideal_issuer_list` varchar(255) DEFAULT NULL,
  `additional_information` text COMMENT 'Additional Information',
  `additional_data` text COMMENT 'Additional Data',
  `cc_ss_issue` varchar(255) DEFAULT NULL COMMENT 'Cc Ss Issue',
  PRIMARY KEY (`payment_id`),
  KEY `IDX_SALES_FLAT_QUOTE_PAYMENT_QUOTE_ID` (`quote_id`),
  CONSTRAINT `FK_SALES_FLAT_QUOTE_PAYMENT_QUOTE_ID_SALES_FLAT_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `sales_flat_quote` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Payment';

/*Data for the table `sales_flat_quote_payment` */



/*Table structure for table `sales_flat_quote_shipping_rate` */


CREATE TABLE `sales_flat_quote_shipping_rate` (
  `rate_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rate Id',
  `address_id` int(10) unsigned NOT NULL COMMENT 'Address Id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated At',
  `carrier` varchar(255) DEFAULT NULL COMMENT 'Carrier',
  `carrier_title` varchar(255) DEFAULT NULL COMMENT 'Carrier Title',
  `code` varchar(255) DEFAULT NULL COMMENT 'Code',
  `method` varchar(255) DEFAULT NULL COMMENT 'Method',
  `method_description` text COMMENT 'Method Description',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `method_title` text COMMENT 'Method Title',
  `error_message` text COMMENT 'Error Message',
  PRIMARY KEY (`rate_id`),
  KEY `IDX_SALES_FLAT_QUOTE_SHIPPING_RATE_ADDRESS_ID` (`address_id`),
  CONSTRAINT `FK_B1F177EFB73D3EDF5322BA64AC48D150` FOREIGN KEY (`address_id`) REFERENCES `sales_flat_quote_address` (`address_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Quote Shipping Rate';

/*Data for the table `sales_flat_quote_shipping_rate` */



/*Table structure for table `sales_flat_shipment` */


CREATE TABLE `sales_flat_shipment` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `store_id` smallint(5) 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(5) unsigned DEFAULT NULL COMMENT 'Email Sent',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `customer_id` int(11) DEFAULT NULL COMMENT 'Customer Id',
  `shipping_address_id` int(11) DEFAULT NULL COMMENT 'Shipping Address Id',
  `billing_address_id` int(11) DEFAULT NULL COMMENT 'Billing Address Id',
  `shipment_status` int(11) DEFAULT NULL COMMENT 'Shipment Status',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `packages` text COMMENT 'Packed Products in Packages',
  `shipping_label` mediumblob COMMENT 'Shipping Label Content',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_SHIPMENT_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_TOTAL_QTY` (`total_qty`),
  KEY `IDX_SALES_FLAT_SHIPMENT_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_SHIPMENT_UPDATED_AT` (`updated_at`),
  CONSTRAINT `FK_SALES_FLAT_SHIPMENT_ORDER_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_SHIPMENT_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Shipment';

/*Data for the table `sales_flat_shipment` */



/*Table structure for table `sales_flat_shipment_comment` */


CREATE TABLE `sales_flat_shipment_comment` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `is_customer_notified` int(11) DEFAULT NULL COMMENT 'Is Customer Notified',
  `is_visible_on_front` smallint(5) unsigned NOT NULL COMMENT 'Is Visible On Front',
  `comment` text COMMENT 'Comment',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_COMMENT_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_SHIPMENT_COMMENT_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_C2D69CC1FB03D2B2B794B0439F6650CF` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_shipment` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Shipment Comment';

/*Data for the table `sales_flat_shipment_comment` */



/*Table structure for table `sales_flat_shipment_grid` */


CREATE TABLE `sales_flat_shipment_grid` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `total_qty` decimal(12,4) DEFAULT NULL COMMENT 'Total Qty',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `shipment_status` int(11) DEFAULT NULL COMMENT 'Shipment Status',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `order_increment_id` varchar(50) DEFAULT NULL COMMENT 'Order Increment Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `order_created_at` timestamp NULL DEFAULT NULL COMMENT 'Order Created At',
  `shipping_name` varchar(255) DEFAULT NULL COMMENT 'Shipping Name',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_SALES_FLAT_SHIPMENT_GRID_INCREMENT_ID` (`increment_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_STORE_ID` (`store_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_TOTAL_QTY` (`total_qty`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_SHIPMENT_STATUS` (`shipment_status`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_ORDER_INCREMENT_ID` (`order_increment_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_CREATED_AT` (`created_at`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_ORDER_CREATED_AT` (`order_created_at`),
  KEY `IDX_SALES_FLAT_SHIPMENT_GRID_SHIPPING_NAME` (`shipping_name`),
  CONSTRAINT `FK_SALES_FLAT_SHIPMENT_GRID_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_FLAT_SHIPMENT_GRID_ENTT_ID_SALES_FLAT_SHIPMENT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `sales_flat_shipment` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Shipment Grid';

/*Data for the table `sales_flat_shipment_grid` */



/*Table structure for table `sales_flat_shipment_item` */


CREATE TABLE `sales_flat_shipment_item` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `row_total` decimal(12,4) DEFAULT NULL COMMENT 'Row Total',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `weight` decimal(12,4) DEFAULT NULL COMMENT 'Weight',
  `qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty',
  `product_id` int(11) DEFAULT NULL COMMENT 'Product Id',
  `order_item_id` int(11) DEFAULT NULL COMMENT 'Order Item Id',
  `additional_data` text COMMENT 'Additional Data',
  `description` text COMMENT 'Description',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `sku` varchar(255) DEFAULT NULL COMMENT 'Sku',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_ITEM_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_3AECE5007D18F159231B87E8306FC02A` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_shipment` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Shipment Item';

/*Data for the table `sales_flat_shipment_item` */



/*Table structure for table `sales_flat_shipment_track` */


CREATE TABLE `sales_flat_shipment_track` (
  `entity_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
  `parent_id` int(10) 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(10) unsigned NOT NULL COMMENT 'Order Id',
  `track_number` text COMMENT 'Number',
  `description` text COMMENT 'Description',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  `carrier_code` varchar(32) DEFAULT NULL COMMENT 'Carrier Code',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_TRACK_PARENT_ID` (`parent_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_TRACK_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_FLAT_SHIPMENT_TRACK_CREATED_AT` (`created_at`),
  CONSTRAINT `FK_BCD2FA28717D29F37E10A153E6F2F841` FOREIGN KEY (`parent_id`) REFERENCES `sales_flat_shipment` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Flat Shipment Track';

/*Data for the table `sales_flat_shipment_track` */



/*Table structure for table `sales_invoiced_aggregated` */


CREATE TABLE `sales_invoiced_aggregated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `orders_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Orders Invoiced',
  `invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced',
  `invoiced_captured` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced Captured',
  `invoiced_not_captured` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced Not Captured',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_INVOICED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_INVOICED_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_INVOICED_AGGREGATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Invoiced Aggregated';

/*Data for the table `sales_invoiced_aggregated` */



/*Table structure for table `sales_invoiced_aggregated_order` */


CREATE TABLE `sales_invoiced_aggregated_order` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `orders_invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Orders Invoiced',
  `invoiced` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced',
  `invoiced_captured` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced Captured',
  `invoiced_not_captured` decimal(12,4) DEFAULT NULL COMMENT 'Invoiced Not Captured',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_INVOICED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_INVOICED_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_INVOICED_AGGREGATED_ORDER_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Invoiced Aggregated Order';

/*Data for the table `sales_invoiced_aggregated_order` */



/*Table structure for table `sales_order_aggregated_created` */


CREATE TABLE `sales_order_aggregated_created` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL 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(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Income Amount',
  `total_revenue_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Revenue Amount',
  `total_profit_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Profit Amount',
  `total_invoiced_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Invoiced Amount',
  `total_canceled_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Canceled Amount',
  `total_paid_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Paid Amount',
  `total_refunded_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Refunded Amount',
  `total_tax_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount',
  `total_tax_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount Actual',
  `total_shipping_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount',
  `total_shipping_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount Actual',
  `total_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount',
  `total_discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_ORDER_AGGREGATED_CREATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_ORDER_AGGREGATED_CREATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_ORDER_AGGREGATED_CREATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Aggregated Created';

/*Data for the table `sales_order_aggregated_created` */



/*Table structure for table `sales_order_aggregated_updated` */


CREATE TABLE `sales_order_aggregated_updated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL 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(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Income Amount',
  `total_revenue_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Revenue Amount',
  `total_profit_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Profit Amount',
  `total_invoiced_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Invoiced Amount',
  `total_canceled_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Canceled Amount',
  `total_paid_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Paid Amount',
  `total_refunded_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Refunded Amount',
  `total_tax_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount',
  `total_tax_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Tax Amount Actual',
  `total_shipping_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount',
  `total_shipping_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Shipping Amount Actual',
  `total_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount',
  `total_discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Discount Amount Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_ORDER_AGGREGATED_UPDATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_ORDER_AGGREGATED_UPDATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Aggregated Updated';

/*Data for the table `sales_order_aggregated_updated` */



/*Table structure for table `sales_order_status` */


CREATE TABLE `sales_order_status` (
  `status` varchar(32) NOT NULL COMMENT 'Status',
  `label` varchar(128) NOT NULL COMMENT 'Label',
  PRIMARY KEY (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Status Table';

/*Data for the table `sales_order_status` */


insert  into `sales_order_status`(`status`,`label`) values ('canceled','Canceled'),('closed','Closed'),('complete','Complete'),('fraud','Suspected Fraud'),('holded','On Hold'),('payment_review','Payment Review'),('pending','Pending'),('pending_payment','Pending Payment'),('pending_paypal','Pending PayPal'),('processing','Processing');


/*Table structure for table `sales_order_status_label` */


CREATE TABLE `sales_order_status_label` (
  `status` varchar(32) NOT NULL COMMENT 'Status',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `label` varchar(128) NOT NULL COMMENT 'Label',
  PRIMARY KEY (`status`,`store_id`),
  KEY `IDX_SALES_ORDER_STATUS_LABEL_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_ORDER_STATUS_LABEL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_ORDER_STATUS_LABEL_STATUS_SALES_ORDER_STATUS_STATUS` FOREIGN KEY (`status`) REFERENCES `sales_order_status` (`status`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Status Label Table';

/*Data for the table `sales_order_status_label` */



/*Table structure for table `sales_order_status_state` */


CREATE TABLE `sales_order_status_state` (
  `status` varchar(32) NOT NULL COMMENT 'Status',
  `state` varchar(32) NOT NULL COMMENT 'Label',
  `is_default` smallint(5) unsigned NOT NULL COMMENT 'Is Default',
  PRIMARY KEY (`status`,`state`),
  CONSTRAINT `FK_SALES_ORDER_STATUS_STATE_STATUS_SALES_ORDER_STATUS_STATUS` FOREIGN KEY (`status`) REFERENCES `sales_order_status` (`status`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Status Table';

/*Data for the table `sales_order_status_state` */


insert  into `sales_order_status_state`(`status`,`state`,`is_default`) values ('canceled','canceled',1),('closed','closed',1),('complete','complete',1),('fraud','payment_review',0),('holded','holded',1),('payment_review','payment_review',1),('pending','new',1),('pending_payment','pending_payment',1),('processing','processing',1);


/*Table structure for table `sales_order_tax` */


CREATE TABLE `sales_order_tax` (
  `tax_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tax Id',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `code` varchar(255) DEFAULT NULL COMMENT 'Code',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  `percent` decimal(12,4) DEFAULT NULL COMMENT 'Percent',
  `amount` decimal(12,4) DEFAULT NULL COMMENT 'Amount',
  `priority` int(11) NOT NULL COMMENT 'Priority',
  `position` int(11) NOT NULL COMMENT 'Position',
  `base_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Amount',
  `process` smallint(6) NOT NULL COMMENT 'Process',
  `base_real_amount` decimal(12,4) DEFAULT NULL COMMENT 'Base Real Amount',
  `hidden` smallint(5) unsigned NOT NULL COMMENT 'Hidden',
  PRIMARY KEY (`tax_id`),
  KEY `IDX_SALES_ORDER_TAX_ORDER_ID_PRIORITY_POSITION` (`order_id`,`priority`,`position`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Tax Table';

/*Data for the table `sales_order_tax` */



/*Table structure for table `sales_order_tax_item` */


CREATE TABLE `sales_order_tax_item` (
  `tax_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tax Item Id',
  `tax_id` int(10) unsigned NOT NULL COMMENT 'Tax Id',
  `item_id` int(10) unsigned NOT NULL COMMENT 'Item Id',
  `tax_percent` decimal(12,4) NOT NULL COMMENT 'Real Tax Percent For Item',
  PRIMARY KEY (`tax_item_id`),
  UNIQUE KEY `UNQ_SALES_ORDER_TAX_ITEM_TAX_ID_ITEM_ID` (`tax_id`,`item_id`),
  KEY `IDX_SALES_ORDER_TAX_ITEM_TAX_ID` (`tax_id`),
  KEY `IDX_SALES_ORDER_TAX_ITEM_ITEM_ID` (`item_id`),
  CONSTRAINT `FK_SALES_ORDER_TAX_ITEM_ITEM_ID_SALES_FLAT_ORDER_ITEM_ITEM_ID` FOREIGN KEY (`item_id`) REFERENCES `sales_flat_order_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_ORDER_TAX_ITEM_TAX_ID_SALES_ORDER_TAX_TAX_ID` FOREIGN KEY (`tax_id`) REFERENCES `sales_order_tax` (`tax_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Order Tax Item';

/*Data for the table `sales_order_tax_item` */



/*Table structure for table `sales_payment_transaction` */


CREATE TABLE `sales_payment_transaction` (
  `transaction_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Transaction Id',
  `parent_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Id',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  `payment_id` int(10) unsigned NOT NULL COMMENT 'Payment Id',
  `txn_id` varchar(100) DEFAULT NULL COMMENT 'Txn Id',
  `parent_txn_id` varchar(100) DEFAULT NULL COMMENT 'Parent Txn Id',
  `txn_type` varchar(15) DEFAULT NULL COMMENT 'Txn Type',
  `is_closed` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Closed',
  `additional_information` blob COMMENT 'Additional Information',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`transaction_id`),
  UNIQUE KEY `UNQ_SALES_PAYMENT_TRANSACTION_ORDER_ID_PAYMENT_ID_TXN_ID` (`order_id`,`payment_id`,`txn_id`),
  KEY `IDX_SALES_PAYMENT_TRANSACTION_ORDER_ID` (`order_id`),
  KEY `IDX_SALES_PAYMENT_TRANSACTION_PARENT_ID` (`parent_id`),
  KEY `IDX_SALES_PAYMENT_TRANSACTION_PAYMENT_ID` (`payment_id`),
  CONSTRAINT `FK_DA51A10B2405B64A4DAEF77A64F0DAAD` FOREIGN KEY (`payment_id`) REFERENCES `sales_flat_order_payment` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_B99FF1A06402D725EBDB0F3A7ECD47A2` FOREIGN KEY (`parent_id`) REFERENCES `sales_payment_transaction` (`transaction_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_PAYMENT_TRANSACTION_ORDER_ID_SALES_FLAT_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Payment Transaction';

/*Data for the table `sales_payment_transaction` */



/*Table structure for table `sales_recurring_profile` */


CREATE TABLE `sales_recurring_profile` (
  `profile_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Profile Id',
  `state` varchar(20) NOT NULL COMMENT 'State',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `method_code` varchar(32) NOT NULL COMMENT 'Method Code',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Created At',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `reference_id` varchar(32) DEFAULT NULL COMMENT 'Reference Id',
  `subscriber_name` varchar(150) DEFAULT NULL COMMENT 'Subscriber Name',
  `start_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Start Datetime',
  `internal_reference_id` varchar(42) NOT NULL COMMENT 'Internal Reference Id',
  `schedule_description` varchar(255) NOT NULL COMMENT 'Schedule Description',
  `suspension_threshold` smallint(5) unsigned DEFAULT NULL COMMENT 'Suspension Threshold',
  `bill_failed_later` smallint(5) unsigned NOT NULL COMMENT 'Bill Failed Later',
  `period_unit` varchar(20) NOT NULL COMMENT 'Period Unit',
  `period_frequency` smallint(5) unsigned DEFAULT NULL COMMENT 'Period Frequency',
  `period_max_cycles` smallint(5) unsigned DEFAULT NULL COMMENT 'Period Max Cycles',
  `billing_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Billing Amount',
  `trial_period_unit` varchar(20) DEFAULT NULL COMMENT 'Trial Period Unit',
  `trial_period_frequency` smallint(5) unsigned DEFAULT NULL COMMENT 'Trial Period Frequency',
  `trial_period_max_cycles` smallint(5) unsigned DEFAULT NULL COMMENT 'Trial Period Max Cycles',
  `trial_billing_amount` text COMMENT 'Trial Billing Amount',
  `currency_code` varchar(3) NOT NULL COMMENT 'Currency Code',
  `shipping_amount` decimal(12,4) DEFAULT NULL COMMENT 'Shipping Amount',
  `tax_amount` decimal(12,4) DEFAULT NULL COMMENT 'Tax Amount',
  `init_amount` decimal(12,4) DEFAULT NULL COMMENT 'Init Amount',
  `init_may_fail` smallint(5) unsigned NOT NULL COMMENT 'Init May Fail',
  `order_info` text NOT NULL COMMENT 'Order Info',
  `order_item_info` text NOT NULL COMMENT 'Order Item Info',
  `billing_address_info` text NOT NULL COMMENT 'Billing Address Info',
  `shipping_address_info` text COMMENT 'Shipping Address Info',
  `profile_vendor_info` text COMMENT 'Profile Vendor Info',
  `additional_info` text COMMENT 'Additional Info',
  PRIMARY KEY (`profile_id`),
  UNIQUE KEY `UNQ_SALES_RECURRING_PROFILE_INTERNAL_REFERENCE_ID` (`internal_reference_id`),
  KEY `IDX_SALES_RECURRING_PROFILE_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_SALES_RECURRING_PROFILE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_RECURRING_PROFILE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_SALES_RECURRING_PROFILE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Recurring Profile';

/*Data for the table `sales_recurring_profile` */



/*Table structure for table `sales_recurring_profile_order` */


CREATE TABLE `sales_recurring_profile_order` (
  `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link Id',
  `profile_id` int(10) unsigned NOT NULL COMMENT 'Profile Id',
  `order_id` int(10) unsigned NOT NULL COMMENT 'Order Id',
  PRIMARY KEY (`link_id`),
  UNIQUE KEY `UNQ_SALES_RECURRING_PROFILE_ORDER_PROFILE_ID_ORDER_ID` (`profile_id`,`order_id`),
  KEY `IDX_SALES_RECURRING_PROFILE_ORDER_ORDER_ID` (`order_id`),
  CONSTRAINT `FK_B8A7A5397B67455786E55461748C59F4` FOREIGN KEY (`profile_id`) REFERENCES `sales_recurring_profile` (`profile_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_7FF85741C66DCD37A4FBE3E3255A5A01` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Recurring Profile Order';

/*Data for the table `sales_recurring_profile_order` */



/*Table structure for table `sales_refunded_aggregated` */


CREATE TABLE `sales_refunded_aggregated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `refunded` decimal(12,4) DEFAULT NULL COMMENT 'Refunded',
  `online_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Online Refunded',
  `offline_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Offline Refunded',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_REFUNDED_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_REFUNDED_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_REFUNDED_AGGREGATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Refunded Aggregated';

/*Data for the table `sales_refunded_aggregated` */



/*Table structure for table `sales_refunded_aggregated_order` */


CREATE TABLE `sales_refunded_aggregated_order` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `refunded` decimal(12,4) DEFAULT NULL COMMENT 'Refunded',
  `online_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Online Refunded',
  `offline_refunded` decimal(12,4) DEFAULT NULL COMMENT 'Offline Refunded',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_REFUNDED_AGGREGATED_ORDER_PERIOD_STORE_ID_ORDER_STATUS` (`period`,`store_id`,`order_status`),
  KEY `IDX_SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_REFUNDED_AGGREGATED_ORDER_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Refunded Aggregated Order';

/*Data for the table `sales_refunded_aggregated_order` */



/*Table structure for table `sales_shipping_aggregated` */


CREATE TABLE `sales_shipping_aggregated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `shipping_description` varchar(255) DEFAULT NULL COMMENT 'Shipping Description',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `total_shipping` decimal(12,4) DEFAULT NULL COMMENT 'Total Shipping',
  `total_shipping_actual` decimal(12,4) DEFAULT NULL COMMENT 'Total Shipping Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_SALES_SHPP_AGGRED_PERIOD_STORE_ID_ORDER_STS_SHPP_DESCRIPTION` (`period`,`store_id`,`order_status`,`shipping_description`),
  KEY `IDX_SALES_SHIPPING_AGGREGATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_SHIPPING_AGGREGATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Shipping Aggregated';

/*Data for the table `sales_shipping_aggregated` */



/*Table structure for table `sales_shipping_aggregated_order` */


CREATE TABLE `sales_shipping_aggregated_order` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `shipping_description` varchar(255) DEFAULT NULL COMMENT 'Shipping Description',
  `orders_count` int(11) NOT NULL COMMENT 'Orders Count',
  `total_shipping` decimal(12,4) DEFAULT NULL COMMENT 'Total Shipping',
  `total_shipping_actual` decimal(12,4) DEFAULT NULL COMMENT 'Total Shipping Actual',
  PRIMARY KEY (`id`),
  UNIQUE KEY `C05FAE47282EEA68654D0924E946761F` (`period`,`store_id`,`order_status`,`shipping_description`),
  KEY `IDX_SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SALES_SHIPPING_AGGREGATED_ORDER_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Sales Shipping Aggregated Order';

/*Data for the table `sales_shipping_aggregated_order` */



/*Table structure for table `salesrule` */


CREATE TABLE `salesrule` (
  `rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rule Id',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `description` text COMMENT 'Description',
  `from_date` date DEFAULT NULL COMMENT 'From Date',
  `to_date` date DEFAULT NULL COMMENT 'To Date',
  `uses_per_customer` int(11) NOT NULL DEFAULT '0' COMMENT 'Uses Per Customer',
  `customer_group_ids` text COMMENT 'Customer Group Ids',
  `is_active` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Active',
  `conditions_serialized` mediumtext COMMENT 'Conditions Serialized',
  `actions_serialized` mediumtext COMMENT 'Actions Serialized',
  `stop_rules_processing` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Stop Rules Processing',
  `is_advanced` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Advanced',
  `product_ids` text COMMENT 'Product Ids',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `simple_action` varchar(32) 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(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Discount Step',
  `simple_free_shipping` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Simple Free Shipping',
  `apply_to_shipping` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Apply To Shipping',
  `times_used` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  `is_rss` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Rss',
  `website_ids` text COMMENT 'Website Ids',
  `coupon_type` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Coupon Type',
  PRIMARY KEY (`rule_id`),
  KEY `IDX_SALESRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE` (`is_active`,`sort_order`,`to_date`,`from_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule';

/*Data for the table `salesrule` */



/*Table structure for table `salesrule_coupon` */


CREATE TABLE `salesrule_coupon` (
  `coupon_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Coupon Id',
  `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
  `code` varchar(255) DEFAULT NULL COMMENT 'Code',
  `usage_limit` int(10) unsigned DEFAULT NULL COMMENT 'Usage Limit',
  `usage_per_customer` int(10) unsigned DEFAULT NULL COMMENT 'Usage Per Customer',
  `times_used` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  `expiration_date` timestamp NULL DEFAULT NULL COMMENT 'Expiration Date',
  `is_primary` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Primary',
  PRIMARY KEY (`coupon_id`),
  UNIQUE KEY `UNQ_SALESRULE_COUPON_CODE` (`code`),
  UNIQUE KEY `UNQ_SALESRULE_COUPON_RULE_ID_IS_PRIMARY` (`rule_id`,`is_primary`),
  KEY `IDX_SALESRULE_COUPON_RULE_ID` (`rule_id`),
  CONSTRAINT `FK_SALESRULE_COUPON_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule Coupon';

/*Data for the table `salesrule_coupon` */



/*Table structure for table `salesrule_coupon_usage` */


CREATE TABLE `salesrule_coupon_usage` (
  `coupon_id` int(10) unsigned NOT NULL COMMENT 'Coupon Id',
  `customer_id` int(10) unsigned NOT NULL COMMENT 'Customer Id',
  `times_used` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  PRIMARY KEY (`coupon_id`,`customer_id`),
  KEY `IDX_SALESRULE_COUPON_USAGE_COUPON_ID` (`coupon_id`),
  KEY `IDX_SALESRULE_COUPON_USAGE_CUSTOMER_ID` (`customer_id`),
  CONSTRAINT `FK_SALESRULE_COUPON_USAGE_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALESRULE_COUPON_USAGE_COUPON_ID_SALESRULE_COUPON_COUPON_ID` FOREIGN KEY (`coupon_id`) REFERENCES `salesrule_coupon` (`coupon_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule Coupon Usage';

/*Data for the table `salesrule_coupon_usage` */



/*Table structure for table `salesrule_customer` */


CREATE TABLE `salesrule_customer` (
  `rule_customer_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rule Customer Id',
  `rule_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Rule Id',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Id',
  `times_used` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Times Used',
  PRIMARY KEY (`rule_customer_id`),
  KEY `IDX_SALESRULE_CUSTOMER_RULE_ID_CUSTOMER_ID` (`rule_id`,`customer_id`),
  KEY `IDX_SALESRULE_CUSTOMER_CUSTOMER_ID_RULE_ID` (`customer_id`,`rule_id`),
  CONSTRAINT `FK_SALESRULE_CUSTOMER_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALESRULE_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule Customer';

/*Data for the table `salesrule_customer` */



/*Table structure for table `salesrule_label` */


CREATE TABLE `salesrule_label` (
  `label_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Label Id',
  `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `label` varchar(255) DEFAULT NULL COMMENT 'Label',
  PRIMARY KEY (`label_id`),
  UNIQUE KEY `UNQ_SALESRULE_LABEL_RULE_ID_STORE_ID` (`rule_id`,`store_id`),
  KEY `IDX_SALESRULE_LABEL_STORE_ID` (`store_id`),
  KEY `IDX_SALESRULE_LABEL_RULE_ID` (`rule_id`),
  CONSTRAINT `FK_SALESRULE_LABEL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_SALESRULE_LABEL_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule Label';

/*Data for the table `salesrule_label` */



/*Table structure for table `salesrule_product_attribute` */


CREATE TABLE `salesrule_product_attribute` (
  `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  PRIMARY KEY (`rule_id`,`website_id`,`customer_group_id`,`attribute_id`),
  KEY `IDX_SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID` (`website_id`),
  KEY `IDX_SALESRULE_PRODUCT_ATTRIBUTE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_SALESRULE_PRODUCT_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_SALESRULE_PRD_ATTR_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `FK_SALESRULE_PRD_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `FK_SALESRULE_PRD_ATTR_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `FK_SALESRULE_PRODUCT_ATTRIBUTE_RULE_ID_SALESRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `salesrule` (`rule_id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Salesrule Product Attribute';

/*Data for the table `salesrule_product_attribute` */



/*Table structure for table `sendfriend_log` */


CREATE TABLE `sendfriend_log` (
  `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Log ID',
  `ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer IP address',
  `time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Log time',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  PRIMARY KEY (`log_id`),
  KEY `IDX_SENDFRIEND_LOG_IP` (`ip`),
  KEY `IDX_SENDFRIEND_LOG_TIME` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Send to friend function log storage table';

/*Data for the table `sendfriend_log` */



/*Table structure for table `shipping_tablerate` */


CREATE TABLE `shipping_tablerate` (
  `pk` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `website_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `dest_country_id` varchar(4) NOT NULL DEFAULT '0' COMMENT 'Destination coutry ISO/2 or ISO/3 code',
  `dest_region_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Destination Region Id',
  `dest_zip` varchar(10) NOT NULL DEFAULT '*' COMMENT 'Destination Post Code (Zip)',
  `condition_name` varchar(20) 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 `D60821CDB2AFACEE1566CFC02D0D4CAA` (`website_id`,`dest_country_id`,`dest_region_id`,`dest_zip`,`condition_name`,`condition_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Shipping Tablerate';

/*Data for the table `shipping_tablerate` */



/*Table structure for table `sitemap` */


CREATE TABLE `sitemap` (
  `sitemap_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Sitemap Id',
  `sitemap_type` varchar(32) DEFAULT NULL COMMENT 'Sitemap Type',
  `sitemap_filename` varchar(32) DEFAULT NULL COMMENT 'Sitemap Filename',
  `sitemap_path` varchar(255) DEFAULT NULL COMMENT 'Sitemap Path',
  `sitemap_time` timestamp NULL DEFAULT NULL COMMENT 'Sitemap Time',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store id',
  PRIMARY KEY (`sitemap_id`),
  KEY `IDX_SITEMAP_STORE_ID` (`store_id`),
  CONSTRAINT `FK_SITEMAP_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Google Sitemap';

/*Data for the table `sitemap` */



/*Table structure for table `tag` */


CREATE TABLE `tag` (
  `tag_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tag Id',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `status` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Status',
  `first_customer_id` int(10) unsigned DEFAULT NULL COMMENT 'First Customer Id',
  `first_store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'First Store Id',
  PRIMARY KEY (`tag_id`) USING BTREE,
  KEY `FK_TAG_FIRST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` (`first_customer_id`),
  KEY `FK_TAG_FIRST_STORE_ID_CORE_STORE_STORE_ID` (`first_store_id`),
  CONSTRAINT `FK_TAG_FIRST_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`first_store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE NO ACTION,
  CONSTRAINT `FK_TAG_FIRST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`first_customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE SET NULL ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Tag';

/*Data for the table `tag` */


insert  into `tag`(`tag_id`,`name`,`status`,`first_customer_id`,`first_store_id`) values (1,'bed',1,1,1),(2,'trendy',1,1,1),(3,'wood',1,1,1),(4,'young',1,1,1),(5,'hip',1,1,1),(6,'Excellent',1,1,1),(7,'Furniture',1,1,1),(8,'modern',1,1,1),(9,'pocket',1,1,1),(10,'clean',1,1,1),(11,'apple',1,1,1),(12,'cool',1,1,1),(13,'universal',1,1,1),(14,'clogs',1,1,1),(15,'outdoor',1,1,1),(16,'green',1,1,1),(17,'bones',1,1,1),(18,'pda',1,1,1),(19,'slider',1,1,1),(20,'mobile',1,1,1),(21,'joe',1,1,1),(22,'laces',1,1,1),(23,'Camera',1,1,2),(24,'charger',1,1,2),(25,'Geil',1,1,2),(26,'crackberry',1,1,1),(27,'SEXY',1,1,1),(28,'tight',1,1,1),(29,'Test',1,1,1),(30,'red',1,1,1),(31,'sandals',1,1,1),(32,'design',1,1,1),(33,'ugly',1,1,1),(34,'rubber',1,1,1),(35,'light',1,1,1),(36,'monikas',1,1,1),(37,'t-shirt',1,1,1),(38,'test,',1,1,1),(39,'Sportsshoes',1,1,1),(40,'very',1,1,1),(41,'good',1,1,1),(42,'phone',1,1,1),(43,'favorite',1,1,1),(44,'shoe',1,1,1),(45,'shirt',1,1,1),(46,'monkeybutt',1,1,1),(47,'pizzamonkey',1,1,1),(48,'silver',1,1,1),(49,'black',1,1,1),(50,'sony',1,1,1),(51,'laptop',1,1,1),(52,'compact',1,1,1),(53,'small screen',1,1,1),(54,'tee-shirt',1,1,1),(55,'computer',1,1,1),(56,'shoes',1,1,1),(57,'sandale',1,1,1),(58,'tina',1,1,1),(59,'brown',1,1,1),(60,'lova',1,1,1),(61,'Tag',1,1,1),(62,'toes',-1,1,1),(63,'mniam',1,1,1),(64,'couch',1,1,1),(65,'chair',1,1,1),(66,'sandals,',1,1,1),(67,'blue,',1,1,1),(68,'shoes,',1,1,1),(69,'small',1,1,1),(70,'nice',1,1,1),(71,'badassness',1,1,1),(72,'cellotastic',1,1,1),(73,'macbook',1,1,1),(74,'mac',1,1,1),(75,'thongs',1,1,1),(76,'bla',1,1,3),(77,'notebook',1,1,2),(78,'phonex',1,1,1),(79,'süper',1,1,1),(80,'testing',1,1,1),(81,'awesome',1,1,1),(82,'holeys',1,1,1),(83,'Innovate',1,1,1),(84,'buenisimo',1,1,1),(85,'laptopik',1,1,1),(86,'rouge',1,1,1),(87,'modern,',1,1,1),(88,'moderne',1,1,1),(89,'blue',1,1,1),(90,'sandally',1,1,1),(91,'zoom',1,1,1),(92,'amazing',1,1,1),(93,'acer',1,1,1),(94,'portable',1,1,1),(95,'nippley',1,1,1),(96,'headless',1,1,1),(97,'prettyboy',1,1,1),(98,'grey',1,1,1),(99,'pouffe',1,1,1),(100,'teste',1,1,1),(101,'photography',1,1,1),(102,'handy',1,1,2),(103,'strange',1,1,2),(104,'skeleton',1,1,2),(105,'terry\'s',1,1,1),(106,'green,',1,1,1),(107,'sexy,',1,1,1),(108,'hi',1,1,1),(109,'Hohoho',1,1,2),(110,'Image',1,1,1),(111,'canape',1,1,1),(112,'chic',1,1,1),(113,'dresser',1,1,1),(114,'lens',1,1,1),(115,'schoen',1,1,1),(116,'golf',1,1,1),(117,'philip',1,1,1),(118,'coconut',1,1,1),(119,'mytag',1,1,1),(120,'mesas',1,1,1),(121,'hideous',1,1,1),(122,'mystuff',1,1,1),(123,'user',1,1,1),(124,'shittt',1,1,1),(125,'sex',1,1,1),(126,'sucks',1,1,1),(127,'whynot',1,1,3),(128,'camera-photo',1,1,3),(129,'wow',1,1,1),(130,'kzyhu',1,1,1),(131,'badminded',1,1,2),(132,'noerd',1,1,2),(133,'square',1,1,1),(134,'beach',1,1,1),(135,'Core Duo',1,1,1),(136,'spray',1,1,1),(137,'paint',1,1,1),(138,'tempos',1,1,1),(139,'teacher',1,1,1),(140,'ATT',1,1,1),(141,'BlackBerry',1,1,1),(142,'gadget',1,1,1),(143,'pas',1,1,3),(144,'mal',1,1,3),(145,'SMUKKE',1,1,1),(146,'kurti',1,1,1),(147,'larum',1,1,1),(148,'try',1,0,0),(149,'WAAAAAOOO',1,1,1),(150,'portatil',1,1,1),(151,'CRAPOTO',1,1,3),(152,'Kamera,',1,1,2),(153,'Camera,',1,1,2),(154,'Olympus',1,1,2),(155,'Nine',1,1,1),(156,'West',1,1,1),(157,'Women\'s',1,1,1),(158,'Lucero',1,1,1),(159,'Pump',1,1,1),(160,'Web',1,1,1),(161,'browser',1,1,1),(162,'content,',1,1,1),(163,'messaging',1,1,1),(164,'sessions,',1,1,1),(165,'and',-1,1,1),(166,'attachments.',1,1,1),(167,'Anashria',1,1,1),(168,'Womens',1,1,1),(169,'Premier',1,1,1),(170,'Leather',1,1,1),(171,'Sandal',1,1,1),(172,'arbeit',-1,1,2),(173,'crap',1,1,1),(174,'Walkman',1,1,1),(175,'gift',1,1,1),(176,'for',-1,1,1),(177,'her',1,1,1),(178,'Hupe',1,1,1),(179,'sleek',-1,1,1),(180,'samsung',1,1,1),(181,'footrest',1,1,1),(182,'shit',1,1,1),(183,'jogging',1,1,1),(184,'cool t-shirt',1,1,1),(185,'must get',1,1,1),(186,'bright',1,1,2),(187,'cellphone',1,1,1),(188,'comfort',1,1,3),(189,'ferrari',1,1,1),(190,'shiny',1,1,1),(191,'toll',1,1,1),(192,'warm',1,1,1),(193,'SOFA',1,1,1),(194,'fast',1,1,1),(195,'emo',1,1,1),(196,'smart',1,1,1),(197,'Canon',1,1,3),(198,'appletoys',1,1,1);


/*Table structure for table `tag_properties` */


CREATE TABLE `tag_properties` (
  `tag_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Tag Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `base_popularity` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Base Popularity',
  PRIMARY KEY (`tag_id`,`store_id`),
  KEY `IDX_TAG_PROPERTIES_STORE_ID` (`store_id`),
  CONSTRAINT `FK_TAG_PROPERTIES_TAG_ID_TAG_TAG_ID` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`tag_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAG_PROPERTIES_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tag Properties';

/*Data for the table `tag_properties` */



/*Table structure for table `tag_relation` */


CREATE TABLE `tag_relation` (
  `tag_relation_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Tag Relation Id',
  `tag_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Tag Id',
  `customer_id` int(10) unsigned DEFAULT NULL COMMENT 'Customer Id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Store Id',
  `active` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Active',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  PRIMARY KEY (`tag_relation_id`) USING BTREE,
  UNIQUE KEY `UNQ_TAG_RELATION_TAG_ID_CUSTOMER_ID_PRODUCT_ID_STORE_ID` (`tag_id`,`customer_id`,`product_id`,`store_id`),
  KEY `IDX_TAG_RELATION_PRODUCT_ID` (`product_id`),
  KEY `IDX_TAG_RELATION_TAG_ID` (`tag_id`),
  KEY `IDX_TAG_RELATION_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_TAG_RELATION_STORE_ID` (`store_id`),
  CONSTRAINT `FK_TAG_RELATION_TAG_ID_TAG_TAG_ID` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`tag_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAG_RELATION_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAG_RELATION_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAG_RELATION_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=370 DEFAULT CHARSET=utf8 COMMENT='Tag Relation';

/*Data for the table `tag_relation` */


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


/*Table structure for table `tag_summary` */


CREATE TABLE `tag_summary` (
  `tag_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Tag Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `customers` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customers',
  `products` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Products',
  `uses` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Uses',
  `historical_uses` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Historical Uses',
  `popularity` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Popularity',
  `base_popularity` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Base Popularity',
  PRIMARY KEY (`tag_id`,`store_id`),
  KEY `IDX_TAG_SUMMARY_STORE_ID` (`store_id`),
  KEY `IDX_TAG_SUMMARY_TAG_ID` (`tag_id`),
  CONSTRAINT `FK_TAG_SUMMARY_TAG_ID_TAG_TAG_ID` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`tag_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAG_SUMMARY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tag Summary';

/*Data for the table `tag_summary` */


insert  into `tag_summary`(`tag_id`,`store_id`,`customers`,`products`,`uses`,`historical_uses`,`popularity`,`base_popularity`) values (1,0,1,1,0,0,1,0),(1,1,1,1,0,0,1,0),(2,0,1,3,0,0,3,0),(2,1,1,3,0,0,3,0),(3,0,1,2,0,0,2,0),(3,1,1,2,0,0,2,0),(4,0,1,4,0,0,4,0),(4,1,1,4,0,0,4,0),(5,0,1,4,0,0,4,0),(5,1,1,4,0,0,4,0),(6,0,1,1,0,0,1,0),(7,0,1,2,0,0,2,0),(7,1,1,2,0,0,2,0),(8,0,1,2,0,0,2,0),(8,1,1,2,0,0,2,0),(9,0,1,1,0,0,1,0),(9,1,1,1,0,0,1,0),(10,0,1,1,0,0,1,0),(10,1,1,1,0,0,1,0),(11,0,1,2,0,0,3,0),(11,1,1,2,0,0,2,0),(11,2,1,1,0,0,1,0),(12,0,1,7,0,0,7,0),(12,1,1,6,0,0,6,0),(12,2,1,1,0,0,1,0),(13,0,1,1,0,0,2,0),(13,1,1,1,0,0,1,0),(13,2,1,1,0,0,1,0),(14,0,1,2,0,0,2,0),(14,1,1,2,0,0,2,0),(15,0,1,1,0,0,1,0),(15,1,1,1,0,0,1,0),(16,0,1,4,0,0,5,0),(16,1,1,4,0,0,4,0),(16,2,1,1,0,0,1,0),(17,0,1,5,0,0,5,0),(17,1,1,4,0,0,4,0),(18,0,1,1,0,0,1,0),(18,1,1,1,0,0,1,0),(19,0,1,1,0,0,1,0),(19,1,1,1,0,0,1,0),(20,0,1,3,0,0,3,0),(20,1,1,3,0,0,3,0),(21,0,1,1,0,0,1,0),(21,1,1,1,0,0,1,0),(22,0,1,1,0,0,1,0),(22,1,1,1,0,0,1,0),(23,0,1,7,0,0,7,0),(23,1,1,5,0,0,5,0),(23,2,1,1,0,0,1,0),(24,0,1,1,0,0,1,0),(24,2,1,1,0,0,1,0),(25,0,1,1,0,0,1,0),(25,2,1,1,0,0,1,0),(26,0,1,1,0,0,1,0),(26,1,1,1,0,0,1,0),(27,0,1,11,0,0,11,0),(27,1,1,9,0,0,9,0),(28,0,1,4,0,0,4,0),(28,1,1,4,0,0,4,0),(29,0,1,7,0,0,8,0),(29,1,1,6,0,0,6,0),(29,2,1,1,0,0,1,0),(29,3,1,1,0,0,1,0),(30,0,1,6,0,0,7,0),(30,1,1,5,0,0,5,0),(30,2,1,1,0,0,1,0),(31,0,1,1,0,0,1,0),(31,1,1,1,0,0,1,0),(32,0,1,2,0,0,2,0),(32,1,1,1,0,0,1,0),(32,3,1,1,0,0,1,0),(33,0,1,1,0,0,1,0),(33,1,1,1,0,0,1,0),(34,0,1,1,0,0,1,0),(34,1,1,1,0,0,1,0),(35,0,1,3,0,0,3,0),(35,1,1,2,0,0,2,0),(36,0,1,1,0,0,1,0),(36,1,1,1,0,0,1,0),(37,0,1,3,0,0,3,0),(37,1,1,2,0,0,2,0),(38,0,1,1,0,0,1,0),(38,1,1,1,0,0,1,0),(39,0,1,1,0,0,1,0),(39,1,1,1,0,0,1,0),(40,0,1,1,0,0,1,0),(40,1,1,1,0,0,1,0),(41,0,1,4,0,0,4,0),(41,1,1,4,0,0,4,0),(42,0,1,4,0,0,4,0),(42,1,1,4,0,0,4,0),(43,0,1,2,0,0,2,0),(43,1,1,2,0,0,2,0),(44,0,1,2,0,0,2,0),(44,1,1,1,0,0,1,0),(45,0,1,2,0,0,2,0),(45,2,1,1,0,0,1,0),(46,0,1,1,0,0,1,0),(46,1,1,1,0,0,1,0),(47,0,1,1,0,0,1,0),(47,1,1,1,0,0,1,0),(48,0,1,2,0,0,2,0),(48,1,1,2,0,0,2,0),(49,0,1,1,0,0,1,0),(49,1,1,1,0,0,1,0),(50,0,1,1,0,0,1,0),(50,1,1,1,0,0,1,0),(51,0,1,4,0,0,4,0),(51,1,1,3,0,0,3,0),(51,2,1,1,0,0,1,0),(52,0,1,2,0,0,2,0),(52,1,1,2,0,0,2,0),(53,0,1,1,0,0,1,0),(53,1,1,1,0,0,1,0),(54,0,1,1,0,0,1,0),(55,0,1,3,0,0,3,0),(55,1,1,2,0,0,2,0),(55,2,1,1,0,0,1,0),(56,0,1,2,0,0,3,0),(56,1,1,1,0,0,1,0),(57,0,1,1,0,0,1,0),(57,1,1,1,0,0,1,0),(58,0,1,1,0,0,1,0),(58,1,1,1,0,0,1,0),(59,0,1,2,0,0,2,0),(59,1,1,1,0,0,1,0),(59,2,1,1,0,0,1,0),(60,0,1,1,0,0,1,0),(60,1,1,1,0,0,1,0),(61,0,1,5,0,0,5,0),(61,1,1,3,0,0,3,0),(61,2,1,1,0,0,1,0),(61,3,1,1,0,0,1,0),(62,0,1,1,0,0,1,0),(62,1,1,1,0,0,1,0),(63,0,1,1,0,0,1,0),(64,0,1,2,0,0,2,0),(64,1,1,2,0,0,2,0),(65,0,1,1,0,0,1,0),(65,1,1,1,0,0,1,0),(66,0,1,1,0,0,1,0),(66,1,1,1,0,0,1,0),(67,0,1,1,0,0,1,0),(67,1,1,1,0,0,1,0),(68,0,1,1,0,0,1,0),(68,1,1,1,0,0,1,0),(69,0,1,2,0,0,2,0),(69,1,1,2,0,0,2,0),(70,0,1,5,0,0,5,0),(70,1,1,3,0,0,3,0),(70,2,1,1,0,0,1,0),(71,0,1,1,0,0,1,0),(71,1,1,1,0,0,1,0),(72,0,1,1,0,0,1,0),(72,1,1,1,0,0,1,0),(73,0,1,1,0,0,1,0),(73,1,1,1,0,0,1,0),(74,0,1,1,0,0,1,0),(74,1,1,1,0,0,1,0),(75,0,1,1,0,0,1,0),(75,1,1,1,0,0,1,0),(76,0,1,2,0,0,2,0),(76,1,1,1,0,0,1,0),(76,3,1,1,0,0,1,0),(77,0,1,3,0,0,4,0),(77,1,1,3,0,0,3,0),(77,2,1,1,0,0,1,0),(78,0,1,1,0,0,1,0),(78,1,1,1,0,0,1,0),(79,0,1,2,0,0,2,0),(79,3,1,1,0,0,1,0),(80,0,1,2,0,0,2,0),(80,1,1,2,0,0,2,0),(81,0,1,2,0,0,2,0),(81,1,1,2,0,0,2,0),(82,0,1,1,0,0,1,0),(82,1,1,1,0,0,1,0),(83,0,1,1,0,0,1,0),(83,1,1,1,0,0,1,0),(84,0,1,1,0,0,1,0),(84,1,1,1,0,0,1,0),(85,0,1,1,0,0,1,0),(85,1,1,1,0,0,1,0),(86,0,1,2,0,0,2,0),(86,1,1,1,0,0,1,0),(86,3,1,1,0,0,1,0),(87,0,1,1,0,0,1,0),(87,1,1,1,0,0,1,0),(88,0,1,1,0,0,1,0),(88,1,1,1,0,0,1,0),(89,0,1,2,0,0,2,0),(89,1,1,2,0,0,2,0),(90,0,1,1,0,0,1,0),(90,1,1,1,0,0,1,0),(91,0,1,1,0,0,1,0),(91,1,1,1,0,0,1,0),(92,0,1,1,0,0,1,0),(92,1,1,1,0,0,1,0),(93,0,1,2,0,0,2,0),(93,1,1,2,0,0,2,0),(94,0,1,1,0,0,1,0),(94,1,1,1,0,0,1,0),(95,0,1,1,0,0,1,0),(96,0,1,1,0,0,1,0),(97,0,1,1,0,0,1,0),(98,0,1,1,0,0,1,0),(98,1,1,1,0,0,1,0),(99,0,1,1,0,0,1,0),(99,1,1,1,0,0,1,0),(100,0,1,2,0,0,2,0),(100,1,1,2,0,0,2,0),(101,0,1,1,0,0,1,0),(101,1,1,1,0,0,1,0),(102,0,1,2,0,0,2,0),(102,1,1,1,0,0,1,0),(102,2,1,1,0,0,1,0),(103,0,1,1,0,0,1,0),(104,0,1,1,0,0,1,0),(105,0,1,1,0,0,1,0),(105,1,1,1,0,0,1,0),(106,0,1,1,0,0,1,0),(106,1,1,1,0,0,1,0),(107,0,1,1,0,0,1,0),(107,1,1,1,0,0,1,0),(108,0,1,1,0,0,1,0),(108,1,1,1,0,0,1,0),(109,0,1,5,0,0,5,0),(109,1,1,4,0,0,4,0),(109,2,1,1,0,0,1,0),(110,0,1,1,0,0,1,0),(111,0,1,1,0,0,1,0),(111,1,1,1,0,0,1,0),(112,0,1,1,0,0,1,0),(112,1,1,1,0,0,1,0),(113,0,1,1,0,0,1,0),(113,1,1,1,0,0,1,0),(114,0,1,1,0,0,1,0),(114,1,1,1,0,0,1,0),(115,0,1,1,0,0,1,0),(116,0,1,1,0,0,1,0),(116,1,1,1,0,0,1,0),(117,0,1,1,0,0,1,0),(117,1,1,1,0,0,1,0),(118,0,1,1,0,0,1,0),(118,1,1,1,0,0,1,0),(119,0,1,1,0,0,1,0),(119,1,1,1,0,0,1,0),(120,0,1,1,0,0,1,0),(120,1,1,1,0,0,1,0),(121,0,1,1,0,0,1,0),(121,1,1,1,0,0,1,0),(122,0,1,1,0,0,1,0),(122,1,1,1,0,0,1,0),(123,0,1,1,0,0,1,0),(123,1,1,1,0,0,1,0),(124,0,1,1,0,0,1,0),(124,1,1,1,0,0,1,0),(125,0,1,2,0,0,2,0),(125,1,1,2,0,0,2,0),(126,0,1,1,0,0,1,0),(126,1,1,1,0,0,1,0),(127,0,1,1,0,0,1,0),(128,0,1,1,0,0,1,0),(128,3,1,1,0,0,1,0),(129,0,1,2,0,0,2,0),(129,1,1,2,0,0,2,0),(130,0,1,1,0,0,1,0),(130,1,1,1,0,0,1,0),(131,0,1,1,0,0,1,0),(132,0,1,1,0,0,1,0),(132,2,1,1,0,0,1,0),(133,0,1,1,0,0,1,0),(133,1,1,1,0,0,1,0),(134,0,1,1,0,0,1,0),(134,1,1,1,0,0,1,0),(135,0,1,1,0,0,1,0),(135,1,1,1,0,0,1,0),(136,0,1,1,0,0,1,0),(136,1,1,1,0,0,1,0),(137,0,1,1,0,0,1,0),(137,1,1,1,0,0,1,0),(138,0,1,1,0,0,1,0),(138,1,1,1,0,0,1,0),(139,0,1,1,0,0,1,0),(139,1,1,1,0,0,1,0),(140,0,1,1,0,0,1,0),(140,1,1,1,0,0,1,0),(141,0,1,1,0,0,1,0),(141,1,1,1,0,0,1,0),(142,0,1,1,0,0,1,0),(142,1,1,1,0,0,1,0),(143,0,1,1,0,0,1,0),(143,3,1,1,0,0,1,0),(144,0,1,1,0,0,1,0),(144,3,1,1,0,0,1,0),(145,0,1,1,0,0,1,0),(145,1,1,1,0,0,1,0),(146,0,1,1,0,0,1,0),(146,1,1,1,0,0,1,0),(147,0,1,1,0,0,1,0),(147,1,1,1,0,0,1,0),(149,0,1,1,0,0,1,0),(149,1,1,1,0,0,1,0),(150,0,1,1,0,0,1,0),(150,1,1,1,0,0,1,0),(151,0,1,1,0,0,1,0),(151,3,1,1,0,0,1,0),(152,0,1,1,0,0,1,0),(152,2,1,1,0,0,1,0),(153,0,1,1,0,0,2,0),(153,1,1,1,0,0,1,0),(153,2,1,1,0,0,1,0),(154,0,1,1,0,0,1,0),(154,2,1,1,0,0,1,0),(155,0,1,1,0,0,1,0),(155,1,1,1,0,0,1,0),(156,0,1,1,0,0,1,0),(156,1,1,1,0,0,1,0),(157,0,1,1,0,0,1,0),(157,1,1,1,0,0,1,0),(158,0,1,1,0,0,1,0),(158,1,1,1,0,0,1,0),(159,0,1,1,0,0,1,0),(159,1,1,1,0,0,1,0),(160,0,1,1,0,0,1,0),(160,1,1,1,0,0,1,0),(161,0,1,1,0,0,1,0),(161,1,1,1,0,0,1,0),(162,0,1,1,0,0,1,0),(162,1,1,1,0,0,1,0),(163,0,1,1,0,0,1,0),(163,1,1,1,0,0,1,0),(164,0,1,1,0,0,1,0),(164,1,1,1,0,0,1,0),(165,0,1,1,0,0,1,0),(165,1,1,1,0,0,1,0),(166,0,1,1,0,0,1,0),(166,1,1,1,0,0,1,0),(167,0,1,1,0,0,1,0),(167,1,1,1,0,0,1,0),(168,0,1,1,0,0,1,0),(168,1,1,1,0,0,1,0),(169,0,1,1,0,0,1,0),(169,1,1,1,0,0,1,0),(170,0,1,1,0,0,1,0),(170,1,1,1,0,0,1,0),(171,0,1,1,0,0,1,0),(171,1,1,1,0,0,1,0),(172,0,1,1,0,0,1,0),(172,2,1,1,0,0,1,0),(173,0,1,4,0,0,4,0),(173,1,1,4,0,0,4,0),(174,0,1,1,0,0,1,0),(174,1,1,1,0,0,1,0),(175,0,1,1,0,0,1,0),(176,0,1,1,0,0,1,0),(177,0,1,1,0,0,1,0),(178,0,1,1,0,0,1,0),(178,1,1,1,0,0,1,0),(179,0,1,1,0,0,1,0),(179,1,1,1,0,0,1,0),(180,0,1,1,0,0,1,0),(180,1,1,1,0,0,1,0),(181,0,1,1,0,0,1,0),(181,1,1,1,0,0,1,0),(182,0,1,1,0,0,1,0),(182,1,1,1,0,0,1,0),(183,0,1,1,0,0,1,0),(183,1,1,1,0,0,1,0),(184,0,1,4,0,0,4,0),(184,1,1,4,0,0,4,0),(185,0,1,1,0,0,1,0),(185,1,1,1,0,0,1,0),(186,0,1,1,0,0,1,0),(186,2,1,1,0,0,1,0),(187,0,1,1,0,0,1,0),(187,1,1,1,0,0,1,0),(188,0,1,1,0,0,1,0),(188,3,1,1,0,0,1,0),(189,0,1,1,0,0,1,0),(189,1,1,1,0,0,1,0),(190,0,1,1,0,0,1,0),(190,1,1,1,0,0,1,0),(191,0,1,1,0,0,1,0),(191,1,1,1,0,0,1,0),(192,0,1,1,0,0,1,0),(192,1,1,1,0,0,1,0),(193,0,1,1,0,0,1,0),(193,1,1,1,0,0,1,0),(194,0,1,1,0,0,1,0),(194,1,1,1,0,0,1,0),(195,0,1,2,0,0,2,0),(195,1,1,1,0,0,1,0),(196,0,1,1,0,0,1,0),(196,1,1,1,0,0,1,0),(197,0,1,1,0,0,2,0),(197,1,1,1,0,0,1,0),(197,3,1,1,0,0,1,0),(198,0,1,1,0,0,1,0),(198,1,1,1,0,0,1,0);


/*Table structure for table `tax_calculation` */


CREATE TABLE `tax_calculation` (
  `tax_calculation_rate_id` int(11) NOT NULL COMMENT 'Tax Calculation Rate Id',
  `tax_calculation_rule_id` int(11) NOT NULL COMMENT 'Tax Calculation Rule Id',
  `customer_tax_class_id` smallint(6) NOT NULL COMMENT 'Customer Tax Class Id',
  `product_tax_class_id` smallint(6) NOT NULL COMMENT 'Product Tax Class Id',
  `tax_calculation_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Id',
  PRIMARY KEY (`tax_calculation_id`),
  KEY `IDX_TAX_CALCULATION_TAX_CALCULATION_RULE_ID` (`tax_calculation_rule_id`),
  KEY `IDX_TAX_CALCULATION_TAX_CALCULATION_RATE_ID` (`tax_calculation_rate_id`),
  KEY `IDX_TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID` (`customer_tax_class_id`),
  KEY `IDX_TAX_CALCULATION_PRODUCT_TAX_CLASS_ID` (`product_tax_class_id`),
  KEY `IDX_TAX_CALC_TAX_CALC_RATE_ID_CSTR_TAX_CLASS_ID_PRD_TAX_CLASS_ID` (`tax_calculation_rate_id`,`customer_tax_class_id`,`product_tax_class_id`),
  CONSTRAINT `FK_TAX_CALC_TAX_CALC_RULE_ID_TAX_CALC_RULE_TAX_CALC_RULE_ID` FOREIGN KEY (`tax_calculation_rule_id`) REFERENCES `tax_calculation_rule` (`tax_calculation_rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAX_CALCULATION_CUSTOMER_TAX_CLASS_ID_TAX_CLASS_CLASS_ID` FOREIGN KEY (`customer_tax_class_id`) REFERENCES `tax_class` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAX_CALCULATION_PRODUCT_TAX_CLASS_ID_TAX_CLASS_CLASS_ID` FOREIGN KEY (`product_tax_class_id`) REFERENCES `tax_class` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAX_CALC_TAX_CALC_RATE_ID_TAX_CALC_RATE_TAX_CALC_RATE_ID` FOREIGN KEY (`tax_calculation_rate_id`) REFERENCES `tax_calculation_rate` (`tax_calculation_rate_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Tax Calculation';

/*Data for the table `tax_calculation` */


insert  into `tax_calculation`(`tax_calculation_rate_id`,`tax_calculation_rule_id`,`customer_tax_class_id`,`product_tax_class_id`,`tax_calculation_id`) values (1,2,3,1,1),(2,2,3,1,2),(1,1,3,2,3),(2,1,3,2,4);


/*Table structure for table `tax_calculation_rate` */


CREATE TABLE `tax_calculation_rate` (
  `tax_calculation_rate_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rate Id',
  `tax_country_id` varchar(2) NOT NULL COMMENT 'Tax Country Id',
  `tax_region_id` int(11) NOT NULL COMMENT 'Tax Region Id',
  `tax_postcode` varchar(21) DEFAULT NULL COMMENT 'Tax Postcode',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `rate` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Rate',
  `zip_is_range` smallint(6) DEFAULT NULL COMMENT 'Zip Is Range',
  `zip_from` int(10) unsigned DEFAULT NULL COMMENT 'Zip From',
  `zip_to` int(10) unsigned DEFAULT NULL COMMENT 'Zip To',
  PRIMARY KEY (`tax_calculation_rate_id`),
  KEY `IDX_TAX_CALC_RATE_TAX_COUNTRY_ID_TAX_REGION_ID_TAX_POSTCODE` (`tax_country_id`,`tax_region_id`,`tax_postcode`),
  KEY `IDX_TAX_CALCULATION_RATE_CODE` (`code`),
  KEY `CA799F1E2CB843495F601E56C84A626D` (`tax_calculation_rate_id`,`tax_country_id`,`tax_region_id`,`zip_is_range`,`tax_postcode`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Tax Calculation Rate';

/*Data for the table `tax_calculation_rate` */


insert  into `tax_calculation_rate`(`tax_calculation_rate_id`,`tax_country_id`,`tax_region_id`,`tax_postcode`,`code`,`rate`,`zip_is_range`,`zip_from`,`zip_to`) 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);


/*Table structure for table `tax_calculation_rate_title` */


CREATE TABLE `tax_calculation_rate_title` (
  `tax_calculation_rate_title_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rate Title Id',
  `tax_calculation_rate_id` int(11) NOT NULL COMMENT 'Tax Calculation Rate Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `value` varchar(255) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`tax_calculation_rate_title_id`),
  KEY `IDX_TAX_CALCULATION_RATE_TITLE_TAX_CALCULATION_RATE_ID_STORE_ID` (`tax_calculation_rate_id`,`store_id`),
  KEY `IDX_TAX_CALCULATION_RATE_TITLE_TAX_CALCULATION_RATE_ID` (`tax_calculation_rate_id`),
  KEY `IDX_TAX_CALCULATION_RATE_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_37FB965F786AD5897BB3AE90470C42AB` FOREIGN KEY (`tax_calculation_rate_id`) REFERENCES `tax_calculation_rate` (`tax_calculation_rate_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_TAX_CALCULATION_RATE_TITLE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tax Calculation Rate Title';

/*Data for the table `tax_calculation_rate_title` */



/*Table structure for table `tax_calculation_rule` */


CREATE TABLE `tax_calculation_rule` (
  `tax_calculation_rule_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Tax Calculation Rule Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `priority` int(11) NOT NULL COMMENT 'Priority',
  `position` int(11) NOT NULL COMMENT 'Position',
  PRIMARY KEY (`tax_calculation_rule_id`),
  KEY `IDX_TAX_CALC_RULE_PRIORITY_POSITION_TAX_CALC_RULE_ID` (`priority`,`position`,`tax_calculation_rule_id`),
  KEY `IDX_TAX_CALCULATION_RULE_CODE` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Tax Calculation Rule';

/*Data for the table `tax_calculation_rule` */


insert  into `tax_calculation_rule`(`tax_calculation_rule_id`,`code`,`priority`,`position`) values (1,'Retail Customer-Taxable Goods-Rate 1',1,1),(2,'Retail Customer-default-Rate 1',1,1);


/*Table structure for table `tax_class` */


CREATE TABLE `tax_class` (
  `class_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT 'Class Id',
  `class_name` varchar(255) NOT NULL COMMENT 'Class Name',
  `class_type` varchar(8) NOT NULL DEFAULT 'CUSTOMER' COMMENT 'Class Type',
  PRIMARY KEY (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Tax Class';

/*Data for the table `tax_class` */


insert  into `tax_class`(`class_id`,`class_name`,`class_type`) values (1,'default','PRODUCT'),(2,'Taxable Goods','PRODUCT'),(3,'Retail Customer','CUSTOMER'),(4,'Shipping','PRODUCT');


/*Table structure for table `tax_order_aggregated_created` */


CREATE TABLE `tax_order_aggregated_created` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float DEFAULT NULL COMMENT 'Percent',
  `orders_count` int(10) 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 `FCA5E2C02689EB2641B30580D7AACF12` (`period`,`store_id`,`code`,`percent`,`order_status`),
  KEY `IDX_TAX_ORDER_AGGREGATED_CREATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_TAX_ORDER_AGGREGATED_CREATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tax Order Aggregation';

/*Data for the table `tax_order_aggregated_created` */



/*Table structure for table `tax_order_aggregated_updated` */


CREATE TABLE `tax_order_aggregated_updated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date DEFAULT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float DEFAULT NULL COMMENT 'Percent',
  `orders_count` int(10) 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 `DB0AF14011199AA6CD31D5078B90AA8D` (`period`,`store_id`,`code`,`percent`,`order_status`),
  KEY `IDX_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tax Order Aggregated Updated';

/*Data for the table `tax_order_aggregated_updated` */



/*Table structure for table `weee_discount` */


CREATE TABLE `weee_discount` (
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  KEY `IDX_WEEE_DISCOUNT_WEBSITE_ID` (`website_id`),
  KEY `IDX_WEEE_DISCOUNT_ENTITY_ID` (`entity_id`),
  KEY `IDX_WEEE_DISCOUNT_CUSTOMER_GROUP_ID` (`customer_group_id`),
  CONSTRAINT `FK_WEEE_DISCOUNT_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WEEE_DISCOUNT_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WEEE_DISCOUNT_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Weee Discount';

/*Data for the table `weee_discount` */


insert  into `weee_discount`(`entity_id`,`website_id`,`customer_group_id`,`value`) values (16,1,0,'100.0000'),(17,1,0,'100.0000'),(18,1,0,'100.0000'),(19,1,0,'100.0000'),(20,1,0,'100.0000'),(25,1,0,'100.0000'),(26,1,0,'100.0000'),(27,1,0,'100.0000'),(28,1,0,'100.0000'),(29,1,0,'100.0000'),(30,1,0,'100.0000'),(31,1,0,'100.0000'),(32,1,0,'100.0000'),(33,1,0,'100.0000'),(34,1,0,'100.0000'),(35,1,0,'100.0000'),(36,1,0,'100.0000'),(37,1,0,'100.0000'),(38,1,0,'100.0000'),(39,1,0,'100.0000'),(41,1,0,'100.0000'),(42,1,0,'100.0000'),(44,1,0,'100.0000'),(45,1,0,'100.0000'),(46,1,0,'100.0000'),(47,1,0,'100.0000'),(48,1,0,'100.0000'),(49,1,0,'100.0000'),(51,1,0,'100.0000'),(52,1,0,'100.0000'),(53,1,0,'100.0000'),(54,1,0,'100.0000'),(74,1,0,'100.0000'),(75,1,0,'100.0000'),(79,1,0,'100.0000'),(80,1,0,'100.0000'),(81,1,0,'100.0000'),(82,1,0,'100.0000'),(83,1,0,'100.0000'),(84,1,0,'100.0000'),(85,1,0,'100.0000'),(86,1,0,'100.0000'),(87,1,0,'100.0000'),(88,1,0,'100.0000'),(89,1,0,'100.0000'),(90,1,0,'100.0000'),(91,1,0,'100.0000'),(92,1,0,'100.0000'),(93,1,0,'100.0000'),(94,1,0,'100.0000'),(95,1,0,'100.0000'),(96,1,0,'100.0000'),(97,1,0,'100.0000'),(98,1,0,'100.0000'),(99,1,0,'100.0000'),(100,1,0,'100.0000'),(101,1,0,'100.0000'),(102,1,0,'100.0000'),(103,1,0,'100.0000'),(104,1,0,'100.0000'),(105,1,0,'100.0000'),(106,1,0,'100.0000'),(107,1,0,'100.0000'),(108,1,0,'100.0000'),(109,1,0,'100.0000'),(110,1,0,'100.0000'),(111,1,0,'100.0000'),(112,1,0,'100.0000'),(113,1,0,'100.0000'),(114,1,0,'100.0000'),(115,1,0,'100.0000'),(117,1,0,'100.0000'),(118,1,0,'100.0000'),(119,1,0,'100.0000'),(120,1,0,'100.0000'),(121,1,0,'100.0000'),(122,1,0,'100.0000'),(123,1,0,'100.0000'),(124,1,0,'100.0000'),(125,1,0,'100.0000'),(126,1,0,'100.0000'),(127,1,0,'100.0000'),(128,1,0,'100.0000'),(129,1,0,'100.0000'),(130,1,0,'100.0000'),(131,1,0,'100.0000'),(132,1,0,'100.0000'),(133,1,0,'100.0000'),(134,1,0,'100.0000'),(135,1,0,'100.0000'),(137,1,0,'100.0000'),(138,1,0,'100.0000'),(139,1,0,'100.0000'),(142,1,0,'100.0000'),(144,1,0,'100.0000'),(146,1,0,'100.0000'),(158,1,0,'100.0000'),(163,1,0,'100.0000'),(164,1,0,'100.0000'),(165,1,0,'100.0000'),(16,1,1,'100.0000'),(17,1,1,'100.0000'),(18,1,1,'100.0000'),(19,1,1,'100.0000'),(20,1,1,'100.0000'),(25,1,1,'100.0000'),(26,1,1,'100.0000'),(27,1,1,'100.0000'),(28,1,1,'100.0000'),(29,1,1,'100.0000'),(30,1,1,'100.0000'),(31,1,1,'100.0000'),(32,1,1,'100.0000'),(33,1,1,'100.0000'),(34,1,1,'100.0000'),(35,1,1,'100.0000'),(36,1,1,'100.0000'),(37,1,1,'100.0000'),(38,1,1,'100.0000'),(39,1,1,'100.0000'),(41,1,1,'100.0000'),(42,1,1,'100.0000'),(44,1,1,'100.0000'),(45,1,1,'100.0000'),(46,1,1,'100.0000'),(47,1,1,'100.0000'),(48,1,1,'100.0000'),(49,1,1,'100.0000'),(51,1,1,'100.0000'),(52,1,1,'100.0000'),(53,1,1,'100.0000'),(54,1,1,'100.0000'),(74,1,1,'100.0000'),(75,1,1,'100.0000'),(79,1,1,'100.0000'),(80,1,1,'100.0000'),(81,1,1,'100.0000'),(82,1,1,'100.0000'),(83,1,1,'100.0000'),(84,1,1,'100.0000'),(85,1,1,'100.0000'),(86,1,1,'100.0000'),(87,1,1,'100.0000'),(88,1,1,'100.0000'),(89,1,1,'100.0000'),(90,1,1,'100.0000'),(91,1,1,'100.0000'),(92,1,1,'100.0000'),(93,1,1,'100.0000'),(94,1,1,'100.0000'),(95,1,1,'100.0000'),(96,1,1,'100.0000'),(97,1,1,'100.0000'),(98,1,1,'100.0000'),(99,1,1,'100.0000'),(100,1,1,'100.0000'),(101,1,1,'100.0000'),(102,1,1,'100.0000'),(103,1,1,'100.0000'),(104,1,1,'100.0000'),(105,1,1,'100.0000'),(106,1,1,'100.0000'),(107,1,1,'100.0000'),(108,1,1,'100.0000'),(109,1,1,'100.0000'),(110,1,1,'100.0000'),(111,1,1,'100.0000'),(112,1,1,'100.0000'),(113,1,1,'100.0000'),(114,1,1,'100.0000'),(115,1,1,'100.0000'),(117,1,1,'100.0000'),(118,1,1,'100.0000'),(119,1,1,'100.0000'),(120,1,1,'100.0000'),(121,1,1,'100.0000'),(122,1,1,'100.0000'),(123,1,1,'100.0000'),(124,1,1,'100.0000'),(125,1,1,'100.0000'),(126,1,1,'100.0000'),(127,1,1,'100.0000'),(128,1,1,'100.0000'),(129,1,1,'100.0000'),(130,1,1,'100.0000'),(131,1,1,'100.0000'),(132,1,1,'100.0000'),(133,1,1,'100.0000'),(134,1,1,'100.0000'),(135,1,1,'100.0000'),(137,1,1,'100.0000'),(138,1,1,'100.0000'),(139,1,1,'100.0000'),(142,1,1,'100.0000'),(144,1,1,'100.0000'),(146,1,1,'100.0000'),(158,1,1,'100.0000'),(163,1,1,'100.0000'),(164,1,1,'100.0000'),(165,1,1,'100.0000'),(16,1,2,'100.0000'),(17,1,2,'100.0000'),(18,1,2,'100.0000'),(19,1,2,'100.0000'),(20,1,2,'100.0000'),(25,1,2,'100.0000'),(26,1,2,'100.0000'),(27,1,2,'100.0000'),(28,1,2,'100.0000'),(29,1,2,'100.0000'),(30,1,2,'100.0000'),(31,1,2,'100.0000'),(32,1,2,'100.0000'),(33,1,2,'100.0000'),(34,1,2,'100.0000'),(35,1,2,'100.0000'),(36,1,2,'100.0000'),(37,1,2,'100.0000'),(38,1,2,'100.0000'),(39,1,2,'100.0000'),(41,1,2,'100.0000'),(42,1,2,'100.0000'),(44,1,2,'100.0000'),(45,1,2,'100.0000'),(46,1,2,'100.0000'),(47,1,2,'100.0000'),(48,1,2,'100.0000'),(49,1,2,'100.0000'),(51,1,2,'100.0000'),(52,1,2,'100.0000'),(53,1,2,'100.0000'),(54,1,2,'100.0000'),(74,1,2,'100.0000'),(75,1,2,'100.0000'),(79,1,2,'100.0000'),(80,1,2,'100.0000'),(81,1,2,'100.0000'),(82,1,2,'100.0000'),(83,1,2,'100.0000'),(84,1,2,'100.0000'),(85,1,2,'100.0000'),(86,1,2,'100.0000'),(87,1,2,'100.0000'),(88,1,2,'100.0000'),(89,1,2,'100.0000'),(90,1,2,'100.0000'),(91,1,2,'100.0000'),(92,1,2,'100.0000'),(93,1,2,'100.0000'),(94,1,2,'100.0000'),(95,1,2,'100.0000'),(96,1,2,'100.0000'),(97,1,2,'100.0000'),(98,1,2,'100.0000'),(99,1,2,'100.0000'),(100,1,2,'100.0000'),(101,1,2,'100.0000'),(102,1,2,'100.0000'),(103,1,2,'100.0000'),(104,1,2,'100.0000'),(105,1,2,'100.0000'),(106,1,2,'100.0000'),(107,1,2,'100.0000'),(108,1,2,'100.0000'),(109,1,2,'100.0000'),(110,1,2,'100.0000'),(111,1,2,'100.0000'),(112,1,2,'100.0000'),(113,1,2,'100.0000'),(114,1,2,'100.0000'),(115,1,2,'100.0000'),(117,1,2,'100.0000'),(118,1,2,'100.0000'),(119,1,2,'100.0000'),(120,1,2,'100.0000'),(121,1,2,'100.0000'),(122,1,2,'100.0000'),(123,1,2,'100.0000'),(124,1,2,'100.0000'),(125,1,2,'100.0000'),(126,1,2,'100.0000'),(127,1,2,'100.0000'),(128,1,2,'100.0000'),(129,1,2,'100.0000'),(130,1,2,'100.0000'),(131,1,2,'100.0000'),(132,1,2,'100.0000'),(133,1,2,'100.0000'),(134,1,2,'100.0000'),(135,1,2,'100.0000'),(137,1,2,'100.0000'),(138,1,2,'100.0000'),(139,1,2,'100.0000'),(142,1,2,'100.0000'),(144,1,2,'100.0000'),(146,1,2,'100.0000'),(158,1,2,'100.0000'),(163,1,2,'100.0000'),(164,1,2,'100.0000'),(165,1,2,'100.0000'),(29,1,3,'100.0000'),(31,1,3,'100.0000'),(32,1,3,'100.0000'),(35,1,3,'100.0000'),(36,1,3,'100.0000'),(37,1,3,'100.0000'),(38,1,3,'100.0000'),(39,1,3,'100.0000'),(45,1,3,'100.0000'),(49,1,3,'100.0000'),(74,1,3,'100.0000'),(75,1,3,'100.0000'),(79,1,3,'100.0000'),(80,1,3,'100.0000'),(81,1,3,'100.0000'),(82,1,3,'100.0000'),(83,1,3,'100.0000'),(84,1,3,'100.0000'),(85,1,3,'100.0000'),(86,1,3,'100.0000'),(87,1,3,'100.0000'),(88,1,3,'100.0000'),(89,1,3,'100.0000'),(90,1,3,'100.0000'),(91,1,3,'100.0000'),(92,1,3,'100.0000'),(103,1,3,'100.0000'),(104,1,3,'100.0000'),(105,1,3,'100.0000'),(106,1,3,'100.0000'),(107,1,3,'100.0000'),(108,1,3,'100.0000'),(109,1,3,'100.0000'),(110,1,3,'100.0000'),(111,1,3,'100.0000'),(117,1,3,'100.0000'),(118,1,3,'100.0000'),(119,1,3,'100.0000'),(120,1,3,'100.0000'),(121,1,3,'100.0000'),(122,1,3,'100.0000'),(123,1,3,'100.0000'),(124,1,3,'100.0000'),(125,1,3,'100.0000'),(126,1,3,'100.0000'),(127,1,3,'100.0000'),(128,1,3,'100.0000'),(129,1,3,'100.0000'),(130,1,3,'100.0000'),(131,1,3,'100.0000'),(132,1,3,'100.0000'),(133,1,3,'100.0000'),(134,1,3,'100.0000'),(135,1,3,'100.0000'),(137,1,3,'100.0000'),(158,1,3,'100.0000'),(163,1,3,'100.0000'),(165,1,3,'100.0000'),(16,1,4,'100.0000'),(17,1,4,'100.0000'),(18,1,4,'100.0000'),(19,1,4,'100.0000'),(20,1,4,'100.0000'),(25,1,4,'100.0000'),(26,1,4,'100.0000'),(27,1,4,'100.0000'),(28,1,4,'100.0000'),(29,1,4,'100.0000'),(30,1,4,'100.0000'),(31,1,4,'100.0000'),(32,1,4,'100.0000'),(33,1,4,'100.0000'),(34,1,4,'100.0000'),(35,1,4,'100.0000'),(36,1,4,'100.0000'),(37,1,4,'100.0000'),(38,1,4,'100.0000'),(39,1,4,'100.0000'),(41,1,4,'100.0000'),(42,1,4,'100.0000'),(44,1,4,'100.0000'),(45,1,4,'100.0000'),(46,1,4,'100.0000'),(47,1,4,'100.0000'),(48,1,4,'100.0000'),(49,1,4,'100.0000'),(51,1,4,'100.0000'),(52,1,4,'100.0000'),(53,1,4,'100.0000'),(54,1,4,'100.0000'),(74,1,4,'100.0000'),(75,1,4,'100.0000'),(79,1,4,'100.0000'),(80,1,4,'100.0000'),(81,1,4,'100.0000'),(82,1,4,'100.0000'),(83,1,4,'100.0000'),(84,1,4,'100.0000'),(85,1,4,'100.0000'),(86,1,4,'100.0000'),(87,1,4,'100.0000'),(88,1,4,'100.0000'),(89,1,4,'100.0000'),(90,1,4,'100.0000'),(91,1,4,'100.0000'),(92,1,4,'100.0000'),(93,1,4,'100.0000'),(94,1,4,'100.0000'),(95,1,4,'100.0000'),(96,1,4,'100.0000'),(97,1,4,'100.0000'),(98,1,4,'100.0000'),(99,1,4,'100.0000'),(100,1,4,'100.0000'),(101,1,4,'100.0000'),(102,1,4,'100.0000'),(103,1,4,'100.0000'),(104,1,4,'100.0000'),(105,1,4,'100.0000'),(106,1,4,'100.0000'),(107,1,4,'100.0000'),(108,1,4,'100.0000'),(109,1,4,'100.0000'),(110,1,4,'100.0000'),(111,1,4,'100.0000'),(112,1,4,'100.0000'),(113,1,4,'100.0000'),(114,1,4,'100.0000'),(115,1,4,'100.0000'),(117,1,4,'100.0000'),(118,1,4,'100.0000'),(119,1,4,'100.0000'),(120,1,4,'100.0000'),(121,1,4,'100.0000'),(122,1,4,'100.0000'),(123,1,4,'100.0000'),(124,1,4,'100.0000'),(125,1,4,'100.0000'),(126,1,4,'100.0000'),(127,1,4,'100.0000'),(128,1,4,'100.0000'),(129,1,4,'100.0000'),(130,1,4,'100.0000'),(131,1,4,'100.0000'),(132,1,4,'100.0000'),(133,1,4,'100.0000'),(134,1,4,'100.0000'),(135,1,4,'100.0000'),(137,1,4,'100.0000'),(138,1,4,'100.0000'),(139,1,4,'100.0000'),(142,1,4,'100.0000'),(144,1,4,'100.0000'),(146,1,4,'100.0000'),(158,1,4,'100.0000'),(163,1,4,'100.0000'),(164,1,4,'100.0000'),(165,1,4,'100.0000');


/*Table structure for table `weee_tax` */


CREATE TABLE `weee_tax` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `country` varchar(2) DEFAULT NULL COMMENT 'Country',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  `state` varchar(255) NOT NULL DEFAULT '*' COMMENT 'State',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `entity_type_id` smallint(5) unsigned NOT NULL COMMENT 'Entity Type Id',
  PRIMARY KEY (`value_id`),
  KEY `IDX_WEEE_TAX_WEBSITE_ID` (`website_id`),
  KEY `IDX_WEEE_TAX_ENTITY_ID` (`entity_id`),
  KEY `IDX_WEEE_TAX_COUNTRY` (`country`),
  KEY `IDX_WEEE_TAX_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_WEEE_TAX_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WEEE_TAX_COUNTRY_DIRECTORY_COUNTRY_COUNTRY_ID` FOREIGN KEY (`country`) REFERENCES `directory_country` (`country_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WEEE_TAX_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WEEE_TAX_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Weee Tax';

/*Data for the table `weee_tax` */



/*Table structure for table `widget` */


CREATE TABLE `widget` (
  `widget_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Widget Id',
  `widget_code` varchar(255) DEFAULT NULL COMMENT 'Widget code for template directive',
  `widget_type` varchar(255) DEFAULT NULL COMMENT 'Widget Type',
  `parameters` text COMMENT 'Parameters',
  PRIMARY KEY (`widget_id`),
  KEY `IDX_WIDGET_WIDGET_CODE` (`widget_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Preconfigured Widgets';

/*Data for the table `widget` */



/*Table structure for table `widget_instance` */


CREATE TABLE `widget_instance` (
  `instance_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Instance Id',
  `instance_type` varchar(255) DEFAULT NULL COMMENT 'Instance Type',
  `package_theme` varchar(255) DEFAULT NULL COMMENT 'Package Theme',
  `title` varchar(255) DEFAULT NULL COMMENT 'Widget Title',
  `store_ids` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Store ids',
  `widget_parameters` text COMMENT 'Widget parameters',
  `sort_order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort order',
  PRIMARY KEY (`instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Instances of Widget for Package Theme';

/*Data for the table `widget_instance` */



/*Table structure for table `widget_instance_page` */


CREATE TABLE `widget_instance_page` (
  `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Page Id',
  `instance_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Id',
  `page_group` varchar(25) DEFAULT NULL COMMENT 'Block Group Type',
  `layout_handle` varchar(255) DEFAULT NULL COMMENT 'Layout Handle',
  `block_reference` varchar(255) DEFAULT NULL COMMENT 'Block Reference',
  `page_for` varchar(25) DEFAULT NULL COMMENT 'For instance entities',
  `entities` text COMMENT 'Catalog entities (comma separated)',
  `page_template` varchar(255) DEFAULT NULL COMMENT 'Path to widget template',
  PRIMARY KEY (`page_id`),
  KEY `IDX_WIDGET_INSTANCE_PAGE_INSTANCE_ID` (`instance_id`),
  CONSTRAINT `FK_WIDGET_INSTANCE_PAGE_INSTANCE_ID_WIDGET_INSTANCE_INSTANCE_ID` FOREIGN KEY (`instance_id`) REFERENCES `widget_instance` (`instance_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Instance of Widget on Page';

/*Data for the table `widget_instance_page` */



/*Table structure for table `widget_instance_page_layout` */


CREATE TABLE `widget_instance_page_layout` (
  `page_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Page Id',
  `layout_update_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Layout Update Id',
  UNIQUE KEY `UNQ_WIDGET_INSTANCE_PAGE_LAYOUT_LAYOUT_UPDATE_ID_PAGE_ID` (`layout_update_id`,`page_id`),
  KEY `IDX_WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID` (`page_id`),
  KEY `IDX_WIDGET_INSTANCE_PAGE_LAYOUT_LAYOUT_UPDATE_ID` (`layout_update_id`),
  CONSTRAINT `FK_WIDGET_INSTANCE_PAGE_LYT_PAGE_ID_WIDGET_INSTANCE_PAGE_PAGE_ID` FOREIGN KEY (`page_id`) REFERENCES `widget_instance_page` (`page_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_0A5D06DCEC6A6845F50E5FAAC5A1C96D` FOREIGN KEY (`layout_update_id`) REFERENCES `core_layout_update` (`layout_update_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Layout updates';

/*Data for the table `widget_instance_page_layout` */



/*Table structure for table `wishlist` */


CREATE TABLE `wishlist` (
  `wishlist_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Wishlist ID',
  `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer ID',
  `shared` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Sharing flag (0 or 1)',
  `sharing_code` varchar(32) DEFAULT NULL COMMENT 'Sharing encrypted code',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Last updated date',
  PRIMARY KEY (`wishlist_id`),
  UNIQUE KEY `UNQ_WISHLIST_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_WISHLIST_SHARED` (`shared`),
  CONSTRAINT `FK_WISHLIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Wishlist main Table';

/*Data for the table `wishlist` */



/*Table structure for table `wishlist_item` */


CREATE TABLE `wishlist_item` (
  `wishlist_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Wishlist item ID',
  `wishlist_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Wishlist ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store ID',
  `added_at` timestamp NULL DEFAULT NULL COMMENT 'Add date and time',
  `description` text COMMENT 'Short description of wish list item',
  `qty` decimal(12,4) NOT NULL COMMENT 'Qty',
  PRIMARY KEY (`wishlist_item_id`),
  KEY `IDX_WISHLIST_ITEM_WISHLIST_ID` (`wishlist_id`),
  KEY `IDX_WISHLIST_ITEM_PRODUCT_ID` (`product_id`),
  KEY `IDX_WISHLIST_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `FK_WISHLIST_ITEM_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_WISHLIST_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_WISHLIST_ITEM_WISHLIST_ID_WISHLIST_WISHLIST_ID` FOREIGN KEY (`wishlist_id`) REFERENCES `wishlist` (`wishlist_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Wishlist items';

/*Data for the table `wishlist_item` */



/*Table structure for table `wishlist_item_option` */


CREATE TABLE `wishlist_item_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Id',
  `wishlist_item_id` int(10) unsigned NOT NULL COMMENT 'Wishlist Item Id',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `value` text COMMENT 'Value',
  PRIMARY KEY (`option_id`),
  KEY `FK_A014B30B04B72DD0EAB3EECD779728D6` (`wishlist_item_id`),
  CONSTRAINT `FK_A014B30B04B72DD0EAB3EECD779728D6` FOREIGN KEY (`wishlist_item_id`) REFERENCES `wishlist_item` (`wishlist_item_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Wishlist Item Option Table';

/*Data for the table `wishlist_item_option` */



/*Table structure for table `xmlconnect_application` */


CREATE TABLE `xmlconnect_application` (
  `application_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Application Id',
  `name` varchar(255) NOT NULL COMMENT 'Application Name',
  `code` varchar(32) NOT NULL COMMENT 'Application Code',
  `type` varchar(32) NOT NULL COMMENT 'Device Type',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `active_from` date DEFAULT NULL COMMENT 'Active From',
  `active_to` date DEFAULT NULL COMMENT 'Active To',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Updated At',
  `status` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Status',
  `browsing_mode` smallint(5) unsigned DEFAULT '0' COMMENT 'Browsing Mode',
  PRIMARY KEY (`application_id`),
  UNIQUE KEY `UNQ_XMLCONNECT_APPLICATION_CODE` (`code`),
  KEY `FK_XMLCONNECT_APPLICATION_STORE_ID_CORE_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_XMLCONNECT_APPLICATION_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Xmlconnect Application';

/*Data for the table `xmlconnect_application` */



/*Table structure for table `xmlconnect_config_data` */


CREATE TABLE `xmlconnect_config_data` (
  `application_id` smallint(5) unsigned NOT NULL COMMENT 'Application Id',
  `category` varchar(60) NOT NULL DEFAULT 'default' COMMENT 'Category',
  `path` varchar(250) NOT NULL COMMENT 'Path',
  `value` text NOT NULL COMMENT 'Value',
  UNIQUE KEY `UNQ_XMLCONNECT_CONFIG_DATA_APPLICATION_ID_CATEGORY_PATH` (`application_id`,`category`,`path`),
  CONSTRAINT `FK_31EE36D814216200D7C0723145AC510E` FOREIGN KEY (`application_id`) REFERENCES `xmlconnect_application` (`application_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Xmlconnect Configuration Data';

/*Data for the table `xmlconnect_config_data` */



/*Table structure for table `xmlconnect_history` */


CREATE TABLE `xmlconnect_history` (
  `history_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'History Id',
  `application_id` smallint(5) unsigned NOT NULL COMMENT 'Application Id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `params` blob COMMENT 'Params',
  `title` varchar(200) NOT NULL COMMENT 'Title',
  `activation_key` varchar(255) NOT NULL COMMENT 'Activation Key',
  `name` varchar(255) NOT NULL COMMENT 'Application Name',
  `code` varchar(32) NOT NULL COMMENT 'Application Code',
  PRIMARY KEY (`history_id`),
  KEY `FK_8F08B9513373BC19F49EE3EF8340E270` (`application_id`),
  CONSTRAINT `FK_8F08B9513373BC19F49EE3EF8340E270` FOREIGN KEY (`application_id`) REFERENCES `xmlconnect_application` (`application_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Xmlconnect History';

/*Data for the table `xmlconnect_history` */



/*Table structure for table `xmlconnect_notification_template` */


CREATE TABLE `xmlconnect_notification_template` (
  `template_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Template Id',
  `name` varchar(255) NOT NULL COMMENT 'Template Name',
  `push_title` varchar(140) NOT NULL COMMENT 'Push Notification Title',
  `message_title` varchar(255) NOT NULL COMMENT 'Message Title',
  `content` text NOT NULL COMMENT 'Message Content',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `modified_at` timestamp NULL DEFAULT NULL COMMENT 'Modified At',
  `application_id` smallint(5) unsigned NOT NULL COMMENT 'Application Id',
  PRIMARY KEY (`template_id`),
  KEY `FK_F9927C7518A907CF5C350942FD296DC3` (`application_id`),
  CONSTRAINT `FK_F9927C7518A907CF5C350942FD296DC3` FOREIGN KEY (`application_id`) REFERENCES `xmlconnect_application` (`application_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Xmlconnect Notification Template';

/*Data for the table `xmlconnect_notification_template` */



/*Table structure for table `xmlconnect_queue` */


CREATE TABLE `xmlconnect_queue` (
  `queue_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Queue Id',
  `create_time` timestamp NULL DEFAULT NULL COMMENT 'Created At',
  `exec_time` timestamp NULL DEFAULT NULL COMMENT 'Scheduled Execution Time',
  `template_id` int(10) unsigned NOT NULL COMMENT 'Template Id',
  `push_title` varchar(140) NOT NULL COMMENT 'Push Notification Title',
  `message_title` varchar(255) DEFAULT '' COMMENT 'Message Title',
  `content` text COMMENT 'Message Content',
  `status` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Status',
  `type` varchar(12) NOT NULL COMMENT 'Type of Notification',
  PRIMARY KEY (`queue_id`),
  KEY `FK_2019AEC5FC55A516965583447CA26B14` (`template_id`),
  CONSTRAINT `FK_2019AEC5FC55A516965583447CA26B14` FOREIGN KEY (`template_id`) REFERENCES `xmlconnect_notification_template` (`template_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Xmlconnect Notification Queue';

/*Data for the table `xmlconnect_queue` */



