CREATE TABLE `aw_blog_cat` (
  `cat_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL DEFAULT '',
  `identifier` varchar(255) NOT NULL DEFAULT '',
  `sort_order` tinyint(6) NOT NULL,
  `meta_keywords` text NOT NULL,
  `meta_description` text NOT NULL,
  PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `aw_blog_cat` (`cat_id`, `title`, `identifier`, `sort_order`, `meta_keywords`, `meta_description`) VALUES
(1,	'News',	'news',	0,	'',	''),
(3,	'Events',	'events',	1,	'',	'');

CREATE TABLE `aw_blog_cat_store` (
  `cat_id` smallint(6) unsigned DEFAULT NULL,
  `store_id` smallint(6) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `aw_blog_cat_store` (`cat_id`, `store_id`) VALUES
(2,	1),
(1,	1),
(3,	1);

CREATE TABLE `aw_blog_comment` (
  `comment_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `post_id` smallint(11) NOT NULL DEFAULT '0',
  `comment` text NOT NULL,
  `status` smallint(6) NOT NULL DEFAULT '0',
  `created_time` datetime DEFAULT NULL,
  `user` varchar(255) NOT NULL DEFAULT '',
  `email` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE `aw_blog_post_cat` (
  `cat_id` smallint(6) unsigned DEFAULT NULL,
  `post_id` smallint(6) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `aw_blog_post_cat` (`cat_id`, `post_id`) VALUES
(1,	1),
(1,	2),
(1,	4),
(1,	5),
(1,	6),
(1,	3),
(1,	7),
(3,	9),
(3,	11),
(3,	10);

CREATE TABLE `aw_blog_store` (
  `post_id` smallint(6) unsigned DEFAULT NULL,
  `store_id` smallint(6) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `aw_blog_store` (`post_id`, `store_id`) VALUES
(5,	0),
(7,	0),
(9,	0),
(6,	0),
(11,	0),
(3,	0),
(2,	0),
(1,	0),
(4,	0),
(10,	0);

CREATE TABLE `aw_blog_tags` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tag` varchar(255) NOT NULL,
  `tag_count` int(11) NOT NULL DEFAULT '0',
  `store_id` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tag` (`tag`,`tag_count`,`store_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `aw_blog_tags` (`id`, `tag`, `tag_count`, `store_id`) VALUES
(1,	'',	8,	0);

CREATE TABLE `captcha_log` (
  `type` varchar(32) NOT NULL COMMENT 'Type',
  `value` varchar(32) NOT NULL COMMENT 'Value',
  `count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Count',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time',
  PRIMARY KEY (`type`,`value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Count Login Attempts';


CREATE TABLE `cataloginventory_stock` (
  `stock_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Stock Id',
  `stock_name` varchar(255) DEFAULT NULL COMMENT 'Stock Name',
  PRIMARY KEY (`stock_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cataloginventory Stock';

INSERT INTO `cataloginventory_stock` (`stock_id`, `stock_name`) VALUES
(1,	'Default');

CREATE TABLE `cataloginventory_stock_item` (
  `item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item Id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Id',
  `stock_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Stock Id',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `min_qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Min Qty',
  `use_config_min_qty` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Min Qty',
  `is_qty_decimal` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Qty Decimal',
  `backorders` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Backorders',
  `use_config_backorders` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Backorders',
  `min_sale_qty` decimal(12,4) NOT NULL DEFAULT '1.0000' COMMENT 'Min Sale Qty',
  `use_config_min_sale_qty` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Min Sale Qty',
  `max_sale_qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Max Sale Qty',
  `use_config_max_sale_qty` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Max Sale Qty',
  `is_in_stock` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is In Stock',
  `low_stock_date` timestamp NULL DEFAULT NULL COMMENT 'Low Stock Date',
  `notify_stock_qty` decimal(12,4) DEFAULT NULL COMMENT 'Notify Stock Qty',
  `use_config_notify_stock_qty` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Notify Stock Qty',
  `manage_stock` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Manage Stock',
  `use_config_manage_stock` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Manage Stock',
  `stock_status_changed_auto` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Stock Status Changed Automatically',
  `use_config_qty_increments` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Qty Increments',
  `qty_increments` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty Increments',
  `use_config_enable_qty_inc` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Use Config Enable Qty Increments',
  `enable_qty_increments` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Enable Qty Increments',
  `is_decimal_divided` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Divided into Multiple Boxes for Shipping',
  PRIMARY KEY (`item_id`),
  UNIQUE KEY `UNQ_CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID` (`product_id`,`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID` (`product_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_ITEM_STOCK_ID` (`stock_id`),
  CONSTRAINT `FK_CATINV_STOCK_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_CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `cataloginventory_stock` (`stock_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cataloginventory Stock Item';

INSERT INTO `cataloginventory_stock_item` (`item_id`, `product_id`, `stock_id`, `qty`, `min_qty`, `use_config_min_qty`, `is_qty_decimal`, `backorders`, `use_config_backorders`, `min_sale_qty`, `use_config_min_sale_qty`, `max_sale_qty`, `use_config_max_sale_qty`, `is_in_stock`, `low_stock_date`, `notify_stock_qty`, `use_config_notify_stock_qty`, `manage_stock`, `use_config_manage_stock`, `stock_status_changed_auto`, `use_config_qty_increments`, `qty_increments`, `use_config_enable_qty_inc`, `enable_qty_increments`, `is_decimal_divided`) VALUES
(1,	1,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(2,	2,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(3,	3,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(4,	4,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	1,	1,	0.0000,	1,	0,	0),
(5,	5,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(6,	6,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(7,	7,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(8,	8,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0),
(9,	9,	1,	100.0000,	0.0000,	1,	0,	0,	1,	1.0000,	1,	0.0000,	1,	1,	NULL,	NULL,	1,	0,	1,	0,	1,	0.0000,	1,	0,	0);

CREATE TABLE `cataloginventory_stock_status` (
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock Id',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status',
  PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CATINV_STOCK_STS_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_CATINV_STOCK_STS_STOCK_ID_CATINV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `cataloginventory_stock` (`stock_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATINV_STOCK_STS_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cataloginventory Stock Status';

INSERT INTO `cataloginventory_stock_status` (`product_id`, `website_id`, `stock_id`, `qty`, `stock_status`) VALUES
(1,	1,	1,	100.0000,	1),
(2,	1,	1,	100.0000,	1),
(3,	1,	1,	100.0000,	1),
(4,	1,	1,	100.0000,	1),
(5,	1,	1,	100.0000,	1),
(6,	1,	1,	100.0000,	1),
(7,	1,	1,	100.0000,	1),
(8,	1,	1,	100.0000,	1),
(9,	1,	1,	100.0000,	1);

CREATE TABLE `cataloginventory_stock_status_idx` (
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock Id',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status',
  PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID` (`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID` (`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cataloginventory Stock Status Indexer Idx';

INSERT INTO `cataloginventory_stock_status_idx` (`product_id`, `website_id`, `stock_id`, `qty`, `stock_status`) VALUES
(1,	1,	1,	100.0000,	1),
(2,	1,	1,	100.0000,	1),
(3,	1,	1,	100.0000,	1),
(4,	1,	1,	100.0000,	1),
(5,	1,	1,	100.0000,	1),
(6,	1,	1,	100.0000,	1),
(7,	1,	1,	100.0000,	1),
(8,	1,	1,	100.0000,	1),
(9,	1,	1,	100.0000,	1);

CREATE TABLE `cataloginventory_stock_status_tmp` (
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock Id',
  `qty` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Qty',
  `stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status',
  PRIMARY KEY (`product_id`,`website_id`,`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID` (`stock_id`),
  KEY `IDX_CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID` (`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Cataloginventory Stock Status Indexer Tmp';


CREATE TABLE `catalogrule` (
  `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',
  `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',
  `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',
  `sub_is_enable` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Rule Enable For Subitems',
  `sub_simple_action` varchar(32) DEFAULT NULL COMMENT 'Simple Action For Subitems',
  `sub_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount For Subitems',
  PRIMARY KEY (`rule_id`),
  KEY `IDX_CATALOGRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE` (`is_active`,`sort_order`,`to_date`,`from_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CatalogRule';


CREATE TABLE `catalogrule_affected_product` (
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CatalogRule Affected Product';


CREATE TABLE `catalogrule_customer_group` (
  `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  PRIMARY KEY (`rule_id`,`customer_group_id`),
  KEY `IDX_CATALOGRULE_CUSTOMER_GROUP_RULE_ID` (`rule_id`),
  KEY `IDX_CATALOGRULE_CUSTOMER_GROUP_CUSTOMER_GROUP_ID` (`customer_group_id`),
  CONSTRAINT `FK_CATALOGRULE_CUSTOMER_GROUP_RULE_ID_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `catalogrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATRULE_CSTR_GROUP_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Rules To Customer Groups Relations';


CREATE TABLE `catalogrule_group_website` (
  `rule_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Rule Id',
  `customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  PRIMARY KEY (`rule_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOGRULE_GROUP_WEBSITE_RULE_ID` (`rule_id`),
  KEY `IDX_CATALOGRULE_GROUP_WEBSITE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CATALOGRULE_GROUP_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `catalogrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATALOGRULE_GROUP_WEBSITE_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATRULE_GROUP_WS_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CatalogRule Group Website';


CREATE TABLE `catalogrule_product` (
  `rule_product_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rule Product Id',
  `rule_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Rule Id',
  `from_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'From Time',
  `to_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'To time',
  `customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Group Id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Id',
  `action_operator` varchar(10) DEFAULT 'to_fixed' COMMENT 'Action Operator',
  `action_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Action Amount',
  `action_stop` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Action Stop',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `sub_simple_action` varchar(32) DEFAULT NULL COMMENT 'Simple Action For Subitems',
  `sub_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount For Subitems',
  PRIMARY KEY (`rule_product_id`),
  UNIQUE KEY `EAA51B56FF092A0DCB795D1CEF812B7B` (`rule_id`,`from_time`,`to_time`,`website_id`,`customer_group_id`,`product_id`,`sort_order`),
  KEY `IDX_CATALOGRULE_PRODUCT_RULE_ID` (`rule_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_FROM_TIME` (`from_time`),
  KEY `IDX_CATALOGRULE_PRODUCT_TO_TIME` (`to_time`),
  KEY `IDX_CATALOGRULE_PRODUCT_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CATALOGRULE_PRODUCT_RULE_ID_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `catalogrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATALOGRULE_PRODUCT_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATRULE_PRD_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_CATRULE_PRD_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='CatalogRule Product';


CREATE TABLE `catalogrule_product_price` (
  `rule_product_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rule Product PriceId',
  `rule_date` date NOT NULL COMMENT 'Rule Date',
  `customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Group Id',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Id',
  `rule_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Rule Price',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `latest_start_date` date DEFAULT NULL COMMENT 'Latest StartDate',
  `earliest_end_date` date DEFAULT NULL COMMENT 'Earliest EndDate',
  PRIMARY KEY (`rule_product_price_id`),
  UNIQUE KEY `UNQ_CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID` (`rule_date`,`website_id`,`customer_group_id`,`product_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOGRULE_PRODUCT_PRICE_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CATALOGRULE_PRODUCT_PRICE_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATRULE_PRD_PRICE_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_CATRULE_PRD_PRICE_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='CatalogRule Product Price';


CREATE TABLE `catalogrule_website` (
  `rule_id` int(10) unsigned NOT NULL COMMENT 'Rule Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  PRIMARY KEY (`rule_id`,`website_id`),
  KEY `IDX_CATALOGRULE_WEBSITE_RULE_ID` (`rule_id`),
  KEY `IDX_CATALOGRULE_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CATALOGRULE_WEBSITE_RULE_ID_CATALOGRULE_RULE_ID` FOREIGN KEY (`rule_id`) REFERENCES `catalogrule` (`rule_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATALOGRULE_WEBSITE_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='Catalog Rules To Websites Relations';


CREATE TABLE `catalogsearch_fulltext` (
  `fulltext_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity ID',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `data_index` longtext COMMENT 'Data index',
  PRIMARY KEY (`fulltext_id`),
  UNIQUE KEY `UNQ_CATALOGSEARCH_FULLTEXT_PRODUCT_ID_STORE_ID` (`product_id`,`store_id`),
  FULLTEXT KEY `FTI_CATALOGSEARCH_FULLTEXT_DATA_INDEX` (`data_index`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Catalog search result table';

INSERT INTO `catalogsearch_fulltext` (`fulltext_id`, `product_id`, `store_id`, `data_index`) VALUES
(204,	9,	1,	'Kameel Ahmady|In the Name of Tradition|1'),
(203,	8,	1,	'Jeanie Kortum|Stones: A Novel|1'),
(202,	7,	1,	'Violet Barungi and Hilda Twongyeirwe|Taboo|1'),
(200,	5,	1,	'Maria Kiminta and Tobe Levin|Kiminta|1'),
(201,	6,	1,	'Frankie Hutton|Rose Lore|1'),
(199,	4,	1,	'Tobe Levin, editor|Waging Empathy|1'),
(198,	3,	1,	'Nick Hadikwa Mwaluko|WAAFRIKA 123. 1992. Kenya. Two womyn fall in love|1'),
(197,	2,	1,	'Hubert Prolongeau|Undoing FGM|1'),
(196,	1,	1,	'Khady, with Marie-Therese Cuny|Blood Stains. A Child of Africa Reclaims Her Human Rights|1');

CREATE TABLE `catalogsearch_query` (
  `query_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Query ID',
  `query_text` varchar(255) DEFAULT NULL COMMENT 'Query text',
  `num_results` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Num results',
  `popularity` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Popularity',
  `redirect` varchar(255) DEFAULT NULL COMMENT 'Redirect',
  `synonym_for` varchar(255) DEFAULT NULL COMMENT 'Synonym for',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `display_in_terms` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Display in terms',
  `is_active` smallint(6) DEFAULT '1' COMMENT 'Active status',
  `is_processed` smallint(6) DEFAULT '0' COMMENT 'Processed status',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Updated at',
  PRIMARY KEY (`query_id`),
  KEY `IDX_CATALOGSEARCH_QUERY_QUERY_TEXT_STORE_ID_POPULARITY` (`query_text`,`store_id`,`popularity`),
  KEY `IDX_CATALOGSEARCH_QUERY_STORE_ID` (`store_id`),
  KEY `IDX_CATALOGSEARCH_QUERY_SYNONYM_FOR` (`synonym_for`),
  CONSTRAINT `FK_CATALOGSEARCH_QUERY_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='Catalog search query table';


CREATE TABLE `catalogsearch_result` (
  `query_id` int(10) unsigned NOT NULL COMMENT 'Query ID',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product ID',
  `relevance` decimal(20,4) NOT NULL DEFAULT '0.0000' COMMENT 'Relevance',
  PRIMARY KEY (`query_id`,`product_id`),
  KEY `IDX_CATALOGSEARCH_RESULT_QUERY_ID` (`query_id`),
  KEY `IDX_CATALOGSEARCH_RESULT_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CATALOGSEARCH_RESULT_QUERY_ID_CATALOGSEARCH_QUERY_QUERY_ID` FOREIGN KEY (`query_id`) REFERENCES `catalogsearch_query` (`query_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATSRCH_RESULT_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='Catalog search result table';


CREATE TABLE `catalog_category_anc_categs_index_idx` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `path` varchar(255) DEFAULT NULL COMMENT 'Path',
  KEY `IDX_CATALOG_CATEGORY_ANC_CATEGS_INDEX_IDX_CATEGORY_ID` (`category_id`),
  KEY `IDX_CATALOG_CATEGORY_ANC_CATEGS_INDEX_IDX_PATH_CATEGORY_ID` (`path`,`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Anchor Indexer Index Table';


CREATE TABLE `catalog_category_anc_categs_index_tmp` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `path` varchar(255) DEFAULT NULL COMMENT 'Path',
  KEY `IDX_CATALOG_CATEGORY_ANC_CATEGS_INDEX_TMP_CATEGORY_ID` (`category_id`),
  KEY `IDX_CATALOG_CATEGORY_ANC_CATEGS_INDEX_TMP_PATH_CATEGORY_ID` (`path`,`category_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Category Anchor Indexer Temp Table';


CREATE TABLE `catalog_category_anc_products_index_idx` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(10) unsigned DEFAULT NULL COMMENT 'Position',
  KEY `IDX_CAT_CTGR_ANC_PRDS_IDX_IDX_CTGR_ID_PRD_ID_POSITION` (`category_id`,`product_id`,`position`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Anchor Product Indexer Index Table';


CREATE TABLE `catalog_category_anc_products_index_tmp` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(10) unsigned DEFAULT NULL COMMENT 'Position',
  KEY `IDX_CAT_CTGR_ANC_PRDS_IDX_TMP_CTGR_ID_PRD_ID_POSITION` (`category_id`,`product_id`,`position`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Category Anchor Product Indexer Temp Table';


CREATE TABLE `catalog_category_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 'Attriute Set ID',
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Parent Category ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time',
  `path` varchar(255) NOT NULL COMMENT 'Tree Path',
  `position` int(11) NOT NULL COMMENT 'Position',
  `level` int(11) NOT NULL DEFAULT '0' COMMENT 'Tree Level',
  `children_count` int(11) NOT NULL COMMENT 'Child Count',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_LEVEL` (`level`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_PATH_ENTITY_ID` (`path`,`entity_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Table';

INSERT INTO `catalog_category_entity` (`entity_id`, `entity_type_id`, `attribute_set_id`, `parent_id`, `created_at`, `updated_at`, `path`, `position`, `level`, `children_count`) VALUES
(1,	3,	0,	0,	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	'1',	0,	0,	2),
(2,	3,	3,	1,	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	'1/2',	1,	1,	1),
(3,	3,	3,	2,	'2017-09-07 12:43:18',	'2017-12-20 19:25:56',	'1/2/3',	1,	2,	0);

CREATE TABLE `catalog_category_entity_datetime` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` datetime DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_CTGR_ENTT_DTIME_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_DTIME_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Datetime Attribute Backend Table';

INSERT INTO `catalog_category_entity_datetime` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	3,	59,	0,	3,	NULL),
(2,	3,	60,	0,	3,	NULL);

CREATE TABLE `catalog_category_entity_decimal` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` decimal(12,4) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_CTGR_ENTT_DEC_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_DEC_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Decimal Attribute Backend Table';

INSERT INTO `catalog_category_entity_decimal` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	3,	70,	0,	3,	NULL);

CREATE TABLE `catalog_category_entity_int` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` int(11) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_CTGR_ENTT_INT_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_INT_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_CATEGORY_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_CAT_CTGR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_INT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Integer Attribute Backend Table';

INSERT INTO `catalog_category_entity_int` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	3,	67,	0,	1,	1),
(2,	3,	67,	1,	1,	1),
(3,	3,	42,	0,	2,	1),
(4,	3,	67,	0,	2,	1),
(5,	3,	42,	1,	2,	1),
(6,	3,	67,	1,	2,	1),
(7,	3,	42,	0,	3,	1),
(8,	3,	67,	0,	3,	1),
(9,	3,	50,	0,	3,	NULL),
(10,	3,	51,	0,	3,	0),
(11,	3,	68,	0,	3,	0),
(12,	3,	69,	0,	3,	0);

CREATE TABLE `catalog_category_entity_text` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` text COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_CTGR_ENTT_TEXT_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_CATEGORY_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_CAT_CTGR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_TEXT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Text Attribute Backend Table';

INSERT INTO `catalog_category_entity_text` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	3,	65,	0,	1,	NULL),
(2,	3,	65,	1,	1,	NULL),
(3,	3,	65,	0,	2,	NULL),
(4,	3,	65,	1,	2,	NULL),
(5,	3,	44,	0,	3,	NULL),
(6,	3,	47,	0,	3,	NULL),
(7,	3,	48,	0,	3,	NULL),
(8,	3,	62,	0,	3,	NULL),
(9,	3,	65,	0,	3,	NULL);

CREATE TABLE `catalog_category_entity_varchar` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_CTGR_ENTT_VCHR_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_ENTT_VCHR_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Varchar Attribute Backend Table';

INSERT INTO `catalog_category_entity_varchar` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	3,	41,	0,	1,	'Root Catalog'),
(2,	3,	41,	1,	1,	'Root Catalog'),
(3,	3,	43,	1,	1,	'root-catalog'),
(4,	3,	41,	0,	2,	'Default Category'),
(5,	3,	41,	1,	2,	'Default Category'),
(6,	3,	49,	1,	2,	'PRODUCTS'),
(7,	3,	43,	1,	2,	'default-category'),
(8,	3,	41,	0,	3,	'Books'),
(9,	3,	43,	0,	3,	'books'),
(10,	3,	46,	0,	3,	'The UnCUT/VOICES Press Collection'),
(11,	3,	49,	0,	3,	'PRODUCTS'),
(12,	3,	58,	0,	3,	NULL),
(13,	3,	61,	0,	3,	NULL),
(14,	3,	57,	1,	3,	'books'),
(15,	3,	57,	0,	3,	'books');

CREATE TABLE `catalog_category_flat_store_1` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'entity_id',
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'parent_id',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'created_at',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'updated_at',
  `path` varchar(255) NOT NULL DEFAULT '' COMMENT 'path',
  `position` int(11) NOT NULL COMMENT 'position',
  `level` int(11) NOT NULL DEFAULT '0' COMMENT 'level',
  `children_count` int(11) NOT NULL COMMENT 'children_count',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `all_children` text COMMENT 'All Children',
  `available_sort_by` text COMMENT 'Available Product Listing Sort By',
  `children` text COMMENT 'Children',
  `custom_apply_to_products` int(11) DEFAULT NULL COMMENT 'Apply To Products',
  `custom_design` varchar(255) DEFAULT NULL COMMENT 'Custom Design',
  `custom_design_from` datetime DEFAULT NULL COMMENT 'Active From',
  `custom_design_to` datetime DEFAULT NULL COMMENT 'Active To',
  `custom_layout_update` text COMMENT 'Custom Layout Update',
  `custom_use_parent_settings` int(11) DEFAULT NULL COMMENT 'Use Parent Category Settings',
  `default_sort_by` varchar(255) DEFAULT NULL COMMENT 'Default Product Listing Sort By',
  `description` text COMMENT 'Description',
  `display_mode` varchar(255) DEFAULT NULL COMMENT 'Display Mode',
  `filter_price_range` decimal(12,4) DEFAULT NULL COMMENT 'Layered Navigation Price Step',
  `image` varchar(255) DEFAULT NULL COMMENT 'Image',
  `include_in_menu` int(11) DEFAULT NULL COMMENT 'Include in Navigation Menu',
  `is_active` int(11) DEFAULT NULL COMMENT 'Is Active',
  `is_anchor` int(11) DEFAULT NULL COMMENT 'Is Anchor',
  `landing_page` int(11) DEFAULT NULL COMMENT 'CMS Block',
  `meta_description` text COMMENT 'Meta Description',
  `meta_keywords` text COMMENT 'Meta Keywords',
  `meta_title` varchar(255) DEFAULT NULL COMMENT 'Page Title',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `page_layout` varchar(255) DEFAULT NULL COMMENT 'Page Layout',
  `path_in_store` text COMMENT 'Path In Store',
  `url_key` varchar(255) DEFAULT NULL COMMENT 'URL Key',
  `url_path` varchar(255) DEFAULT NULL COMMENT 'Url Path',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_CATALOG_CATEGORY_FLAT_STORE_1_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_CATEGORY_FLAT_STORE_1_PATH` (`path`),
  KEY `IDX_CATALOG_CATEGORY_FLAT_STORE_1_LEVEL` (`level`),
  CONSTRAINT `FK_CATALOG_CATEGORY_FLAT_STORE_1_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_FLAT_STORE_1_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Flat (Store 1)';

INSERT INTO `catalog_category_flat_store_1` (`entity_id`, `parent_id`, `created_at`, `updated_at`, `path`, `position`, `level`, `children_count`, `store_id`, `all_children`, `available_sort_by`, `children`, `custom_apply_to_products`, `custom_design`, `custom_design_from`, `custom_design_to`, `custom_layout_update`, `custom_use_parent_settings`, `default_sort_by`, `description`, `display_mode`, `filter_price_range`, `image`, `include_in_menu`, `is_active`, `is_anchor`, `landing_page`, `meta_description`, `meta_keywords`, `meta_title`, `name`, `page_layout`, `path_in_store`, `url_key`, `url_path`) VALUES
(1,	0,	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	'1',	0,	0,	1,	1,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	1,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	'Root Catalog',	NULL,	NULL,	'root-catalog',	NULL),
(2,	1,	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	'1/2',	1,	1,	0,	1,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	'PRODUCTS',	NULL,	NULL,	1,	1,	NULL,	NULL,	NULL,	NULL,	NULL,	'Default Category',	NULL,	NULL,	'default-category',	NULL);

CREATE TABLE `catalog_category_product` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(11) NOT NULL DEFAULT '0' COMMENT 'Position',
  PRIMARY KEY (`category_id`,`product_id`),
  KEY `IDX_CATALOG_CATEGORY_PRODUCT_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CAT_CTGR_PRD_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`category_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_PRD_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='Catalog Product To Category Linkage Table';

INSERT INTO `catalog_category_product` (`category_id`, `product_id`, `position`) VALUES
(3,	1,	8),
(3,	2,	7),
(3,	3,	6),
(3,	4,	5),
(3,	5,	4),
(3,	6,	3),
(3,	7,	2),
(3,	8,	1),
(3,	9,	0);

CREATE TABLE `catalog_category_product_index` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(11) DEFAULT NULL COMMENT 'Position',
  `is_parent` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Parent',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility',
  PRIMARY KEY (`category_id`,`product_id`,`store_id`),
  KEY `IDX_CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`),
  KEY `15D3C269665C74C2219037D534F4B0DC` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`),
  CONSTRAINT `FK_CATALOG_CATEGORY_PRODUCT_INDEX_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_PRD_IDX_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`category_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_CTGR_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='Catalog Category Product Index';

INSERT INTO `catalog_category_product_index` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) VALUES
(2,	9,	20004,	0,	1,	4),
(2,	8,	20005,	0,	1,	4),
(2,	7,	20006,	0,	1,	4),
(2,	6,	20007,	0,	1,	4),
(2,	5,	20008,	0,	1,	4),
(2,	4,	20009,	0,	1,	4),
(2,	3,	20010,	0,	1,	4),
(2,	2,	20011,	0,	1,	4),
(2,	1,	20012,	0,	1,	4),
(3,	9,	0,	1,	1,	4),
(3,	8,	1,	1,	1,	4),
(3,	7,	2,	1,	1,	4),
(3,	6,	3,	1,	1,	4),
(3,	5,	4,	1,	1,	4),
(3,	4,	5,	1,	1,	4),
(3,	3,	6,	1,	1,	4),
(3,	2,	7,	1,	1,	4),
(3,	1,	8,	1,	1,	4);

CREATE TABLE `catalog_category_product_index_enbl_idx` (
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `visibility` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Visibility',
  KEY `IDX_CAT_CTGR_PRD_IDX_ENBL_IDX_PRD_ID_VISIBILITY` (`product_id`,`visibility`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Product Enabled Indexer Index Table';


CREATE TABLE `catalog_category_product_index_enbl_tmp` (
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `visibility` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Visibility',
  KEY `IDX_CAT_CTGR_PRD_IDX_ENBL_TMP_PRD_ID_VISIBILITY` (`product_id`,`visibility`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Category Product Enabled Indexer Temp Table';


CREATE TABLE `catalog_category_product_index_idx` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(11) NOT NULL DEFAULT '0' COMMENT 'Position',
  `is_parent` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Parent',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility',
  KEY `IDX_CAT_CTGR_PRD_IDX_IDX_PRD_ID_CTGR_ID_STORE_ID` (`product_id`,`category_id`,`store_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Category Product Indexer Index Table';


CREATE TABLE `catalog_category_product_index_tmp` (
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Category ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `position` int(11) NOT NULL DEFAULT '0' COMMENT 'Position',
  `is_parent` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Parent',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility',
  KEY `IDX_CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID` (`product_id`,`category_id`,`store_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Category Product Indexer Temp Table';


CREATE TABLE `catalog_compare_item` (
  `catalog_compare_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Compare Item ID',
  `visitor_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Visitor 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 DEFAULT NULL COMMENT 'Store ID',
  PRIMARY KEY (`catalog_compare_item_id`),
  KEY `IDX_CATALOG_COMPARE_ITEM_CUSTOMER_ID` (`customer_id`),
  KEY `IDX_CATALOG_COMPARE_ITEM_PRODUCT_ID` (`product_id`),
  KEY `IDX_CATALOG_COMPARE_ITEM_VISITOR_ID_PRODUCT_ID` (`visitor_id`,`product_id`),
  KEY `IDX_CATALOG_COMPARE_ITEM_CUSTOMER_ID_PRODUCT_ID` (`customer_id`,`product_id`),
  KEY `IDX_CATALOG_COMPARE_ITEM_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_COMPARE_ITEM_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CATALOG_COMPARE_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_CAT_CMP_ITEM_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='Catalog Compare Table';


CREATE TABLE `catalog_eav_attribute` (
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `frontend_input_renderer` varchar(255) DEFAULT NULL COMMENT 'Frontend Input Renderer',
  `is_global` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Global',
  `is_visible` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Visible',
  `is_searchable` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Searchable',
  `is_filterable` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Filterable',
  `is_comparable` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Comparable',
  `is_visible_on_front` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible On Front',
  `is_html_allowed_on_front` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is HTML Allowed On Front',
  `is_used_for_price_rules` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Used For Price Rules',
  `is_filterable_in_search` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Filterable In Search',
  `used_in_product_listing` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Used In Product Listing',
  `used_for_sort_by` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Used For Sorting',
  `is_configurable` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Configurable',
  `apply_to` varchar(255) DEFAULT NULL COMMENT 'Apply To',
  `is_visible_in_advanced_search` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Visible In Advanced Search',
  `position` int(11) NOT NULL DEFAULT '0' COMMENT 'Position',
  `is_wysiwyg_enabled` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is WYSIWYG Enabled',
  `is_used_for_promo_rules` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Used For Promo Rules',
  PRIMARY KEY (`attribute_id`),
  KEY `IDX_CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY` (`used_for_sort_by`),
  KEY `IDX_CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING` (`used_in_product_listing`),
  CONSTRAINT `FK_CATALOG_EAV_ATTRIBUTE_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='Catalog EAV Attribute Table';

INSERT INTO `catalog_eav_attribute` (`attribute_id`, `frontend_input_renderer`, `is_global`, `is_visible`, `is_searchable`, `is_filterable`, `is_comparable`, `is_visible_on_front`, `is_html_allowed_on_front`, `is_used_for_price_rules`, `is_filterable_in_search`, `used_in_product_listing`, `used_for_sort_by`, `is_configurable`, `apply_to`, `is_visible_in_advanced_search`, `position`, `is_wysiwyg_enabled`, `is_used_for_promo_rules`) VALUES
(41,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(42,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(43,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(44,	NULL,	0,	1,	0,	0,	0,	0,	1,	0,	0,	0,	0,	1,	NULL,	0,	0,	1,	0),
(45,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(46,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(47,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(48,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(49,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(50,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(51,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(52,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(53,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(54,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(55,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(56,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(57,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(58,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(59,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(60,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(61,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(62,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(63,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(64,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(65,	'adminhtml/catalog_category_helper_sortby_available',	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(66,	'adminhtml/catalog_category_helper_sortby_default',	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(67,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(68,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(69,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(70,	'adminhtml/catalog_category_helper_pricestep',	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(71,	NULL,	0,	1,	1,	0,	0,	0,	0,	0,	0,	1,	1,	1,	NULL,	0,	0,	0,	0),
(72,	NULL,	0,	1,	0,	0,	0,	0,	1,	0,	0,	1,	0,	1,	NULL,	0,	0,	1,	0),
(73,	NULL,	0,	1,	0,	0,	0,	0,	1,	0,	0,	1,	0,	1,	NULL,	0,	0,	1,	0),
(74,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(75,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	1,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(76,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(77,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(78,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(79,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'virtual,downloadable',	0,	0,	0,	0),
(80,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple,bundle',	0,	0,	0,	0),
(81,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple',	0,	0,	0,	0),
(82,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(83,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(84,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(85,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(86,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(87,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(88,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(89,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(90,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(91,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(92,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple',	0,	0,	0,	0),
(93,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(94,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(95,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(96,	NULL,	2,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	NULL,	0,	0,	0,	0),
(97,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(98,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(99,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(100,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'simple,virtual',	0,	0,	0,	0),
(101,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'simple,virtual',	0,	0,	0,	0),
(102,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(103,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(104,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(105,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(106,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(107,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(108,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(109,	NULL,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(110,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	NULL,	0,	0,	0,	0),
(111,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(112,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	NULL,	0,	0,	0,	0),
(113,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	NULL,	0,	0,	0,	0),
(114,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	NULL,	0,	0,	0,	0),
(115,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(116,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	NULL,	0,	0,	0,	0),
(117,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'simple,configurable,bundle,grouped',	0,	0,	0,	0),
(118,	'adminhtml/catalog_product_helper_form_msrp_enabled',	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,bundle,configurable,virtual,downloadable',	0,	0,	0,	0),
(119,	'adminhtml/catalog_product_helper_form_msrp_price',	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,bundle,configurable,virtual,downloadable',	0,	0,	0,	0),
(120,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	1,	'simple,bundle,configurable,virtual,downloadable',	0,	0,	0,	0),
(121,	NULL,	2,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	'simple,configurable,virtual,bundle,downloadable',	0,	0,	0,	0),
(122,	'giftmessage/adminhtml_product_helper_form_config',	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	NULL,	0,	0,	0,	0),
(123,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'bundle',	0,	0,	0,	0),
(124,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'bundle',	0,	0,	0,	0),
(125,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'bundle',	0,	0,	0,	0),
(126,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'bundle',	0,	0,	0,	0),
(127,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'bundle',	0,	0,	0,	0),
(128,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'downloadable',	0,	0,	0,	0),
(129,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'downloadable',	0,	0,	0,	0),
(130,	NULL,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	'downloadable',	0,	0,	0,	0),
(131,	NULL,	1,	0,	0,	0,	0,	0,	0,	0,	0,	1,	0,	0,	'downloadable',	0,	0,	0,	0),
(133,	NULL,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	NULL,	0,	0,	0,	0),
(134,	NULL,	1,	1,	1,	0,	0,	0,	0,	0,	0,	1,	0,	0,	NULL,	0,	0,	0,	0),
(135,	NULL,	1,	1,	0,	0,	0,	0,	1,	0,	0,	0,	0,	0,	NULL,	0,	0,	0,	0);

CREATE TABLE `catalog_product_bundle_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Id',
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent Id',
  `required` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Required',
  `position` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Position',
  `type` varchar(255) DEFAULT NULL COMMENT 'Type',
  PRIMARY KEY (`option_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_OPTION_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_CAT_PRD_BNDL_OPT_PARENT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Bundle Option';


CREATE TABLE `catalog_product_bundle_option_value` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `option_id` int(10) unsigned NOT NULL COMMENT 'Option Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_BUNDLE_OPTION_VALUE_OPTION_ID_STORE_ID` (`option_id`,`store_id`),
  CONSTRAINT `FK_CAT_PRD_BNDL_OPT_VAL_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_bundle_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Bundle Option Value';


CREATE TABLE `catalog_product_bundle_price_index` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `min_price` decimal(12,4) NOT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) NOT NULL COMMENT 'Max Price',
  PRIMARY KEY (`entity_id`,`website_id`,`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_CUSTOMER_GROUP_ID` (`customer_group_id`),
  CONSTRAINT `FK_CAT_PRD_BNDL_PRICE_IDX_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_CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_BNDL_PRICE_IDX_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Bundle Price Index';


CREATE TABLE `catalog_product_bundle_selection` (
  `selection_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Selection Id',
  `option_id` int(10) unsigned NOT NULL COMMENT 'Option Id',
  `parent_product_id` int(10) unsigned NOT NULL COMMENT 'Parent Product Id',
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product Id',
  `position` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Position',
  `is_default` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Default',
  `selection_price_type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Selection Price Type',
  `selection_price_value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Selection Price Value',
  `selection_qty` decimal(12,4) DEFAULT NULL COMMENT 'Selection Qty',
  `selection_can_change_qty` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Selection Can Change Qty',
  PRIMARY KEY (`selection_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_SELECTION_OPTION_ID` (`option_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_SELECTION_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CAT_PRD_BNDL_SELECTION_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_bundle_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_BNDL_SELECTION_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='Catalog Product Bundle Selection';


CREATE TABLE `catalog_product_bundle_selection_price` (
  `selection_id` int(10) unsigned NOT NULL COMMENT 'Selection Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `selection_price_type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Selection Price Type',
  `selection_price_value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Selection Price Value',
  PRIMARY KEY (`selection_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CAT_PRD_BNDL_SELECTION_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_DCF37523AA05D770A70AA4ED7C2616E4` FOREIGN KEY (`selection_id`) REFERENCES `catalog_product_bundle_selection` (`selection_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Bundle Selection Price';


CREATE TABLE `catalog_product_bundle_stock_index` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `stock_status` smallint(6) DEFAULT '0' COMMENT 'Stock Status',
  PRIMARY KEY (`entity_id`,`website_id`,`stock_id`,`option_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Bundle Stock Index';


CREATE TABLE `catalog_product_enabled_index` (
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `visibility` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Visibility',
  PRIMARY KEY (`product_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENABLED_INDEX_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_ENABLED_INDEX_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENABLED_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='Catalog Product Visibility Index Table';


CREATE TABLE `catalog_product_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',
  `type_id` varchar(32) NOT NULL DEFAULT 'simple' COMMENT 'Type ID',
  `sku` varchar(64) DEFAULT NULL COMMENT 'SKU',
  `has_options` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Has Options',
  `required_options` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Required Options',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'Update Time',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID` (`attribute_set_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_SKU` (`sku`),
  CONSTRAINT `FK_CAT_PRD_ENTT_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,
  CONSTRAINT `FK_CAT_PRD_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='Catalog Product Table';

INSERT INTO `catalog_product_entity` (`entity_id`, `entity_type_id`, `attribute_set_id`, `type_id`, `sku`, `has_options`, `required_options`, `created_at`, `updated_at`) VALUES
(1,	4,	4,	'simple',	'978-3-9813863-0-1',	0,	0,	'2017-08-30 13:58:27',	'2018-01-31 19:17:28'),
(2,	4,	4,	'simple',	'978-3-9813863-1-8',	0,	0,	'2017-08-30 14:04:41',	'2018-01-31 19:17:45'),
(3,	4,	4,	'simple',	'978-3-9813863-8-7',	0,	0,	'2017-08-30 14:07:05',	'2018-06-26 18:52:46'),
(4,	4,	4,	'simple',	'978-3-9813863-3-2',	0,	0,	'2017-08-30 14:09:58',	'2018-01-31 19:18:51'),
(5,	4,	4,	'simple',	'978-3-9813863-6-3',	0,	0,	'2017-12-19 19:38:33',	'2018-01-31 19:19:46'),
(6,	4,	4,	'simple',	'978-3-9813863-4-9',	0,	0,	'2017-12-19 20:19:58',	'2018-01-31 19:19:35'),
(7,	4,	4,	'simple',	'978-3-9813863-5-6',	0,	0,	'2017-12-20 14:16:18',	'2018-01-31 19:19:01'),
(8,	4,	4,	'simple',	'978-1-6315218-0-5',	0,	0,	'2017-12-20 15:09:41',	'2018-01-31 19:20:40'),
(9,	4,	4,	'simple',	'978-3-9813863-7-0',	0,	0,	'2017-12-20 19:22:02',	'2018-01-31 19:20:02');

CREATE TABLE `catalog_product_entity_datetime` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` datetime DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_ENTT_DTIME_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_DTIME_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Datetime Attribute Backend Table';

INSERT INTO `catalog_product_entity_datetime` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	4,	94,	0,	1,	NULL),
(2,	4,	93,	0,	1,	NULL),
(3,	4,	77,	0,	1,	NULL),
(4,	4,	78,	0,	1,	NULL),
(5,	4,	104,	0,	1,	NULL),
(6,	4,	105,	0,	1,	NULL),
(7,	4,	94,	0,	2,	NULL),
(8,	4,	93,	0,	2,	NULL),
(9,	4,	77,	0,	2,	NULL),
(10,	4,	78,	0,	2,	NULL),
(11,	4,	104,	0,	2,	NULL),
(12,	4,	105,	0,	2,	NULL),
(13,	4,	94,	0,	3,	NULL),
(14,	4,	93,	0,	3,	NULL),
(15,	4,	77,	0,	3,	NULL),
(16,	4,	78,	0,	3,	NULL),
(17,	4,	104,	0,	3,	NULL),
(18,	4,	105,	0,	3,	NULL),
(19,	4,	94,	0,	4,	NULL),
(20,	4,	93,	0,	4,	NULL),
(21,	4,	77,	0,	4,	NULL),
(22,	4,	78,	0,	4,	NULL),
(23,	4,	104,	0,	4,	NULL),
(24,	4,	105,	0,	4,	NULL),
(25,	4,	94,	0,	5,	NULL),
(26,	4,	93,	0,	5,	NULL),
(27,	4,	77,	0,	5,	NULL),
(28,	4,	78,	0,	5,	NULL),
(29,	4,	104,	0,	5,	NULL),
(30,	4,	105,	0,	5,	NULL),
(31,	4,	94,	0,	6,	NULL),
(32,	4,	93,	0,	6,	NULL),
(33,	4,	77,	0,	6,	NULL),
(34,	4,	78,	0,	6,	NULL),
(35,	4,	104,	0,	6,	NULL),
(36,	4,	105,	0,	6,	NULL),
(37,	4,	94,	0,	7,	NULL),
(38,	4,	93,	0,	7,	NULL),
(39,	4,	77,	0,	7,	NULL),
(40,	4,	78,	0,	7,	NULL),
(41,	4,	104,	0,	7,	NULL),
(42,	4,	105,	0,	7,	NULL),
(43,	4,	94,	0,	8,	NULL),
(44,	4,	93,	0,	8,	NULL),
(45,	4,	77,	0,	8,	NULL),
(46,	4,	78,	0,	8,	NULL),
(47,	4,	104,	0,	8,	NULL),
(48,	4,	105,	0,	8,	NULL),
(49,	4,	94,	0,	9,	NULL),
(50,	4,	93,	0,	9,	NULL),
(51,	4,	77,	0,	9,	NULL),
(52,	4,	78,	0,	9,	NULL),
(53,	4,	104,	0,	9,	NULL),
(54,	4,	105,	0,	9,	NULL);

CREATE TABLE `catalog_product_entity_decimal` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` decimal(12,4) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_ENTT_DEC_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_DEC_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Decimal Attribute Backend Table';

INSERT INTO `catalog_product_entity_decimal` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	4,	80,	0,	1,	NULL),
(2,	4,	120,	0,	1,	NULL),
(3,	4,	75,	0,	1,	17.0000),
(4,	4,	76,	0,	1,	NULL),
(5,	4,	80,	0,	2,	NULL),
(6,	4,	120,	0,	2,	NULL),
(7,	4,	75,	0,	2,	17.0000),
(8,	4,	76,	0,	2,	NULL),
(9,	4,	80,	0,	3,	NULL),
(10,	4,	120,	0,	3,	NULL),
(11,	4,	75,	0,	3,	17.0000),
(12,	4,	76,	0,	3,	NULL),
(13,	4,	80,	0,	4,	NULL),
(14,	4,	120,	0,	4,	NULL),
(15,	4,	75,	0,	4,	17.0000),
(16,	4,	76,	0,	4,	NULL),
(17,	4,	80,	0,	5,	NULL),
(18,	4,	120,	0,	5,	NULL),
(19,	4,	75,	0,	5,	17.0000),
(20,	4,	76,	0,	5,	NULL),
(21,	4,	80,	0,	6,	NULL),
(22,	4,	120,	0,	6,	NULL),
(23,	4,	75,	0,	6,	17.0000),
(24,	4,	76,	0,	6,	NULL),
(25,	4,	80,	0,	7,	NULL),
(26,	4,	120,	0,	7,	NULL),
(27,	4,	75,	0,	7,	17.0000),
(28,	4,	76,	0,	7,	NULL),
(29,	4,	80,	0,	8,	NULL),
(30,	4,	120,	0,	8,	NULL),
(31,	4,	75,	0,	8,	16.1100),
(32,	4,	76,	0,	8,	NULL),
(33,	4,	80,	0,	9,	NULL),
(34,	4,	120,	0,	9,	NULL),
(35,	4,	75,	0,	9,	17.0000),
(36,	4,	76,	0,	9,	NULL);

CREATE TABLE `catalog_product_entity_gallery` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `position` int(11) NOT NULL DEFAULT '0' COMMENT 'Position',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_ENTT_GLR_ENTT_TYPE_ID_ENTT_ID_ATTR_ID_STORE_ID` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_GLR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_GLR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Gallery Attribute Backend Table';


CREATE TABLE `catalog_product_entity_group_price` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `all_groups` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Applicable To All Customer Groups',
  `customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Group ID',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `is_percent` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Percent',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `CC12C83765B562314470A24F2BDD0F36` (`entity_id`,`all_groups`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GROUP_PRICE_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GROUP_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_GROUP_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CAT_PRD_ENTT_GROUP_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_GROUP_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_DF909D22C11B60B1E5E3EE64AB220ECE` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Group Price Attribute Backend Table';


CREATE TABLE `catalog_product_entity_int` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` int(11) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_INT_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_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_CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_INT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Integer Attribute Backend Table';

INSERT INTO `catalog_product_entity_int` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	4,	102,	0,	1,	4),
(2,	4,	96,	0,	1,	1),
(3,	4,	121,	0,	1,	2),
(4,	4,	100,	0,	1,	0),
(5,	4,	102,	0,	2,	4),
(6,	4,	96,	0,	2,	1),
(7,	4,	121,	0,	2,	2),
(8,	4,	100,	0,	2,	0),
(9,	4,	102,	0,	3,	4),
(10,	4,	96,	0,	3,	1),
(11,	4,	121,	0,	3,	2),
(12,	4,	100,	0,	3,	0),
(13,	4,	102,	0,	4,	4),
(14,	4,	96,	0,	4,	1),
(15,	4,	121,	0,	4,	2),
(16,	4,	100,	0,	4,	0),
(17,	4,	134,	0,	1,	6),
(18,	4,	134,	0,	2,	5),
(19,	4,	134,	0,	3,	4),
(20,	4,	134,	0,	4,	12),
(21,	4,	102,	0,	5,	4),
(22,	4,	96,	0,	5,	1),
(23,	4,	134,	0,	5,	7),
(24,	4,	121,	0,	5,	2),
(25,	4,	100,	0,	5,	0),
(26,	4,	102,	0,	6,	4),
(27,	4,	96,	0,	6,	1),
(28,	4,	134,	0,	6,	8),
(29,	4,	121,	0,	6,	2),
(30,	4,	100,	0,	6,	0),
(31,	4,	102,	0,	7,	4),
(32,	4,	96,	0,	7,	1),
(33,	4,	134,	0,	7,	9),
(34,	4,	121,	0,	7,	2),
(35,	4,	100,	0,	7,	0),
(36,	4,	102,	0,	8,	4),
(37,	4,	96,	0,	8,	1),
(38,	4,	134,	0,	8,	10),
(39,	4,	121,	0,	8,	2),
(40,	4,	100,	0,	8,	0),
(41,	4,	102,	0,	9,	4),
(42,	4,	96,	0,	9,	1),
(43,	4,	134,	0,	9,	11),
(44,	4,	121,	0,	9,	2),
(45,	4,	100,	0,	9,	0);

CREATE TABLE `catalog_product_entity_media_gallery` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute ID',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CAT_PRD_ENTT_MDA_GLR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_MDA_GLR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Media Gallery Attribute Backend Table';

INSERT INTO `catalog_product_entity_media_gallery` (`value_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	88,	1,	'/b/o/book_cover_1.jpg'),
(2,	88,	2,	'/c/o/cover-undoing.jpg'),
(4,	88,	4,	'/a/b/abook.jpg'),
(5,	88,	1,	'/k/h/khady_geneva_un_book_day_24_april_3_.jpg'),
(6,	88,	1,	'/i/m/img_5101_2_.jpg'),
(7,	88,	1,	'/i/m/img_5102_2_.jpg'),
(8,	88,	1,	'/k/h/khady_poster_child_for_rome_conference_kouyate_speaking.jpg'),
(10,	88,	1,	'/p/1/p1_-_khady_tobe_lion_cornellians_ny_reading.jpg'),
(11,	88,	1,	'/p/2/p2_-_fana_khady_npwj_un_27_feb_12.jpg'),
(12,	88,	1,	'/p/3/p3_-_777.jpg'),
(13,	88,	1,	'/k/h/khady_presentation_iac_norway_1_1.jpg'),
(14,	88,	5,	'/k/i/kiminta_cover_web_k.jpg'),
(15,	88,	6,	'/r/o/rose_lore_cover_web_k.jpg'),
(16,	88,	7,	'/t/a/taboo_cover_web_k.jpg'),
(17,	88,	8,	'/1/4/1463451416.jpg'),
(18,	88,	9,	'/i/n/in-the-name_cover_web_k.jpg'),
(19,	88,	9,	'/p/3/p3_-_uncut_ahmady_madrassa_boys.jpg'),
(20,	88,	9,	'/p/2/p2_-_uncut_ahmady_speaks_in_iran.jpg'),
(21,	88,	9,	'/p/1/p1_-_uncut_ahmady_woman_regional_dress.jpg'),
(22,	88,	9,	'/p/4/p4_-_uncut_ahmady_men_meeting.jpg'),
(23,	88,	9,	'/p/5/p5_-_uncut_ahmady_drumming.jpg'),
(24,	88,	9,	'/p/6/p6_-_uncut_ahmady_women_at_door.jpg'),
(25,	88,	9,	'/p/6/p6_-_uncut_ahmady_women_smiling.jpg'),
(26,	88,	9,	'/p/6/p6_-_uncut_ahmady_women_in_field.jpg'),
(27,	88,	9,	'/p/7/p7_-_uncut_ahmady_women_girls.jpg'),
(28,	88,	9,	'/p/8/p8_-_uncut_ahmady_receiving_award_2.jpg'),
(29,	88,	9,	'/p/1/p10_-_uncut_ahmady_poster_rome_conference.jpg'),
(30,	88,	9,	'/p/1/p13_-_iran_audience_book_launch_oxford.jpg'),
(31,	88,	9,	'/p/1/p14_-_img_3443.jpg'),
(32,	88,	9,	'/p/1/p15_-_img_3453.jpg'),
(33,	88,	9,	'/p/1/p16_-_shirley_tobe_comfort_kameel.jpg'),
(34,	88,	9,	'/p/1/p17_-_img_0992.jpg'),
(35,	88,	9,	'/p/1/p18_-_kameel_et_all_geneva_may_11_2016.jpg'),
(36,	88,	9,	'/b/g/bgts5268.jpg'),
(37,	88,	9,	'/i/m/img_5255.jpg'),
(38,	88,	9,	'/i/m/img_4754.jpg'),
(39,	88,	9,	'/i/m/img_7752.jpg'),
(40,	88,	9,	'/i/m/img_7864.jpg'),
(41,	88,	9,	'/i/m/img_7960.jpg'),
(42,	88,	9,	'/i/m/img_7918.jpg'),
(43,	88,	9,	'/u/n/uncut_ahmady_interviews_imam.jpg'),
(44,	88,	9,	'/u/n/uncut_ahmady_oxford_kameel.jpg'),
(45,	88,	9,	'/u/n/uncut_ahmady_rome_tobe_kameel.jpg'),
(46,	88,	9,	'/u/n/uncut_ahmady_signpost_oxford_march.jpg'),
(47,	88,	9,	'/k/a/kameel_ahmady_at_university_of_oxford_march_10_2017.jpg'),
(48,	88,	1,	'/b/a/back_cover.jpg'),
(49,	88,	3,	'/s/c/screen_shot_2018-06-26_at_16.49.47.png');

CREATE TABLE `catalog_product_entity_media_gallery_value` (
  `value_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Value ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `label` varchar(255) DEFAULT NULL COMMENT 'Label',
  `position` int(10) unsigned DEFAULT NULL COMMENT 'Position',
  `disabled` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is Disabled',
  PRIMARY KEY (`value_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_MDA_GLR_VAL_VAL_ID_CAT_PRD_ENTT_MDA_GLR_VAL_ID` FOREIGN KEY (`value_id`) REFERENCES `catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Media Gallery Attribute Value Table';

INSERT INTO `catalog_product_entity_media_gallery_value` (`value_id`, `store_id`, `label`, `position`, `disabled`) VALUES
(1,	0,	'Blood Stains. A Child of Africa Reclaims Her Human Rights',	0,	1),
(2,	0,	'Undoing FGM',	1,	1),
(4,	0,	'Waging Empathy',	1,	1),
(5,	0,	NULL,	2,	0),
(6,	0,	NULL,	3,	0),
(7,	0,	NULL,	4,	0),
(8,	0,	NULL,	5,	0),
(10,	0,	'After a READING in New York City, Bluestockings bookstore, 13 November 2010. In the photo are Lion Blau, Tobe Levin, Khady, Dara',	7,	0),
(11,	0,	'Here are Fana Habteab and Khady Koita at the United Nations in  February 2012 at the Commission on the Status of Women (CEDAW) conference. In 2002, Khady became the founding president of the first European-wide association of national initiatives fighting',	8,	0),
(12,	0,	'Here’s another important one. Khady has given speeches in many significant venues. Here she is after a High Level Panel on FGM at the U.N. Human Rights Council Session 17. Palais des Nations. Geneva, Switzerland. 1 June 2011',	9,	0),
(13,	0,	NULL,	6,	0),
(14,	0,	'Kiminta',	1,	1),
(15,	0,	'Rose Lore',	1,	1),
(16,	0,	'Taboo',	1,	1),
(17,	0,	'Stones: A Novel',	1,	1),
(18,	0,	'In the Name of Tradition',	0,	1),
(19,	0,	'Religious schools for boys- south if Iran 2014 photo by sh Telanda',	3,	0),
(20,	0,	'seminar on FGM in national library in Tehran- 2015 and lunching of - farsi version-\" in the name of tradition\"',	2,	0),
(21,	0,	'bibi from Qesham Island- South of Iran( women cutters/ those who perform FGM on girls) photo by: sh Telenda',	1,	0),
(22,	0,	'lobbying with community leaders during FGM fieldwork 2013- Kurdish areas in West Azerbijan province photo: kameel Ahmady',	4,	0),
(23,	0,	'Wedding in Qesham Island, Hormozgan province 2012- photo: Sh Telanda',	5,	0),
(24,	0,	'awareness rasisng and interviewing locals during fieldwork. Kermansha province 2011 photo: kameel Ahmady',	6,	0),
(25,	0,	'awareness rasisng and interviewing locals during fieldwork. Kermansha province 2011 photo: kameel Ahmady',	6,	0),
(26,	0,	'awareness rasisng and interviewing locals during fieldwork. Kermansha province 2011 photo: kameel Ahmady',	6,	0),
(27,	0,	'awareness rasisng and interviewing locals during fieldwork. Kurdistan province 2010 photo: kameel Ahmady',	7,	0),
(28,	0,	'Wining of honour award for FGM and ECM ( early child marriage in Iran)  by IKWRA in law university of London 2016- photo: Sarah Smith',	8,	0),
(29,	0,	'his photo shows the banner announcing the ‘BanFGM’ Conference, Rome, Italy. 30-31 January 2017. It depicts UnCUT/VOICES’ first author, Khady … with the same photo used on the cover of Blood Stains. A Child of Africa Reclaims Her Human Rights. Khady is in ',	10,	0),
(30,	0,	'Another photo of Kameel launching his book at the University of Oxford on 10 October 2016.',	13,	0),
(31,	0,	'Another photo of Kameel launching his book at the University of Oxford on 10 October 2016.',	14,	0),
(32,	0,	'Relaxing at the Cotswold Lodge after the book launch in Oxford, left to right: Kameel Ahmady, Comfort Ottah, Tobe Levin von Gleichen, Nolan Victory and Haldi Shehan.',	15,	0),
(33,	0,	'Attending Kameel’s book launch at Oxford: Shirley Ardener, Tobe Levin, Comfort Ottah',	16,	0),
(34,	0,	'Author Kameel Ahmady Meeting with Lorraine Koonce Farahmand and Tobe Levin von Gleichen in Geneva at the Human Rights Council Inter-African Committee FGM Conference. Geneva. 11 May 2016.',	17,	0),
(35,	0,	'Here’s one more from Geneva I’d like to Feature. Left to Right: Kameel Ahmady, Godfrey Williams-Okorodus, Holger Postulart, Tobe Levin von Gleichen, Elizabeth Wilson, and Edna Adan Ismail.',	18,	0),
(36,	0,	NULL,	19,	0),
(37,	0,	NULL,	20,	0),
(38,	0,	NULL,	21,	0),
(39,	0,	NULL,	22,	0),
(40,	0,	NULL,	23,	0),
(41,	0,	NULL,	24,	0),
(42,	0,	NULL,	25,	0),
(43,	0,	NULL,	26,	0),
(44,	0,	NULL,	27,	0),
(45,	0,	NULL,	28,	0),
(46,	0,	NULL,	29,	0),
(47,	0,	'Kameel Ahmady at University of Oxford March 10, 2017',	30,	0),
(48,	0,	NULL,	1,	1),
(49,	0,	'WAAFRIKA 123. 1992. Kenya. Two womyn fall in love',	2,	1);

CREATE TABLE `catalog_product_entity_text` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` text COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_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_CAT_PRD_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_TEXT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Text Attribute Backend Table';

INSERT INTO `catalog_product_entity_text` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	4,	73,	0,	1,	'Best Selling Memoir by Khady with Marie-Thérèse Cuny'),
(2,	4,	72,	0,	1,	'Blood Stains - A Child of Africa Reclaims Her Human Rights\r\nBlood Stains, a best-seller in France, is a Diaspora memoir about growing up in a traditional family in Senegal and emigration to Paris. Its feisty protagonist, Khady, suffers genital mutilation at age seven, a brutal rite that entails lifelong distress, sexual trauma and harrowing childbirths. Married off at thirteen to a man two decades older, the teenager bears five children, and, as a battered wife, blows the whistle on an immigrant community that serves men\'s interests. Not content to remain a victim, however, the young woman fights for education, earns an independent living and becomes an activist. Her courageous battle against FGM as founder and president of the European Network brings her to the U.N. to urge international support.'),
(3,	4,	83,	0,	1,	NULL),
(4,	4,	106,	0,	1,	NULL),
(5,	4,	73,	0,	2,	'Pierre Foldes: The Surgeon Who Restores the Clitoris'),
(6,	4,	72,	0,	2,	'<p>One hundred and thirty million excised women inhabit the globe. These massive statistics mask human realities: torment breaks these victims one by one. Pierre Foldes took their hurt in both hands, nesting their stammered complaints in his heart. Like most physicians, he could simply have eased their pain and kept his mouth shut. But he began to think outside the box, at no little cost to himself, and became an activist. For reasons both medical and humanitarian, Pierre Foldes chose to put himself on the line. This is what Hubert Prolongeau tells us, narrating not only an unadorned tale of admiration but a beautiful book, written by a master&rsquo;s pen, useful and convincing.</p>'),
(7,	4,	83,	0,	2,	NULL),
(8,	4,	106,	0,	2,	NULL),
(9,	4,	73,	0,	3,	'1992. Kenya. Two womyn fall in love... A play by Nick Hadikwa Mwaluko, Foreword by Virginia Stern. Afterword by Naomi Rosen.'),
(10,	4,	72,	0,	3,	'<p>1992. Kenya. On the eve of the country\'s first democratic elections, everyone is brewing with expression, even in the tiny, rural village, Luoland, with no electricity or running water some 250 kilometers northwest of Nairobi. There, although lesbians don&rsquo;t exist in Kenya, two women fall in love: Bobby, a blond American development worker and Awino from the Luo tribe. To complicate matters, Awino&rsquo;s father is also the Chief who enforces traditions and codes. So when famine strikes, the villagers blame the lesbians for the many, many deaths by starvation. To regain equilibrium, to make everything \"normal\" once again, Awino--butch bordering on trans--must be &ldquo;circumcised&rdquo; &ndash; by force--so s/he can act like a real woman rather than a woman \"who wants to be\" a man, and Bobby must leave. Will Awino and Bobby agree to separate for the good of their community? Or will the village itself change?</p>\r\n<p><strong>\"<em>WAAFRIKA</em>, skillfully crafted and chillingly paced, may be the first play addressing FGM together with issues related to transgender and lesbian love. It amplifies our understanding and opens our hearts. Read it!\" Dr. Dagmar Schultz, Producer and Director of \"Audre Lorde - The Berlin Years 1984 to 1992.\"</strong></p>\r\n<p>Most positive reviews of <em>Waafrika</em> by Nick Mwaluko:</p>\r\n<p>Broadway Palm Beach (2013): <br /><a class=\"moz-txt-link-freetext\" href=\"http://www.browardpalmbeach.com/2013-05-30/culture/lt-i-gt-waafrica-lt-i-gt-at-empire-stage-be-prepared-to-squirm/\">http://www.browardpalmbeach.com/2013-05-30/culture/lt-i-gt-waafrica-lt-i-gt-at-empire-stage-be-prepared-to-squirm/</a> <br /> <br />Florida Theater On Stage (2013): <br /><a class=\"moz-txt-link-freetext\" href=\"http://www.floridatheateronstage.com/reviews/thinking-caps-intriguing-if-flawed-tragedy-waafrika-stuns-with-harrowing-climax/\">http://www.floridatheateronstage.com/reviews/thinking-caps-intriguing-if-flawed-tragedy-waafrika-stuns-with-harrowing-climax/</a> <br /> <br />South Florida Theater Scene (2013): <br /><a class=\"moz-txt-link-freetext\" href=\"http://www.southfloridatheatrescene.com/2013/05/thinking-cap-theatre-waafrika-reviews.html\">http://www.southfloridatheatrescene.com/2013/05/thinking-cap-theatre-waafrika-reviews.html</a> <br /> <br />Miami Herald Tribune(2013): <br /><a class=\"moz-txt-link-freetext\" href=\"http://www.miamiherald.com/2013/05/24/3414650/love-and-brutality-swirl-in-waafrika.html\">http://www.miamiherald.com/2013/05/24/3414650/love-and-brutality-swirl-in-waafrika.html</a> <br /> <br />Miami Art Zine (2013): <br /><a class=\"moz-txt-link-freetext\" href=\"http://www.miamiartzine.com/latest-features/theatre-reviews/1542-waafrika-at-thinking-cap-theatre\">http://www.miamiartzine.com/latest-features/theatre-reviews/1542-waafrika-at-thinking-cap-theatre</a></p>\r\n<p><a class=\"moz-txt-link-freetext\" href=\"http://www.goldstar.com/events/ft-lauderdale-fl/waafrika\">http://www.goldstar.com/events/ft-lauderdale-fl/waafrika</a></p>\r\n<p><a class=\"moz-txt-link-freetext\" href=\"http://www.miamiartzine.com/latest-features/theatre-reviews/1542-waafrika-at-thinking-cap-theatre\">http://www.miamiartzine.com/latest-features/theatre-reviews/1542-waafrika-at-thinking-cap-theatre</a></p>\r\n<p><a class=\"moz-txt-link-freetext\" href=\"http://www.nytheatre.com/Review/martin-denton-2005-7-21-waafrika\">http://www.nytheatre.com/Review/martin-denton-2005-7-21-waafrika</a></p>'),
(11,	4,	83,	0,	3,	NULL),
(12,	4,	106,	0,	3,	NULL),
(13,	4,	73,	0,	4,	'<p>Alice Walker, <em>Possessing the Secret of Joy</em> and the Global Movement to Ban FGM</p>'),
(14,	4,	72,	0,	4,	'<p>In 1992, Pulitzer Prize-winner Alice Walker did something wonderful: she became the first author of international renown to dedicate a novel &ldquo;to the blameless vulva&rdquo; and thereby set an egregious abuse of girl&rsquo;s and women&rsquo;s rights -- female genital mutilation or FGM -- in the public spotlight. 2012 marked the twentieth anniversary of this landmark publication.&nbsp; In response, UnCUT/VOICES Press issued a call for papers that resulted in this unique collection:&nbsp; essays on Walker&rsquo;s revolutionary book by scholars who span the globe. From Japan and China to India and Europe, Africa and the USA: four continents contribute to this praise-song for an American native daughter with international appeal.</p>\r\n<p><strong>Synopsis of <em>Possessing the Secret of Joy</em></strong></p>\r\n<p>Ambivalence and complicity dominate the plot of this first anti-FGM novel by a world-renowned author, Alice Walker. Set in a fictive African village and told in the first person-voices of each character, the main figure, Tashi, a teenager who had been spared FGM by her Christianized parents, CHOOSES to undergo infibulation. She had been urged to do so by a Jomo Kenyatta-like leader who prizes tribal customs to oppose colonial incursions. BEFORE mutilation Tashi had been orgasmic with Adam, the missionaries&rsquo; son whom she marries and with whom she moves to the United States. But her genital wounds make her suffer for life, physically and psychologically, -- in fact, severe depression claims her and she is treated by none other than Carl Jung at his home in Bollingen! Although her husband Adam is loyal to her, he openly enjoys relationship with a French lover, Lisette, with whom he spends three weeks each year. Lisette is an outspoken feminist who rejects marriage. And they have a son, Pierre, a feminine, wise, pan-sexual anthropologist who interests himself in Tashi&rsquo;s turbulence, uncovering symbols that help explain her nightmares. TASHI&rsquo;s aim in life is to unlock the secret of her recurrent anguish: it is shown to be suppression of knowledge that her sister Dura dies of FGM. Once this awareness is gained, Tashi resolves to murder the exciser. She does so, stands trial, is imprisoned, and outside the prison, a mainly silent but at times chanting demonstration of women forms. At Tashi&rsquo;s execution, in the final scene, the demonstrators unfold a banner that reads RESISTANCE IS THE SECRET OF JOY.</p>'),
(15,	4,	83,	0,	4,	NULL),
(16,	4,	106,	0,	4,	NULL),
(17,	4,	73,	0,	5,	'<em>A Maasai’s Fight against Female Genital Mutilation</em>'),
(18,	4,	72,	0,	5,	'<p>&ldquo;Frank, riveting and passionate, Maria Kiminta&rsquo;s courageous story tells you why you will want to support the global movement against FGM. Female genital mutilation, in this survivor&rsquo;s tale, leaves no doubt as to its nature as an assault on human dignity better erased from anyone&rsquo;s &lsquo;culture&rsquo;.&rdquo;<br /><em><strong>Neneh Bojang</strong>, President, EuroNet-FGM and Director, IAC Norway</em></p>\r\n<p>&ldquo;Maria Kiminta, a courageous Maasai who resides in Germany, wants her voice to count in efforts to stop FGM. For that reason she has written a powerful, persuasive book addressed to all people of good will who also wish to see the abuse of female child ren end. A must read!&rdquo;<br /><em><strong>Lorraine Koonce Farahmand,</strong> Esq. Solicitor of England and Wales, NY lawyer and gender advocate</em></p>\r\n<p>&ldquo;Maria Kiminta writes, &lsquo;&hellip; traditions responsible for FGM are stubborn, but cultures of cutting can change.&rsquo; By speaking out and writing, she hopes to enhance the welfare of her people. We should all applaud her courage and sincerity.&rdquo;<br /><em><strong>Hilary Burrage,</strong> journalist and author, </em>Eradicating Female Genital Mutilation</p>'),
(19,	4,	83,	0,	5,	NULL),
(20,	4,	106,	0,	5,	NULL),
(21,	4,	73,	0,	6,	'Essays in Cultural History and Semiotics'),
(22,	4,	72,	0,	6,	'Essays in Cultural History and Semiotics'),
(23,	4,	83,	0,	6,	NULL),
(24,	4,	106,	0,	6,	NULL),
(25,	4,	73,	0,	7,	'<p><strong>Voices of Women in Uganda on</strong> Female Genital Mutilation</p>'),
(26,	4,	72,	0,	7,	'<p>Female genital mutilation is the excruciating and damaging experience endured by many women and children in various cultures across Africa and elsewhere in the world. Even when survivors find themselves, for one reason or another, relocated to what should be safe havens, the practice follows them like a ven geance ghost.</p>\r\n<p>This unique text, combining oral history with literary art, compiles testimonies and poems about FGM: the humiliation, deprivation and loss it occasions. These accounts, factual in some cases and lyrical in others, reveal the practice as lived or witnessed and the visceral responses to it. The anger is palpable, the battlement tangible. Besides the pain, though, is the hope born of voices raised by governments, organizations, institutions and individuals, urging that FGM be abandoned or transformed into rituals for building self-esteem without the blades.</p>\r\n<p>We are grateful to Femrite, Women Writers Collective in Kampala, Uganda, for the courage to have published this revealing work.</p>'),
(27,	4,	83,	0,	7,	NULL),
(28,	4,	106,	0,	7,	NULL),
(29,	4,	73,	0,	8,	'Publication Date: July 18, 2017'),
(30,	4,	72,	0,	8,	'<p>A master&rsquo;s degree student in narrative anthropology, Emily has examined her own roots―but only through an academic lens. All this changes, however, when she comes home to Africa and reconnects with her family&rsquo;s tribe and its mystical prophecies. Sent on an assignment to embed herself with the last living members of this ancient tribe living the old way deep in the forest, Emily attempts to keep an academic distance even as the people she&rsquo;s there to observe insist that she is the one they&rsquo;ve been waiting for, and that it is her destiny to find a stone tablet made thousands of years before Christ and lead the tribe into the future. But resisting her call for change are the women in her village―who worship a secret goddess who advocates female genital mutilation as a symbol of true purity―as well as a police chief with an agenda all his own.</p>\r\n<p>Soon, Emily is swept into the ultimate battle of opposing minds, souls, and bodies―one that could determine the future not just of her tribe but women everywhere.</p>'),
(31,	4,	83,	0,	8,	NULL),
(32,	4,	106,	0,	8,	NULL),
(33,	4,	73,	0,	9,	'Female Genital Mutilation in Iran'),
(34,	4,	72,	0,	9,	'<p>When Kameel Ahmady, an aid worker in Africa, first encountered FGM, little did he suspect the discovery awaiting him on return to his native Iran. His own &ldquo;grandmother, mother and sister had all undergone FGM,&rdquo; he learned and was inspired to find out more. This pioneering volume shares evidence gathered in 4000 interviews conducted over ten years in the provinces of Hormozgan, West Azerbaijan, Kermanshah and Kurdistan to outline the scope of the practice, and although the central government is loath to intervene, Ahmady moves from description to prescription. He suggests a course of action to prevent this grievous human rights abuse. As Hilary Burrage notes, &ldquo;No more can it be said that genital ablation is a problem in Africa alone. Ahmady and his colleagues have uncovered data critical to stopping a harmful tradition in Iran. Enhanced with photographs, tables and charts, Ahmady&rsquo;s study offers insight into the challenges faced by Iranian authorities if women and girls are to remain intact. Based on solid scholarship, this book contributes to ending FGM.&rdquo;</p>\r\n<p>On October 10th, 2016, <em>In the Name of Tradition. Female Genital Mutilation in Iran</em> (Frankfurt am Main: UnCUT/VOICES Press, 2016. ISBN: 978-3-9813863-7-0) was launched by the author at Lady Margaret Hall, University of Oxford, from 2-5 p.m. in the Deneke Room under the auspices of Dr Tobe Levin in cooperation with the International Gender Studies Centre. The custom, a longstanding ritual locally called sunnet, that violates numerous aspects of women&rsquo;s sexual rights, prevails in four provinces: Western Azerbaijan, Kurdistan, Kermanshah, and Hormozgan. By bringing the issue to the world&rsquo;s agenda, Ahmady&rsquo;s monograph provides in-depth data and, at the same time, offers ideas for a comprehensive programme to combat the custom, little known to most Iranians outside the areas of prevalence.</p>\r\n<p><a href=\"{{media url=\"Ahmady for website AfterWords Tobe Hilary.docx\"}}\"><strong>The AfterWords by Tobe Levin and Hilary Burrage</strong></a></p>\r\n<p><a href=\"{{media url=\"Tobe Achievements of In the Name edited Tobe(1).doc version 1 Ahmady.doc\"}}\"><strong>Achievements of Kameel Ahmady. In the Name of Tradition. Female Genital Mutilation in Iran.</strong></a></p>'),
(35,	4,	83,	0,	9,	NULL),
(36,	4,	106,	0,	9,	NULL);

CREATE TABLE `catalog_product_entity_tier_price` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `all_groups` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Applicable To All Customer Groups',
  `customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer Group ID',
  `qty` decimal(12,4) NOT NULL DEFAULT '1.0000' COMMENT 'QTY',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `E8AB433B9ACB00343ABB312AD2FAB087` (`entity_id`,`all_groups`,`customer_group_id`,`qty`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_6E08D719F0501DD1D8E6D4EFF2511C85` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_TIER_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Tier Price Attribute Backend Table';


CREATE TABLE `catalog_product_entity_varchar` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `entity_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type 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',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_ENTT_VCHR_ENTT_ID_ATTR_ID_STORE_ID` (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_ENTT_VCHR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Varchar Attribute Backend Table';

INSERT INTO `catalog_product_entity_varchar` (`value_id`, `entity_type_id`, `attribute_id`, `store_id`, `entity_id`, `value`) VALUES
(1,	4,	71,	0,	1,	'Blood Stains. A Child of Africa Reclaims Her Human Rights'),
(2,	4,	97,	0,	1,	'blood-stains-a-child-of-africa-reclaims-her-human-rights'),
(4,	4,	118,	0,	1,	'2'),
(5,	4,	119,	0,	1,	'4'),
(6,	4,	117,	0,	1,	NULL),
(7,	4,	82,	0,	1,	NULL),
(8,	4,	84,	0,	1,	NULL),
(9,	4,	85,	0,	1,	'/b/o/book_cover_1.jpg'),
(10,	4,	86,	0,	1,	'/b/o/book_cover_1.jpg'),
(11,	4,	87,	0,	1,	'/b/o/book_cover_1.jpg'),
(12,	4,	103,	0,	1,	NULL),
(13,	4,	107,	0,	1,	NULL),
(14,	4,	109,	0,	1,	'container1'),
(15,	4,	122,	0,	1,	NULL),
(16,	4,	98,	1,	1,	'blood-stains-a-child-of-africa-reclaims-her-human-rights.html'),
(17,	4,	98,	0,	1,	'blood-stains-a-child-of-africa-reclaims-her-human-rights.html'),
(18,	4,	112,	0,	1,	'Blood Stains. A Child of Africa Reclaims Her Human Rights'),
(19,	4,	113,	0,	1,	'Blood Stains. A Child of Africa Reclaims Her Human Rights'),
(20,	4,	114,	0,	1,	'Blood Stains. A Child of Africa Reclaims Her Human Rights'),
(21,	4,	133,	0,	1,	'4'),
(22,	4,	71,	0,	2,	'Undoing FGM'),
(23,	4,	97,	0,	2,	'undoing-fgm'),
(25,	4,	133,	0,	2,	'4'),
(26,	4,	118,	0,	2,	'2'),
(27,	4,	119,	0,	2,	'4'),
(28,	4,	117,	0,	2,	NULL),
(29,	4,	82,	0,	2,	NULL),
(30,	4,	84,	0,	2,	NULL),
(31,	4,	85,	0,	2,	'/c/o/cover-undoing.jpg'),
(32,	4,	86,	0,	2,	'/c/o/cover-undoing.jpg'),
(33,	4,	87,	0,	2,	'/c/o/cover-undoing.jpg'),
(34,	4,	103,	0,	2,	NULL),
(35,	4,	107,	0,	2,	NULL),
(36,	4,	109,	0,	2,	'container1'),
(37,	4,	122,	0,	2,	NULL),
(38,	4,	112,	0,	2,	'Undoing FGM'),
(39,	4,	113,	0,	2,	'Undoing FGM'),
(40,	4,	114,	0,	2,	'Undoing FGM'),
(41,	4,	98,	1,	2,	'undoing-fgm.html'),
(42,	4,	98,	0,	2,	'undoing-fgm.html'),
(43,	4,	71,	0,	3,	'WAAFRIKA 123. 1992. Kenya. Two womyn fall in love'),
(44,	4,	97,	0,	3,	'waafrika'),
(46,	4,	133,	0,	3,	'4'),
(47,	4,	118,	0,	3,	'2'),
(48,	4,	119,	0,	3,	'4'),
(49,	4,	117,	0,	3,	NULL),
(50,	4,	82,	0,	3,	NULL),
(51,	4,	84,	0,	3,	NULL),
(52,	4,	85,	0,	3,	'/s/c/screen_shot_2018-06-26_at_16.49.47.png'),
(53,	4,	86,	0,	3,	'/s/c/screen_shot_2018-06-26_at_16.49.47.png'),
(54,	4,	87,	0,	3,	'/s/c/screen_shot_2018-06-26_at_16.49.47.png'),
(55,	4,	103,	0,	3,	NULL),
(56,	4,	107,	0,	3,	NULL),
(57,	4,	109,	0,	3,	'container1'),
(58,	4,	122,	0,	3,	NULL),
(59,	4,	112,	0,	3,	'WAAFRIKA 123. 1992. Kenya. Two womyn fall in love'),
(60,	4,	113,	0,	3,	'WAAFRIKA 123. 1992. Kenya. Two womyn fall in love'),
(61,	4,	114,	0,	3,	'WAAFRIKA 123. 1992. Kenya. Two womyn fall in love'),
(62,	4,	98,	1,	3,	'waafrika.html'),
(63,	4,	98,	0,	3,	'waafrika.html'),
(64,	4,	71,	0,	4,	'Waging Empathy'),
(65,	4,	97,	0,	4,	'waging-empathy'),
(67,	4,	133,	0,	4,	'4'),
(68,	4,	118,	0,	4,	'2'),
(69,	4,	119,	0,	4,	'4'),
(70,	4,	117,	0,	4,	NULL),
(71,	4,	82,	0,	4,	NULL),
(72,	4,	84,	0,	4,	NULL),
(73,	4,	85,	0,	4,	'/a/b/abook.jpg'),
(74,	4,	86,	0,	4,	'/a/b/abook.jpg'),
(75,	4,	87,	0,	4,	'/a/b/abook.jpg'),
(76,	4,	103,	0,	4,	NULL),
(77,	4,	107,	0,	4,	NULL),
(78,	4,	109,	0,	4,	'container1'),
(79,	4,	122,	0,	4,	NULL),
(80,	4,	112,	0,	4,	'Waging Empathy'),
(81,	4,	113,	0,	4,	'Waging Empathy'),
(82,	4,	114,	0,	4,	'Waging Empathy'),
(83,	4,	98,	1,	4,	'waging-empathy.html'),
(84,	4,	98,	0,	4,	'waging-empathy.html'),
(85,	4,	71,	0,	5,	'Kiminta'),
(86,	4,	97,	0,	5,	'kiminta'),
(87,	4,	133,	0,	5,	'4'),
(88,	4,	118,	0,	5,	'2'),
(89,	4,	119,	0,	5,	'4'),
(90,	4,	117,	0,	5,	NULL),
(91,	4,	82,	0,	5,	NULL),
(92,	4,	84,	0,	5,	NULL),
(93,	4,	85,	0,	5,	'/k/i/kiminta_cover_web_k.jpg'),
(94,	4,	86,	0,	5,	'/k/i/kiminta_cover_web_k.jpg'),
(95,	4,	87,	0,	5,	'/k/i/kiminta_cover_web_k.jpg'),
(96,	4,	103,	0,	5,	NULL),
(97,	4,	107,	0,	5,	NULL),
(98,	4,	109,	0,	5,	'container1'),
(99,	4,	122,	0,	5,	NULL),
(100,	4,	112,	0,	5,	'Kiminta'),
(101,	4,	113,	0,	5,	'Kiminta'),
(102,	4,	114,	0,	5,	'Kiminta'),
(103,	4,	98,	1,	5,	'kiminta.html'),
(104,	4,	98,	0,	5,	'kiminta.html'),
(105,	4,	71,	0,	6,	'Rose Lore'),
(106,	4,	97,	0,	6,	'rose-lore'),
(107,	4,	133,	0,	6,	'3'),
(108,	4,	118,	0,	6,	'2'),
(109,	4,	119,	0,	6,	'4'),
(110,	4,	117,	0,	6,	NULL),
(111,	4,	82,	0,	6,	NULL),
(112,	4,	84,	0,	6,	NULL),
(113,	4,	85,	0,	6,	'/r/o/rose_lore_cover_web_k.jpg'),
(114,	4,	86,	0,	6,	'/r/o/rose_lore_cover_web_k.jpg'),
(115,	4,	87,	0,	6,	'/r/o/rose_lore_cover_web_k.jpg'),
(116,	4,	103,	0,	6,	NULL),
(117,	4,	107,	0,	6,	NULL),
(118,	4,	109,	0,	6,	'container1'),
(119,	4,	122,	0,	6,	NULL),
(120,	4,	112,	0,	6,	'Rose Lore'),
(121,	4,	113,	0,	6,	'Rose Lore'),
(122,	4,	114,	0,	6,	'Rose Lore'),
(123,	4,	98,	1,	6,	'rose-lore.html'),
(124,	4,	98,	0,	6,	'rose-lore.html'),
(125,	4,	71,	0,	7,	'Taboo'),
(126,	4,	97,	0,	7,	'taboo'),
(127,	4,	133,	0,	7,	'2'),
(128,	4,	118,	0,	7,	'2'),
(129,	4,	119,	0,	7,	'4'),
(130,	4,	117,	0,	7,	NULL),
(131,	4,	82,	0,	7,	NULL),
(132,	4,	84,	0,	7,	NULL),
(133,	4,	85,	0,	7,	'/t/a/taboo_cover_web_k.jpg'),
(134,	4,	86,	0,	7,	'/t/a/taboo_cover_web_k.jpg'),
(135,	4,	87,	0,	7,	'/t/a/taboo_cover_web_k.jpg'),
(136,	4,	103,	0,	7,	NULL),
(137,	4,	107,	0,	7,	NULL),
(138,	4,	109,	0,	7,	'container1'),
(139,	4,	122,	0,	7,	NULL),
(140,	4,	112,	0,	7,	'Taboo'),
(141,	4,	113,	0,	7,	'Taboo'),
(142,	4,	114,	0,	7,	'Taboo'),
(143,	4,	98,	1,	7,	'taboo.html'),
(144,	4,	98,	0,	7,	'taboo.html'),
(145,	4,	71,	0,	8,	'Stones: A Novel'),
(146,	4,	97,	0,	8,	'stones-a-novel'),
(147,	4,	133,	0,	8,	'1'),
(148,	4,	118,	0,	8,	'2'),
(149,	4,	119,	0,	8,	'4'),
(150,	4,	117,	0,	8,	NULL),
(151,	4,	82,	0,	8,	NULL),
(152,	4,	84,	0,	8,	NULL),
(153,	4,	85,	0,	8,	'/1/4/1463451416.jpg'),
(154,	4,	86,	0,	8,	'/1/4/1463451416.jpg'),
(155,	4,	87,	0,	8,	'/1/4/1463451416.jpg'),
(156,	4,	103,	0,	8,	NULL),
(157,	4,	107,	0,	8,	NULL),
(158,	4,	109,	0,	8,	'container1'),
(159,	4,	122,	0,	8,	NULL),
(160,	4,	112,	0,	8,	'Stones: A Novel'),
(161,	4,	113,	0,	8,	'Stones: A Novel'),
(162,	4,	114,	0,	8,	'Stones: A Novel'),
(163,	4,	98,	1,	8,	'stones-a-novel.html'),
(164,	4,	98,	0,	8,	'stones-a-novel.html'),
(165,	4,	71,	0,	9,	'In the Name of Tradition'),
(166,	4,	97,	0,	9,	'in-the-name-of-tradition'),
(167,	4,	133,	0,	9,	'0'),
(168,	4,	118,	0,	9,	'2'),
(169,	4,	119,	0,	9,	'4'),
(170,	4,	117,	0,	9,	NULL),
(171,	4,	82,	0,	9,	NULL),
(172,	4,	84,	0,	9,	NULL),
(173,	4,	85,	0,	9,	'/i/n/in-the-name_cover_web_k.jpg'),
(174,	4,	86,	0,	9,	'/i/n/in-the-name_cover_web_k.jpg'),
(175,	4,	87,	0,	9,	'/i/n/in-the-name_cover_web_k.jpg'),
(176,	4,	103,	0,	9,	NULL),
(177,	4,	107,	0,	9,	NULL),
(178,	4,	109,	0,	9,	'container1'),
(179,	4,	122,	0,	9,	NULL),
(180,	4,	112,	0,	9,	'In the Name of Tradition'),
(181,	4,	113,	0,	9,	'In the Name of Tradition'),
(182,	4,	114,	0,	9,	'In the Name of Tradition'),
(183,	4,	98,	1,	9,	'in-the-name-of-tradition.html'),
(184,	4,	98,	0,	9,	'in-the-name-of-tradition.html'),
(185,	4,	135,	0,	1,	'/b/a/back_cover.jpg'),
(186,	4,	135,	0,	2,	'no_selection'),
(187,	4,	135,	0,	3,	'no_selection');

CREATE TABLE `catalog_product_flat_1` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'entity_id',
  `attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'attribute_set_id',
  `type_id` varchar(32) NOT NULL DEFAULT 'simple' COMMENT 'type_id',
  `cost` decimal(12,4) DEFAULT NULL COMMENT 'cost',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'created_at',
  `gift_message_available` smallint(6) DEFAULT NULL COMMENT 'gift_message_available',
  `has_options` smallint(6) NOT NULL DEFAULT '0' COMMENT 'has_options',
  `image_label` varchar(255) DEFAULT NULL COMMENT 'image_label',
  `is_recurring` smallint(6) DEFAULT NULL COMMENT 'is_recurring',
  `links_exist` int(11) DEFAULT NULL COMMENT 'links_exist',
  `links_purchased_separately` int(11) DEFAULT NULL COMMENT 'links_purchased_separately',
  `links_title` varchar(255) DEFAULT NULL COMMENT 'links_title',
  `msrp` decimal(12,4) DEFAULT NULL COMMENT 'msrp',
  `msrp_display_actual_price_type` varchar(255) DEFAULT NULL COMMENT 'msrp_display_actual_price_type',
  `msrp_enabled` smallint(6) DEFAULT NULL COMMENT 'msrp_enabled',
  `name` varchar(255) DEFAULT NULL COMMENT 'name',
  `news_from_date` datetime DEFAULT NULL COMMENT 'news_from_date',
  `news_to_date` datetime DEFAULT NULL COMMENT 'news_to_date',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'price',
  `price_type` int(11) DEFAULT NULL COMMENT 'price_type',
  `price_view` int(11) DEFAULT NULL COMMENT 'price_view',
  `recurring_profile` text COMMENT 'recurring_profile',
  `required_options` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'required_options',
  `shipment_type` int(11) DEFAULT NULL COMMENT 'shipment_type',
  `short_description` text COMMENT 'short_description',
  `sku` varchar(64) DEFAULT NULL COMMENT 'sku',
  `sku_type` int(11) DEFAULT NULL COMMENT 'sku_type',
  `small_image` varchar(255) DEFAULT NULL COMMENT 'small_image',
  `small_image_label` varchar(255) DEFAULT NULL COMMENT 'small_image_label',
  `special_from_date` datetime DEFAULT NULL COMMENT 'special_from_date',
  `special_price` decimal(12,4) DEFAULT NULL COMMENT 'special_price',
  `special_to_date` datetime DEFAULT NULL COMMENT 'special_to_date',
  `status` smallint(5) unsigned DEFAULT NULL COMMENT 'status',
  `tax_class_id` int(10) unsigned DEFAULT NULL COMMENT 'tax_class_id',
  `thumbnail` varchar(255) DEFAULT NULL COMMENT 'thumbnail',
  `thumbnail_label` varchar(255) DEFAULT NULL COMMENT 'thumbnail_label',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT 'updated_at',
  `url_key` varchar(255) DEFAULT NULL COMMENT 'url_key',
  `url_path` varchar(255) DEFAULT NULL COMMENT 'url_path',
  `visibility` smallint(5) unsigned DEFAULT NULL COMMENT 'visibility',
  `weight` decimal(12,4) DEFAULT NULL COMMENT 'weight',
  `weight_type` int(11) DEFAULT NULL COMMENT 'weight_type',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_FLAT_1_TYPE_ID` (`type_id`),
  KEY `IDX_CATALOG_PRODUCT_FLAT_1_ATTRIBUTE_SET_ID` (`attribute_set_id`),
  KEY `IDX_CATALOG_PRODUCT_FLAT_1_NAME` (`name`),
  KEY `IDX_CATALOG_PRODUCT_FLAT_1_PRICE` (`price`),
  KEY `IDX_CATALOG_PRODUCT_FLAT_1_STATUS` (`status`),
  CONSTRAINT `FK_CAT_PRD_FLAT_1_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Flat (Store 1)';


CREATE TABLE `catalog_product_index_eav` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` int(10) unsigned NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_VALUE` (`value`),
  CONSTRAINT `FK_CATALOG_PRODUCT_INDEX_EAV_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_EAV_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_EAV_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product EAV Index Table';


CREATE TABLE `catalog_product_index_eav_decimal` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` decimal(12,4) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE` (`value`),
  CONSTRAINT `FK_CAT_PRD_IDX_EAV_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_EAV_DEC_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_EAV_DEC_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='Catalog Product EAV Decimal Index Table';


CREATE TABLE `catalog_product_index_eav_decimal_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` decimal(12,4) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE` (`value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product EAV Decimal Indexer Index Table';


CREATE TABLE `catalog_product_index_eav_decimal_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` decimal(12,4) NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE` (`value`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product EAV Decimal Indexer Temp Table';


CREATE TABLE `catalog_product_index_eav_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` int(10) unsigned NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_IDX_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE` (`value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product EAV Indexer Index Table';


CREATE TABLE `catalog_product_index_eav_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  `value` int(10) unsigned NOT NULL COMMENT 'Value',
  PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_TMP_ENTITY_ID` (`entity_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID` (`store_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE` (`value`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product EAV Indexer Temp Table';


CREATE TABLE `catalog_product_index_group_price` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_GROUP_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_GROUP_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_195DF97C81B0BDD6A2EEC50F870E16D1` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_GROUP_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_GROUP_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Group Price Index Table';


CREATE TABLE `catalog_product_index_price` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `final_price` decimal(12,4) DEFAULT NULL COMMENT 'Final Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE` (`min_price`),
  KEY `IDX_CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE` (`website_id`,`customer_group_id`,`min_price`),
  CONSTRAINT `FK_CAT_PRD_IDX_PRICE_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_CAT_PRD_IDX_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Index Table';

INSERT INTO `catalog_product_index_price` (`entity_id`, `customer_group_id`, `website_id`, `tax_class_id`, `price`, `final_price`, `min_price`, `max_price`, `tier_price`, `group_price`) VALUES
(1,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(8,	0,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	1,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	2,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	3,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(9,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL);

CREATE TABLE `catalog_product_index_price_bundle_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class Id',
  `price_type` smallint(5) unsigned NOT NULL COMMENT 'Price Type',
  `special_price` decimal(12,4) DEFAULT NULL COMMENT 'Special Price',
  `tier_percent` decimal(12,4) DEFAULT NULL COMMENT 'Tier Percent',
  `orig_price` decimal(12,4) DEFAULT NULL COMMENT 'Orig Price',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `base_tier` decimal(12,4) DEFAULT NULL COMMENT 'Base Tier',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `base_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Group Price',
  `group_price_percent` decimal(12,4) DEFAULT NULL COMMENT 'Group Price Percent',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Idx';


CREATE TABLE `catalog_product_index_price_bundle_opt_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `alt_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `alt_tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `alt_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Group Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Opt Idx';


CREATE TABLE `catalog_product_index_price_bundle_opt_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `alt_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `alt_tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `alt_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Alt Group Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Opt Tmp';


CREATE TABLE `catalog_product_index_price_bundle_sel_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `selection_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Selection Id',
  `group_type` smallint(5) unsigned DEFAULT '0' COMMENT 'Group Type',
  `is_required` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Required',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Sel Idx';


CREATE TABLE `catalog_product_index_price_bundle_sel_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Id',
  `selection_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Selection Id',
  `group_type` smallint(5) unsigned DEFAULT '0' COMMENT 'Group Type',
  `is_required` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Required',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Sel Tmp';


CREATE TABLE `catalog_product_index_price_bundle_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class Id',
  `price_type` smallint(5) unsigned NOT NULL COMMENT 'Price Type',
  `special_price` decimal(12,4) DEFAULT NULL COMMENT 'Special Price',
  `tier_percent` decimal(12,4) DEFAULT NULL COMMENT 'Tier Percent',
  `orig_price` decimal(12,4) DEFAULT NULL COMMENT 'Orig Price',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `base_tier` decimal(12,4) DEFAULT NULL COMMENT 'Base Tier',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `base_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Group Price',
  `group_price_percent` decimal(12,4) DEFAULT NULL COMMENT 'Group Price Percent',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Index Price Bundle Tmp';


CREATE TABLE `catalog_product_index_price_cfg_opt_agr_idx` (
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID',
  `child_id` int(10) unsigned NOT NULL COMMENT 'Child ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Config Option Aggregate Index Table';


CREATE TABLE `catalog_product_index_price_cfg_opt_agr_tmp` (
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID',
  `child_id` int(10) unsigned NOT NULL COMMENT 'Child ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Config Option Aggregate Temp Table';


CREATE TABLE `catalog_product_index_price_cfg_opt_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Config Option Index Table';


CREATE TABLE `catalog_product_index_price_cfg_opt_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Config Option Temp Table';


CREATE TABLE `catalog_product_index_price_downlod_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Minimum price',
  `max_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Maximum price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Indexer Table for price of downloadable products';


CREATE TABLE `catalog_product_index_price_downlod_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Minimum price',
  `max_price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Maximum price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Temporary Indexer Table for price of downloadable products';


CREATE TABLE `catalog_product_index_price_final_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class ID',
  `orig_price` decimal(12,4) DEFAULT NULL COMMENT 'Original Price',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `base_tier` decimal(12,4) DEFAULT NULL COMMENT 'Base Tier',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `base_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Group Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Final Index Table';


CREATE TABLE `catalog_product_index_price_final_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class ID',
  `orig_price` decimal(12,4) DEFAULT NULL COMMENT 'Original Price',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `base_tier` decimal(12,4) DEFAULT NULL COMMENT 'Base Tier',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  `base_group_price` decimal(12,4) DEFAULT NULL COMMENT 'Base Group Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Final Temp Table';


CREATE TABLE `catalog_product_index_price_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `final_price` decimal(12,4) DEFAULT NULL COMMENT 'Final Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE` (`min_price`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Index Table';

INSERT INTO `catalog_product_index_price_idx` (`entity_id`, `customer_group_id`, `website_id`, `tax_class_id`, `price`, `final_price`, `min_price`, `max_price`, `tier_price`, `group_price`) VALUES
(1,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(1,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(2,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(4,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(5,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(6,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(7,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(8,	0,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	1,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	2,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(8,	3,	1,	2,	16.1100,	16.1100,	16.1100,	16.1100,	NULL,	NULL),
(9,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(9,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL);

CREATE TABLE `catalog_product_index_price_opt_agr_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Option Aggregate Index Table';


CREATE TABLE `catalog_product_index_price_opt_agr_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Option Aggregate Temp Table';


CREATE TABLE `catalog_product_index_price_opt_idx` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Option Index Table';


CREATE TABLE `catalog_product_index_price_opt_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Option Temp Table';


CREATE TABLE `catalog_product_index_price_tmp` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `tax_class_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Tax Class ID',
  `price` decimal(12,4) DEFAULT NULL COMMENT 'Price',
  `final_price` decimal(12,4) DEFAULT NULL COMMENT 'Final Price',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  `max_price` decimal(12,4) DEFAULT NULL COMMENT 'Max Price',
  `tier_price` decimal(12,4) DEFAULT NULL COMMENT 'Tier Price',
  `group_price` decimal(12,4) DEFAULT NULL COMMENT 'Group price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_TMP_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_TMP_WEBSITE_ID` (`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_PRICE_TMP_MIN_PRICE` (`min_price`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='Catalog Product Price Indexer Temp Table';

INSERT INTO `catalog_product_index_price_tmp` (`entity_id`, `customer_group_id`, `website_id`, `tax_class_id`, `price`, `final_price`, `min_price`, `max_price`, `tier_price`, `group_price`) VALUES
(3,	0,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	1,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	2,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL),
(3,	3,	1,	2,	17.0000,	17.0000,	17.0000,	17.0000,	NULL,	NULL);

CREATE TABLE `catalog_product_index_tier_price` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `customer_group_id` smallint(5) unsigned NOT NULL COMMENT 'Customer Group ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `min_price` decimal(12,4) DEFAULT NULL COMMENT 'Min Price',
  PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CAT_PRD_IDX_TIER_PRICE_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_CAT_PRD_IDX_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_IDX_TIER_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Tier Price Index Table';


CREATE TABLE `catalog_product_index_website` (
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  `website_date` date DEFAULT NULL COMMENT 'Website Date',
  `rate` float DEFAULT '1' COMMENT 'Rate',
  PRIMARY KEY (`website_id`),
  KEY `IDX_CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE` (`website_date`),
  CONSTRAINT `FK_CAT_PRD_IDX_WS_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Website Index Table';

INSERT INTO `catalog_product_index_website` (`website_id`, `website_date`, `rate`) VALUES
(1,	'2018-06-28',	1);

CREATE TABLE `catalog_product_link` (
  `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `linked_product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Linked Product ID',
  `link_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Link Type ID',
  PRIMARY KEY (`link_id`),
  UNIQUE KEY `UNQ_CAT_PRD_LNK_LNK_TYPE_ID_PRD_ID_LNKED_PRD_ID` (`link_type_id`,`product_id`,`linked_product_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_PRODUCT_ID` (`product_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID` (`linked_product_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_LINK_TYPE_ID` (`link_type_id`),
  CONSTRAINT `FK_CAT_PRD_LNK_LNKED_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`linked_product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_LNK_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_LNK_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='Catalog Product To Product Linkage Table';

INSERT INTO `catalog_product_link` (`link_id`, `product_id`, `linked_product_id`, `link_type_id`) VALUES
(4,	1,	2,	4),
(5,	1,	3,	4),
(6,	1,	4,	4),
(43,	1,	5,	4),
(44,	1,	6,	4),
(45,	1,	7,	4),
(46,	1,	8,	4),
(47,	1,	9,	4),
(7,	2,	1,	4),
(8,	2,	3,	4),
(9,	2,	4,	4),
(48,	2,	5,	4),
(49,	2,	6,	4),
(50,	2,	7,	4),
(51,	2,	8,	4),
(52,	2,	9,	4),
(10,	3,	1,	4),
(11,	3,	2,	4),
(12,	3,	4,	4),
(53,	3,	5,	4),
(54,	3,	6,	4),
(55,	3,	7,	4),
(56,	3,	8,	4),
(57,	3,	9,	4),
(1,	4,	1,	4),
(2,	4,	2,	4),
(3,	4,	3,	4),
(58,	4,	5,	4),
(59,	4,	6,	4),
(60,	4,	7,	4),
(61,	4,	8,	4),
(62,	4,	9,	4),
(13,	5,	1,	4),
(14,	5,	2,	4),
(15,	5,	3,	4),
(16,	5,	4,	4),
(63,	5,	6,	4),
(64,	5,	7,	4),
(65,	5,	8,	4),
(66,	5,	9,	4),
(17,	6,	1,	4),
(18,	6,	2,	4),
(19,	6,	3,	4),
(20,	6,	4,	4),
(21,	6,	5,	4),
(67,	6,	7,	4),
(68,	6,	8,	4),
(69,	6,	9,	4),
(22,	7,	1,	4),
(23,	7,	2,	4),
(24,	7,	3,	4),
(25,	7,	4,	4),
(26,	7,	5,	4),
(27,	7,	6,	4),
(70,	7,	8,	4),
(71,	7,	9,	4),
(28,	8,	1,	4),
(29,	8,	2,	4),
(30,	8,	3,	4),
(31,	8,	4,	4),
(32,	8,	5,	4),
(33,	8,	6,	4),
(34,	8,	7,	4),
(72,	8,	9,	4),
(35,	9,	1,	4),
(36,	9,	2,	4),
(37,	9,	3,	4),
(38,	9,	4,	4),
(39,	9,	5,	4),
(40,	9,	6,	4),
(41,	9,	7,	4),
(42,	9,	8,	4);

CREATE TABLE `catalog_product_link_attribute` (
  `product_link_attribute_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product Link Attribute ID',
  `link_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Link Type ID',
  `product_link_attribute_code` varchar(32) DEFAULT NULL COMMENT 'Product Link Attribute Code',
  `data_type` varchar(32) DEFAULT NULL COMMENT 'Data Type',
  PRIMARY KEY (`product_link_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID` (`link_type_id`),
  CONSTRAINT `FK_CAT_PRD_LNK_ATTR_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Link Attribute Table';

INSERT INTO `catalog_product_link_attribute` (`product_link_attribute_id`, `link_type_id`, `product_link_attribute_code`, `data_type`) VALUES
(1,	1,	'position',	'int'),
(2,	3,	'position',	'int'),
(3,	3,	'qty',	'decimal'),
(4,	4,	'position',	'int'),
(5,	5,	'position',	'int');

CREATE TABLE `catalog_product_link_attribute_decimal` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `product_link_attribute_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Product Link Attribute ID',
  `link_id` int(10) unsigned NOT NULL COMMENT 'Link ID',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  KEY `IDX_CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID` (`product_link_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID` (`link_id`),
  CONSTRAINT `FK_AB2EFA9A14F7BCF1D5400056203D14B6` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_LNK_ATTR_DEC_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Link Decimal Attribute Table';


CREATE TABLE `catalog_product_link_attribute_int` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `product_link_attribute_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Product Link Attribute ID',
  `link_id` int(10) unsigned NOT NULL COMMENT 'Link ID',
  `value` int(11) NOT NULL DEFAULT '0' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_PRODUCT_LINK_ATTRIBUTE_ID` (`product_link_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID` (`link_id`),
  CONSTRAINT `FK_CAT_PRD_LNK_ATTR_INT_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_D6D878F8BA2A4282F8DDED7E6E3DE35C` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Link Integer Attribute Table';

INSERT INTO `catalog_product_link_attribute_int` (`value_id`, `product_link_attribute_id`, `link_id`, `value`) VALUES
(1,	4,	1,	0),
(2,	4,	2,	0),
(3,	4,	3,	0),
(4,	4,	4,	0),
(5,	4,	5,	0),
(6,	4,	6,	0),
(7,	4,	7,	0),
(8,	4,	8,	0),
(9,	4,	9,	0),
(10,	4,	10,	0),
(11,	4,	11,	0),
(12,	4,	12,	0),
(13,	4,	13,	0),
(14,	4,	14,	0),
(15,	4,	15,	0),
(16,	4,	16,	0),
(17,	4,	17,	0),
(18,	4,	18,	0),
(19,	4,	19,	0),
(20,	4,	20,	0),
(21,	4,	21,	0),
(22,	4,	22,	0),
(23,	4,	23,	0),
(24,	4,	24,	0),
(25,	4,	25,	0),
(26,	4,	26,	0),
(27,	4,	27,	0),
(28,	4,	28,	0),
(29,	4,	29,	0),
(30,	4,	30,	0),
(31,	4,	31,	0),
(32,	4,	32,	0),
(33,	4,	33,	0),
(34,	4,	34,	0),
(35,	4,	35,	0),
(36,	4,	36,	0),
(37,	4,	37,	0),
(38,	4,	38,	0),
(39,	4,	39,	0),
(40,	4,	40,	0),
(41,	4,	41,	0),
(42,	4,	42,	0),
(43,	4,	43,	0),
(44,	4,	44,	0),
(45,	4,	45,	0),
(46,	4,	46,	0),
(47,	4,	47,	0),
(48,	4,	48,	0),
(49,	4,	49,	0),
(50,	4,	50,	0),
(51,	4,	51,	0),
(52,	4,	52,	0),
(53,	4,	53,	0),
(54,	4,	54,	0),
(55,	4,	55,	0),
(56,	4,	56,	0),
(57,	4,	57,	0),
(58,	4,	58,	0),
(59,	4,	59,	0),
(60,	4,	60,	0),
(61,	4,	61,	0),
(62,	4,	62,	0),
(63,	4,	63,	0),
(64,	4,	64,	0),
(65,	4,	65,	0),
(66,	4,	66,	0),
(67,	4,	67,	0),
(68,	4,	68,	0),
(69,	4,	69,	0),
(70,	4,	70,	0),
(71,	4,	71,	0),
(72,	4,	72,	0);

CREATE TABLE `catalog_product_link_attribute_varchar` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `product_link_attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Link Attribute ID',
  `link_id` int(10) unsigned NOT NULL COMMENT 'Link ID',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`),
  KEY `IDX_CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID` (`product_link_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID` (`link_id`),
  CONSTRAINT `FK_CAT_PRD_LNK_ATTR_VCHR_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_DEE9C4DA61CFCC01DFCF50F0D79CEA51` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Link Varchar Attribute Table';


CREATE TABLE `catalog_product_link_type` (
  `link_type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link Type ID',
  `code` varchar(32) DEFAULT NULL COMMENT 'Code',
  PRIMARY KEY (`link_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Link Type Table';

INSERT INTO `catalog_product_link_type` (`link_type_id`, `code`) VALUES
(1,	'relation'),
(3,	'super'),
(4,	'up_sell'),
(5,	'cross_sell');

CREATE TABLE `catalog_product_option` (
  `option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `type` varchar(50) DEFAULT NULL COMMENT 'Type',
  `is_require` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Is Required',
  `sku` varchar(64) DEFAULT NULL COMMENT 'SKU',
  `max_characters` int(10) unsigned DEFAULT NULL COMMENT 'Max Characters',
  `file_extension` varchar(50) DEFAULT NULL COMMENT 'File Extension',
  `image_size_x` smallint(5) unsigned DEFAULT NULL COMMENT 'Image Size X',
  `image_size_y` smallint(5) unsigned DEFAULT NULL COMMENT 'Image Size Y',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`option_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CAT_PRD_OPT_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='Catalog Product Option Table';


CREATE TABLE `catalog_product_option_price` (
  `option_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Price 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',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `price_type` varchar(7) NOT NULL DEFAULT 'fixed' COMMENT 'Price Type',
  PRIMARY KEY (`option_price_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID` (`option_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID` (`option_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_PRICE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_OPT_PRICE_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Option Price Table';


CREATE TABLE `catalog_product_option_title` (
  `option_title_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Title 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',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  PRIMARY KEY (`option_title_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID` (`option_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID` (`option_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_OPT_TTL_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Option Title Table';


CREATE TABLE `catalog_product_option_type_price` (
  `option_type_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type Price ID',
  `option_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Type ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `price` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Price',
  `price_type` varchar(7) NOT NULL DEFAULT 'fixed' COMMENT 'Price Type',
  PRIMARY KEY (`option_type_price_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID` (`option_type_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_B523E3378E8602F376CC415825576B7F` FOREIGN KEY (`option_type_id`) REFERENCES `catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_OPT_TYPE_PRICE_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='Catalog Product Option Type Price Table';


CREATE TABLE `catalog_product_option_type_title` (
  `option_type_title_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type Title ID',
  `option_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option Type ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `title` varchar(255) DEFAULT NULL COMMENT 'Title',
  PRIMARY KEY (`option_type_title_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID` (`option_type_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_C085B9CF2C2A302E8043FDEA1937D6A2` FOREIGN KEY (`option_type_id`) REFERENCES `catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_OPT_TYPE_TTL_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='Catalog Product Option Type Title Table';


CREATE TABLE `catalog_product_option_type_value` (
  `option_type_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type ID',
  `option_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Option ID',
  `sku` varchar(64) DEFAULT NULL COMMENT 'SKU',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`option_type_id`),
  KEY `IDX_CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID` (`option_id`),
  CONSTRAINT `FK_CAT_PRD_OPT_TYPE_VAL_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Option Type Value Table';


CREATE TABLE `catalog_product_relation` (
  `parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID',
  `child_id` int(10) unsigned NOT NULL COMMENT 'Child ID',
  PRIMARY KEY (`parent_id`,`child_id`),
  KEY `IDX_CATALOG_PRODUCT_RELATION_CHILD_ID` (`child_id`),
  CONSTRAINT `FK_CAT_PRD_RELATION_CHILD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`child_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_RELATION_PARENT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Relation Table';


CREATE TABLE `catalog_product_super_attribute` (
  `product_super_attribute_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product Super Attribute ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute ID',
  `position` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Position',
  PRIMARY KEY (`product_super_attribute_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID` (`product_id`,`attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CAT_PRD_SPR_ATTR_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Super Attribute Table';


CREATE TABLE `catalog_product_super_attribute_label` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `product_super_attribute_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Super Attribute ID',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store ID',
  `use_default` smallint(5) unsigned DEFAULT '0' COMMENT 'Use Default Value',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID_STORE_ID` (`product_super_attribute_id`,`store_id`),
  KEY `IDX_CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID` (`product_super_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID` (`store_id`),
  CONSTRAINT `FK_309442281DF7784210ED82B2CC51E5D5` FOREIGN KEY (`product_super_attribute_id`) REFERENCES `catalog_product_super_attribute` (`product_super_attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_SPR_ATTR_LBL_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='Catalog Product Super Attribute Label Table';


CREATE TABLE `catalog_product_super_attribute_pricing` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID',
  `product_super_attribute_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product Super Attribute ID',
  `value_index` varchar(255) DEFAULT NULL COMMENT 'Value Index',
  `is_percent` smallint(5) unsigned DEFAULT '0' COMMENT 'Is Percent',
  `pricing_value` decimal(12,4) DEFAULT NULL COMMENT 'Pricing Value',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website ID',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CAT_PRD_SPR_ATTR_PRICING_PRD_SPR_ATTR_ID_VAL_IDX_WS_ID` (`product_super_attribute_id`,`value_index`,`website_id`),
  KEY `IDX_CAT_PRD_SPR_ATTR_PRICING_PRD_SPR_ATTR_ID` (`product_super_attribute_id`),
  KEY `IDX_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRICING_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CAT_PRD_SPR_ATTR_PRICING_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CDE8813117106CFAA3AD209358F66332` FOREIGN KEY (`product_super_attribute_id`) REFERENCES `catalog_product_super_attribute` (`product_super_attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Super Attribute Pricing Table';


CREATE TABLE `catalog_product_super_link` (
  `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link ID',
  `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Product ID',
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Parent ID',
  PRIMARY KEY (`link_id`),
  UNIQUE KEY `UNQ_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID` (`product_id`,`parent_id`),
  KEY `IDX_CATALOG_PRODUCT_SUPER_LINK_PARENT_ID` (`parent_id`),
  KEY `IDX_CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID` (`product_id`),
  CONSTRAINT `FK_CAT_PRD_SPR_LNK_PARENT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`parent_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_SPR_LNK_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='Catalog Product Super Link Table';


CREATE TABLE `catalog_product_website` (
  `product_id` int(10) unsigned NOT NULL COMMENT 'Product ID',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID',
  PRIMARY KEY (`product_id`,`website_id`),
  KEY `IDX_CATALOG_PRODUCT_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CAT_PRD_WS_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='Catalog Product To Website Linkage Table';

INSERT INTO `catalog_product_website` (`product_id`, `website_id`) VALUES
(1,	1),
(2,	1),
(3,	1),
(4,	1),
(5,	1),
(6,	1),
(7,	1),
(8,	1),
(9,	1);

CREATE TABLE `checkout_agreement` (
  `agreement_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Agreement Id',
  `name` varchar(255) DEFAULT NULL COMMENT 'Name',
  `content` text COMMENT 'Content',
  `content_height` varchar(25) DEFAULT NULL COMMENT 'Content Height',
  `checkbox_text` text COMMENT 'Checkbox Text',
  `is_active` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Active',
  `is_html` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Is Html',
  PRIMARY KEY (`agreement_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Checkout Agreement';


CREATE TABLE `checkout_agreement_store` (
  `agreement_id` int(10) unsigned NOT NULL COMMENT 'Agreement Id',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store Id',
  PRIMARY KEY (`agreement_id`,`store_id`),
  KEY `FK_CHECKOUT_AGREEMENT_STORE_STORE_ID_CORE_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CHECKOUT_AGREEMENT_STORE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CHKT_AGRT_STORE_AGRT_ID_CHKT_AGRT_AGRT_ID` FOREIGN KEY (`agreement_id`) REFERENCES `checkout_agreement` (`agreement_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Checkout Agreement Store';


CREATE TABLE `cms_block` (
  `block_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT 'Block ID',
  `title` varchar(255) NOT NULL COMMENT 'Block Title',
  `identifier` varchar(255) NOT NULL COMMENT 'Block String Identifier',
  `content` mediumtext COMMENT 'Block Content',
  `creation_time` timestamp NULL DEFAULT NULL COMMENT 'Block Creation Time',
  `update_time` timestamp NULL DEFAULT NULL COMMENT 'Block Modification Time',
  `is_active` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Is Block Active',
  PRIMARY KEY (`block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CMS Block Table';

INSERT INTO `cms_block` (`block_id`, `title`, `identifier`, `content`, `creation_time`, `update_time`, `is_active`) VALUES
(1,	'Home Banner',	'home_banner',	'<p><a href=\"/waging-empathy.html\" title=\"Waging Empathy\"><img alt=\"Waging Empathy\" class=\"img-responsive\" src=\"{{media url=\"wysiwyg/waging_empathy.jpg\"}}\" /></a></p>',	'2017-07-17 11:56:17',	'2018-01-18 20:14:44',	1),
(2,	'Our Partners Text',	'our_partners_text',	'<p>We sincerely appreciate the support our partners have given us in our effort to publish against FGM.</p>',	'2017-07-17 11:56:17',	'2017-09-04 17:50:39',	1),
(3,	'Cookie restriction notice',	'cookie_restriction_notice_block',	'<p>This website requires cookies to provide all of its features. For more information on what data is contained in the cookies, please see our <a href=\"{{store direct_url=\"privacy-policy-cookie-restriction-mode\"}}\">Privacy Policy page</a>. To accept cookies from this site, please click the Allow button below.</p>',	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	1),
(4,	'Latest Blog Post',	'latest_blog_post',	'<div class=\"latest-blog-post-cnt\">{{widget type=\"feedreader/sidebar\" uri=\"http://uncutvoices.wordpress.com/feed/\" item_count=\"1\" title=\"Latest Blog Post\" template=\"feedreader/sidebar.phtml\"}}</div>',	'2017-09-05 14:08:39',	'2017-09-05 18:38:16',	1),
(5,	'Footer Text',	'footer_text',	'<p>UnCUT/VOICES Press is the first publisher with exclusive focus on female genital mutilation in memoirs, academic studies, and creative writing, often in translation, that advocate against this human rights abuse.</p>',	'2017-09-06 19:10:09',	'2017-09-06 19:10:09',	1),
(6,	'Right content About',	'right_content_about',	'<div class=\"cms_block custom_block\">\r\n<div class=\"block_title\">\r\n<h3>Fighting to End FGM for Over 30 Years</h3>\r\n</div>\r\n<div class=\"block_content\">Munich, April 1977: imagine a new German feminist magazine, EMMA, and a graduate student eagerly inspecting it. She stops, taken aback, at the headline: Klitorisbeschneidung &ndash; clitoridectomy. What can that be? She learns, along with 150,000 other subscribers whose mail-sacks of letters overwhelm the editors. The journalist had concluded with an appeal from Khartoum: &ldquo;Here no one talks about it. The media are silent. Our only hope lies in an outcry from abroad.&rdquo; It came. <strong>What can we do</strong>, EMMA&rsquo;s readers asked. <strong>What they did</strong>: between 1977 and the early 80s in eight German cities, groups formed to support African activists. The German women&rsquo;s medical association invited Dr. Asma el Dareer to address their annual convention; the physician&rsquo;s dissertation marked the first epidemiological study of infibulation in the Sudan. Awa Thiam, founder of CAMS &ndash; Commission for the Abolition of Sexual Mutilation -- in Senegal, became the first keynote speaker for Terre des Femmes, today&rsquo;s leading German NGO for women&rsquo;s human rights; and Efua Dorkenoo in the UK, who founded FORWARD in 1983, provided the template for FORWARD &ndash; Germany (founded 1998). Fast forward to today: finally overcoming the three main obstacles to ending FGM &ndash; inadequate communication, lack of a feminist analysis, and miserly funding &ndash; a broader world movement is rapidly evolving thanks to government aid, social media, and the continued dedication of NGOs and individuals calling for an end to this widespread abuse.</div>\r\n</div>',	'2017-09-08 18:54:48',	'2017-09-08 18:54:48',	1);

CREATE TABLE `cms_block_store` (
  `block_id` smallint(6) NOT NULL COMMENT 'Block ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  PRIMARY KEY (`block_id`,`store_id`),
  KEY `IDX_CMS_BLOCK_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CMS_BLOCK_STORE_BLOCK_ID_CMS_BLOCK_BLOCK_ID` FOREIGN KEY (`block_id`) REFERENCES `cms_block` (`block_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CMS_BLOCK_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='CMS Block To Store Linkage Table';

INSERT INTO `cms_block_store` (`block_id`, `store_id`) VALUES
(3,	0),
(1,	1),
(2,	1),
(4,	1),
(5,	1),
(6,	1);

CREATE TABLE `cms_page` (
  `page_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT 'Page ID',
  `title` varchar(255) DEFAULT NULL COMMENT 'Page Title',
  `root_template` varchar(255) DEFAULT NULL COMMENT 'Page Template',
  `meta_keywords` text COMMENT 'Page Meta Keywords',
  `meta_description` text COMMENT 'Page Meta Description',
  `identifier` varchar(100) DEFAULT NULL COMMENT 'Page String Identifier',
  `content_heading` varchar(255) DEFAULT NULL COMMENT 'Page Content Heading',
  `content` mediumtext COMMENT 'Page Content',
  `creation_time` timestamp NULL DEFAULT NULL COMMENT 'Page Creation Time',
  `update_time` timestamp NULL DEFAULT NULL COMMENT 'Page Modification Time',
  `is_active` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Is Page Active',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Page Sort Order',
  `layout_update_xml` text COMMENT 'Page Layout Update Content',
  `custom_theme` varchar(100) DEFAULT NULL COMMENT 'Page Custom Theme',
  `custom_root_template` varchar(255) DEFAULT NULL COMMENT 'Page Custom Template',
  `custom_layout_update_xml` text COMMENT 'Page Custom Layout Update Content',
  `custom_theme_from` date DEFAULT NULL COMMENT 'Page Custom Theme Active From Date',
  `custom_theme_to` date DEFAULT NULL COMMENT 'Page Custom Theme Active To Date',
  PRIMARY KEY (`page_id`),
  KEY `IDX_CMS_PAGE_IDENTIFIER` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CMS Page Table';

INSERT INTO `cms_page` (`page_id`, `title`, `root_template`, `meta_keywords`, `meta_description`, `identifier`, `content_heading`, `content`, `creation_time`, `update_time`, `is_active`, `sort_order`, `layout_update_xml`, `custom_theme`, `custom_root_template`, `custom_layout_update_xml`, `custom_theme_from`, `custom_theme_to`) VALUES
(1,	'404 Not Found 1',	'one_column',	'Page keywords',	'Page description',	'no-route',	NULL,	'\n<div class=\"page-title\"><h1>Whoops, our bad...</h1></div>\n<dl>\n    <dt>The page you requested was not found, and we have a fine guess why.</dt>\n    <dd>\n        <ul class=\"disc\">\n            <li>If you typed the URL directly, please make sure the spelling is correct.</li>\n            <li>If you clicked on a link to get here, the link is outdated.</li>\n        </ul>\n    </dd>\n</dl>\n<dl>\n    <dt>What can you do?</dt>\n    <dd>Have no fear, help is near! There are many ways you can get back on track with Magento Store.</dd>\n    <dd>\n        <ul class=\"disc\">\n            <li><a href=\"#\" onclick=\"history.go(-1); return false;\">Go back</a> to the previous page.</li>\n            <li>Use the search bar at the top of the page to search for your products.</li>\n            <li>Follow these links to get you back on track!<br /><a href=\"{{store url=\"\"}}\">Store Home</a>\n            <span class=\"separator\">|</span> <a href=\"{{store url=\"customer/account\"}}\">My Account</a></li>\n        </ul>\n    </dd>\n</dl>\n',	'2017-07-17 11:56:17',	'2018-01-31 15:46:31',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL),
(2,	'Home page',	'one_column',	NULL,	NULL,	'home',	NULL,	'&nbsp;',	'2017-07-17 11:56:17',	'2017-08-30 11:27:50',	1,	0,	'<reference name=\"content\">\r\n   <block type=\"core/template\" name=\"home.content\" template=\"custom/home_content.phtml\" />\r\n</reference>',	NULL,	NULL,	NULL,	NULL,	NULL),
(3,	'Terms & Conditions',	'one_column',	NULL,	NULL,	'terms-and-conditions',	'Terms & Conditions',	'<p>1. UnCUT/Voices Press does not sell CCA prohibited goods &amp; services.</p>\r\n<p>2. UnCUT/Voices Press is responsible for all transactions on this website.</p>\r\n<p>3. UnCut/Voices Press prints all orders on demand. Therefore, orders cannot be cancelled after submission. In the event of documented damage due to printer error, improper packaging or documented delay in excess of 45 days after order submission, UnCut/Voices Press will refund the full purchase price including up to 1000 EUR in shipment fees.</p>\r\n<p>4. Export restrictions: UnCUT/Voices Press will not ship to the following countries...</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">a. Burma (Myanmar)</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">b. Ivory Cost</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">c. Irak</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">d. Iran</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">e. Dem. Rep. of the Congo</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">f. Cuba</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">g. Liberia</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">h. North Korea</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">i. Zimbabwe</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">j. Sudan</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">k. Syria</p>\r\n<p style=\"padding-left: 30px; padding-bottom: 0px; margin: 0px;\">l. Belarus</p>\r\n<p>&nbsp;</p>\r\n<p>5. There is no minimum payment amount for approved credit card transactions. The maximum amount for approved credit card transactions is $2,000 or 1,600&euro; or the equivalent amount in other currencies.</p>\r\n<p>6. UnCut/Voices Press Gesch&auml;ftsnummer HRB 86527, Unternehmergesellschaft Haftungsbeschr&auml;nkt.</p>',	'2017-07-17 11:56:17',	'2017-09-08 18:58:06',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL),
(4,	'About',	'two_columns_right',	NULL,	NULL,	'about',	'About',	'<div class=\"title\">UnCut/Voices Press is a publisher dedicated to ending Female Genital Mutilation (FGM)</div>\r\n<p><strong>Our Mission</strong></p>\r\n<p>To promote abolition of FGM, thereby saving girls from genital torture, by creating a multi-media platform for dissemination of autobiographies, novels, poetry, plays, and other creative work as well as research, legislation, and histories of the movement.</p>\r\n<p><strong>About Dr. Tobe Levin, Our Publisher</strong></p>\r\n<p><img alt=\"\" src=\"{{media url=\"/tobe.png\"}}\" style=\"float: left; margin: 0 5px 0 0;\" />An educator, translator, and activist who speaks 6 languages, Tobe Levin completed a B.A. summa cum laude in English; earned an M.A. in French (NYU in Paris); a maitr&icirc;se (l&rsquo;Universit&eacute; de la Sorbonne nouvelle - Paris III); and a Ph.D. in comparative literature from Cornell University. A Professor emerita of the University of Maryland University College in Europe, she has taught at the University of Frankfurt, Germany, and held visiting scholar positions. Presently an Associate of The Hutchins Center at Harvard under the directorship of Professor Henry Louis Gates, Jr. and an Affiliate of the International Gender Studies Centre at Lady Margaret Hall, University of Oxford, she researched female genital mutilation in 2004 as a Visiting Scholar at the Five Colleges Women&rsquo;s Studies Research Center at Mt. Holyoke College, in 2006 at Brandeis University and 2010 at Cornell University. Professional recognition includes the Drazek Teaching Award (1999), the UMUC Presidential Award (2002), the University System of Maryland Regents Award for Excellence in Research and Scholarship (2009), and a University of Maryland University College Certificate of Recognition for &ldquo;Notable Scholarly Activity / Professional Publications&rdquo; (2013 and 2014).</p>\r\n<p>On the editorial boards of various academic journals, including the <em>Journal on Female Genital Mutilation and Other Harmful Traditional Practices</em> (Inter-African Committee, Addis Ababa, Ethiopia), she has published more than 100 academic and popular articles as well as the edited volumes <em>Violence</em>. <em>&lsquo;Mercurial Gestalt&rsquo;</em> (Rodopi, 2008); <em>Empathy and Rage</em>. <em>Female Genital Mutilation in African Literature</em>. (co-edited with University of Ghana professor Augustine H. Asaah. Oxfordshire, Ayebia, 2009); <em>Waging Empathy. Alice Walker</em>, Possessing the Secret of Joy, <em>and the Global Movement to Ban FGM</em> (Frankfurt am Main: UnCUT/VOICES Press, 2014) and with Maria Kiminta, <em>Kiminta</em>. <em>A Maasai&rsquo;s Fight against Female Genital Mutilation</em> (Frankfurt am Main: UnCUT/VOICES Press, 2015).</p>\r\n<p><img src=\"{{media url=\"/certificate_of_the_embassy.jpg\"}}\" style=\"float: left; margin: 0 5px 0 0;\" />An activist against female genital mutilation since 1977 who has been credited with being among the first in Germany, she founded UnCUT/VOICES Press in 2009; co-founded FORWARD &ndash; Germany in 1998 and the Clitoris Restoration and Fistula Repair Fund (UK charity #1169186) in 2016. She is also honored to serve as a Trustee of the Guardian Global Media Campaign against FGM headed by Maggie O&rsquo;Kane (launched in 2017). Moreover, her work to spare girls from the blade was recognized by the Ingrid Gr&auml;fin zu Solms Human Rights Award on 25 November 2002 in Frankfurt am Main; by a Certificat de Reconnaissance (Certificate of Gratitude) for Services Rendered to the Republic of Mali at the Embassy of Mali in Berlin, 22 September 2010; by the Women&rsquo;s Institute for Freedom of the Press &lsquo;Women and Media Award&rsquo; in Washington, DC. 6 April 2014; and by the Global Woman P.E.A.C.E, Foundation Award for anti-FGM Advocacy in Literature on 21 October 2017.</p>\r\n<p>She blogs at <a href=\"http://www.uncutvoices.wordpress.com\" target=\"_blank\">www.uncutvoices.wordpress.com</a>.</p>\r\n<p style=\"clear: both;\"><strong>Our Staff</strong></p>\r\n<p><img alt=\"\" src=\"{{media url=\"/staff.png\"}}\" style=\"float: left; margin: 0px 5px 0 0;\" />The founder&rsquo;s sister, <strong>Rebecca Sue Levin</strong>, an activist in the disability rights movement, assists in the United States in all aspects of the project, from editorial to marketing. With her are strong allies in the fight to end FGM: left to right Alvilda Jablonko, director of FGM activities in No Peace Without Justice founded by the former Italian Foreign Minister Emma Bonino; Lois Herman, Women&rsquo;s UN Report Network; and Dr. Morissanda Kouyat&eacute;, executive director of the Inter-African Committee.</p>',	'2017-07-17 11:56:17',	'2018-03-07 13:04:31',	1,	0,	'<reference name=\"right\">\r\n   <remove name=\"latest.news\"/>\r\n   <block type=\"cms/block\" name=\"right.content.about\">\r\n     <action method=\"setBlockId\"><block_id>right_content_about</block_id></action>\r\n   </block>\r\n</reference>',	NULL,	NULL,	NULL,	NULL,	NULL),
(5,	'Enable Cookies',	'one_column',	NULL,	NULL,	'enable-cookies',	NULL,	'<div class=\"std\">\n    <ul class=\"messages\">\n        <li class=\"notice-msg\">\n            <ul>\n                <li>Please enable cookies in your web browser to continue.</li>\n            </ul>\n        </li>\n    </ul>\n    <div class=\"page-title\">\n        <h1><a name=\"top\"></a>What are Cookies?</h1>\n    </div>\n    <p>Cookies are short pieces of data that are sent to your computer when you visit a website.\n    On later visits, this data is then returned to that website. Cookies allow us to recognize you automatically\n    whenever you visit our site so that we can personalize your experience and provide you with better service.\n    We also use cookies (and similar browser data, such as Flash cookies) for fraud prevention and other purposes.\n     If your web browser is set to refuse cookies from our website, you will not be able to complete a purchase\n     or take advantage of certain features of our website, such as storing items in your Shopping Cart or\n     receiving personalized recommendations. As a result, we strongly encourage you to configure your web\n     browser to accept cookies from our website.</p>\n    <h2 class=\"subtitle\">Enabling Cookies</h2>\n    <ul class=\"disc\">\n        <li><a href=\"#ie7\">Internet Explorer 7.x</a></li>\n        <li><a href=\"#ie6\">Internet Explorer 6.x</a></li>\n        <li><a href=\"#firefox\">Mozilla/Firefox</a></li>\n        <li><a href=\"#opera\">Opera 7.x</a></li>\n    </ul>\n    <h3><a name=\"ie7\"></a>Internet Explorer 7.x</h3>\n    <ol>\n        <li>\n            <p>Start Internet Explorer</p>\n        </li>\n        <li>\n            <p>Under the <strong>Tools</strong> menu, click <strong>Internet Options</strong></p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-1.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Click the <strong>Privacy</strong> tab</p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-2.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Click the <strong>Advanced</strong> button</p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-3.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Put a check mark in the box for <strong>Override Automatic Cookie Handling</strong>,\n            put another check mark in the <strong>Always accept session cookies </strong>box</p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-4.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Click <strong>OK</strong></p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-5.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Click <strong>OK</strong></p>\n            <p><img src=\"{{skin url=\"images/cookies/ie7-6.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Restart Internet Explore</p>\n        </li>\n    </ol>\n    <p class=\"a-top\"><a href=\"#top\">Back to Top</a></p>\n    <h3><a name=\"ie6\"></a>Internet Explorer 6.x</h3>\n    <ol>\n        <li>\n            <p>Select <strong>Internet Options</strong> from the Tools menu</p>\n            <p><img src=\"{{skin url=\"images/cookies/ie6-1.gif\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Click on the <strong>Privacy</strong> tab</p>\n        </li>\n        <li>\n            <p>Click the <strong>Default</strong> button (or manually slide the bar down to <strong>Medium</strong>)\n            under <strong>Settings</strong>. Click <strong>OK</strong></p>\n            <p><img src=\"{{skin url=\"images/cookies/ie6-2.gif\"}}\" alt=\"\" /></p>\n        </li>\n    </ol>\n    <p class=\"a-top\"><a href=\"#top\">Back to Top</a></p>\n    <h3><a name=\"firefox\"></a>Mozilla/Firefox</h3>\n    <ol>\n        <li>\n            <p>Click on the <strong>Tools</strong>-menu in Mozilla</p>\n        </li>\n        <li>\n            <p>Click on the <strong>Options...</strong> item in the menu - a new window open</p>\n        </li>\n        <li>\n            <p>Click on the <strong>Privacy</strong> selection in the left part of the window. (See image below)</p>\n            <p><img src=\"{{skin url=\"images/cookies/firefox.png\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>Expand the <strong>Cookies</strong> section</p>\n        </li>\n        <li>\n            <p>Check the <strong>Enable cookies</strong> and <strong>Accept cookies normally</strong> checkboxes</p>\n        </li>\n        <li>\n            <p>Save changes by clicking <strong>Ok</strong>.</p>\n        </li>\n    </ol>\n    <p class=\"a-top\"><a href=\"#top\">Back to Top</a></p>\n    <h3><a name=\"opera\"></a>Opera 7.x</h3>\n    <ol>\n        <li>\n            <p>Click on the <strong>Tools</strong> menu in Opera</p>\n        </li>\n        <li>\n            <p>Click on the <strong>Preferences...</strong> item in the menu - a new window open</p>\n        </li>\n        <li>\n            <p>Click on the <strong>Privacy</strong> selection near the bottom left of the window. (See image below)</p>\n            <p><img src=\"{{skin url=\"images/cookies/opera.png\"}}\" alt=\"\" /></p>\n        </li>\n        <li>\n            <p>The <strong>Enable cookies</strong> checkbox must be checked, and <strong>Accept all cookies</strong>\n            should be selected in the &quot;<strong>Normal cookies</strong>&quot; drop-down</p>\n        </li>\n        <li>\n            <p>Save changes by clicking <strong>Ok</strong></p>\n        </li>\n    </ol>\n    <p class=\"a-top\"><a href=\"#top\">Back to Top</a></p>\n</div>\n',	'2017-07-17 11:56:17',	'2017-07-17 11:56:17',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL),
(6,	'Privacy Policy',	'one_column',	NULL,	NULL,	'privacy-policy',	'Privacy Policy',	'<h2>Privacy policy</h2>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>What Information Do We Collect?</strong></h3>\r\n<p style=\"margin-bottom: 0in;\">We collect information from you if you choose to contact us with an enquiry or if you fill in one of the forms displayed on UnCUT/VOICES Press\'s Website. The information we collect includes your contact details (such as name, postal address and email address) together with other information that you provide to enable us to respond to your enquiry. You warrant that any information you supply to us is accurate and up-to-date, that you will inform us if any such information requires updating and that if you submit personal information about a third party to us you have that third party\'s permission to do so.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>How Do We Use Your Personal Information?</strong></h3>\r\n<p style=\"margin-bottom: 0in;\">As well as dealing with your enquiries, we may use your personal information to provide you with details of the services we offer, changes to UnCUT/VOICES Press\'s Website, fundraising and other campaigns we are running and other information about  UnCUT/VOICES Press and its activities which we think you may find of interest. We may send you this information, if we have your consent, by email. We will always give you the opportunity of opting out of receiving email communications from us each time we contact you.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>How Do You Stop Us From Using Your Information Other Than for Dealing With Your Specific Enquiry?</strong></h3>\r\n<p style=\"margin-bottom: 0in;\">If you do not wish to receive this information other than as necessary to deal with your specific enquiry, or you wish to receive information only via a preferred medium, please email us at <a href=\"mailto:info@uncutvoices.com\">info@uncutvoices.com</a> with details of your request. It may take up to five working days to deal with your request.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>How Do You Update Your Personal Information? </strong></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">Where necessary, you may correct or update any Personal Information that you have provided to us by following the instructions at the sign-up page of the service or features described above or by following the instructions listed on the emails you receive from us.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>How Do You Unsubscribe and Remove Your Data?</strong></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">If you would like to unsubscribe from any of the  UnCUT/VOICES Press website services and features, please follow the instructions within each listing or at the bottom of the emails you receive once signed up for the  UnCUT/VOICES Press service or feature.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>Which Third Parties Might We Disclose Your Personal Information to?</strong></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\"><span style=\"font-size: small;\">We will not otherwise sell, trade or rent your personal information to third parties. We disclose aggregate statistics about those who use UnCUT/VOICES Press\'s Website and related information to third parties but these statistics do not include information which could enable you to be identified. </span></p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>Use of Cookies and Traffic Data</strong></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">Cookies are small pieces of information sent by a web server (such as that used to run UnCUT/VOICES Press\'s Website) to a user\'s computer which are then stored on that computer\'s hard drive. We use cookies and similar tracking devices to identify when a visit from a user of your computer is made to UnCUT/VOICES Press\'s Website, to keep track of your browsing patterns, to enable UnCUT/VOICES Press\'s Website to operate properly and to help us to optimise the content of the website. Most browsers allow you to prevent cookies being stored on your computer: if you want to know how to do this please look at the Help menu on your browser. Please note that doing so may restrict your ability to use  UnCUT/VOICES Press\'s Website.</p>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">We also count, track, and aggregate your activity on the website into our analysis of general traffic flows at the site, allowing us to identify broad demographics about who uses  UnCUT/VOICES Press website. This Traffic Data is kept anonymously so that any such information does not personally identify you. We may share this Traffic Data with others, for example, when we report to third parties, such as the press, that a certain number of our donors come from a specific geographic area.</p>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">We monitor our site and capture information about your visit to  UnCUT/VOICES Press\'s Website to improve the quality of the service we provide. This may include monitoring of traffic patterns and the site usage to help us develop and administer UnCUT/VOICES Press\'s Website. The information we hold about you may also by used to analyze your browsing preferences as part of our marketing and  fundraising programs. This may help us to select and tailor content for your benefit.</p>\r\n<h3 style=\"margin-bottom: 0in;\"><strong>Security of Your Information</strong></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\"><span style=\"font-size: small;\">We keep secure records which contain personal information about you in accordance with the requirements of the Data Protection Act 1998. No information transmitted via the Internet can be guaranteed to be completely secure during transmission: we cannot warrant the security of any information you transmit to us before we receive it. It is also possible that the information you provide to us will be temporarily transferred via a route information for a reasonable period or as long as the law requires. Please note that in accordance with our security procedures we may request proof of your identity before disclosing personal information to you.</span></p>\r\n<h3 style=\"margin-bottom: 0in;\"><span style=\"font-size: small;\"><strong>What if You Use the &ldquo;Send to a friend&rdquo; Facility</strong></span></h3>\r\n<p style=\"margin-bottom: 0in; font-weight: normal;\">UnCUT/VOICES Press\'s Website contains a facility which allows you to send an email to a third party using contact details supplied by you. We will only use the third party\'s contact details for the purpose of delivering the email unless that third party consents to us using its information for other purposes. If you choose to use the facility you will be the data controller in respect of the third party\'s contact details and we shall merely be providing the medium by which your message is delivered.</p>',	'2017-07-17 11:56:17',	'2017-09-08 18:58:46',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL),
(7,	'In the media',	'one_column',	NULL,	NULL,	'in-the-media',	'In the media',	'&nbsp;',	'2017-09-27 17:57:41',	'2018-01-31 15:46:06',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL),
(8,	'Interviews',	'one_column',	NULL,	NULL,	'interviews',	'Interviews',	'<p>Interview with Tobe Levin.</p>\r\n<p>The video was made in the fall of 2011 to accompany video readings from the book Rose Lore. Essays in Cultural Criticism and Semiotics. Ed. Frankie Hutton by authors of various chapters.</p>\r\n<p><iframe frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/NOZwXTb_SAE\" width=\"560\"></iframe></p>',	'2017-09-27 17:58:52',	'2018-03-07 13:46:16',	1,	0,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL);

CREATE TABLE `cms_page_store` (
  `page_id` smallint(6) NOT NULL COMMENT 'Page ID',
  `store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID',
  PRIMARY KEY (`page_id`,`store_id`),
  KEY `IDX_CMS_PAGE_STORE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CMS_PAGE_STORE_PAGE_ID_CMS_PAGE_PAGE_ID` FOREIGN KEY (`page_id`) REFERENCES `cms_page` (`page_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CMS_PAGE_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='CMS Page To Store Linkage Table';

INSERT INTO `cms_page_store` (`page_id`, `store_id`) VALUES
(1,	0),
(5,	0),
(2,	1),
(3,	1),
(4,	1),
(6,	1),
(7,	1),
(8,	1);

CREATE TABLE `core_cache` (
  `id` varchar(200) NOT NULL COMMENT 'Cache Id',
  `data` mediumblob COMMENT 'Cache Data',
  `create_time` int(11) DEFAULT NULL COMMENT 'Cache Creation Time',
  `update_time` int(11) DEFAULT NULL COMMENT 'Time of Cache Updating',
  `expire_time` int(11) DEFAULT NULL COMMENT 'Cache Expiration Time',
  PRIMARY KEY (`id`),
  KEY `IDX_CORE_CACHE_EXPIRE_TIME` (`expire_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Caches';


CREATE TABLE `core_cache_option` (
  `code` varchar(32) NOT NULL COMMENT 'Code',
  `value` smallint(6) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cache Options';

INSERT INTO `core_cache_option` (`code`, `value`) VALUES
('block_html',	0),
('collections',	0),
('config',	0),
('config_api',	0),
('config_api2',	0),
('eav',	0),
('layout',	0),
('translate',	0);

CREATE TABLE `core_cache_tag` (
  `tag` varchar(100) NOT NULL COMMENT 'Tag',
  `cache_id` varchar(200) NOT NULL COMMENT 'Cache Id',
  PRIMARY KEY (`tag`,`cache_id`),
  KEY `IDX_CORE_CACHE_TAG_CACHE_ID` (`cache_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tag Caches';


CREATE TABLE `core_config_data` (
  `config_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Config Id',
  `scope` varchar(8) NOT NULL DEFAULT 'default' COMMENT 'Config Scope',
  `scope_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Config Scope Id',
  `path` varchar(255) NOT NULL DEFAULT 'general' COMMENT 'Config Path',
  `value` text COMMENT 'Config Value',
  PRIMARY KEY (`config_id`),
  UNIQUE KEY `UNQ_CORE_CONFIG_DATA_SCOPE_SCOPE_ID_PATH` (`scope`,`scope_id`,`path`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Config Data';



CREATE TABLE `core_email_queue` (
  `message_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Message Id',
  `entity_id` int(10) unsigned DEFAULT NULL COMMENT 'Entity ID',
  `entity_type` varchar(128) DEFAULT NULL COMMENT 'Entity Type',
  `event_type` varchar(128) DEFAULT NULL COMMENT 'Event Type',
  `message_body_hash` varchar(64) NOT NULL COMMENT 'Message Body Hash',
  `message_body` mediumtext NOT NULL COMMENT 'Message Body',
  `message_parameters` text NOT NULL COMMENT 'Message Parameters',
  `created_at` timestamp NULL DEFAULT NULL COMMENT 'Creation Time',
  `processed_at` timestamp NULL DEFAULT NULL COMMENT 'Finish Time',
  PRIMARY KEY (`message_id`),
  KEY `0ADECE62FD629241C147389ADF20706E` (`entity_id`,`entity_type`,`event_type`,`message_body_hash`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Queue';


CREATE TABLE `core_email_queue_recipients` (
  `recipient_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Recipient Id',
  `message_id` int(10) unsigned NOT NULL COMMENT 'Message ID',
  `recipient_email` varchar(128) NOT NULL COMMENT 'Recipient Email',
  `recipient_name` varchar(255) NOT NULL COMMENT 'Recipient Name',
  `email_type` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Email Type',
  PRIMARY KEY (`recipient_id`),
  UNIQUE KEY `19BDB9C5FE4BD685FCF992A71E976CD0` (`message_id`,`recipient_email`,`email_type`),
  KEY `IDX_CORE_EMAIL_QUEUE_RECIPIENTS_RECIPIENT_EMAIL` (`recipient_email`),
  KEY `IDX_CORE_EMAIL_QUEUE_RECIPIENTS_EMAIL_TYPE` (`email_type`),
  CONSTRAINT `FK_6F4948F3ABF97DE12127EF14B140802A` FOREIGN KEY (`message_id`) REFERENCES `core_email_queue` (`message_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Queue';


CREATE TABLE `core_email_template` (
  `template_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Template Id',
  `template_code` varchar(150) NOT NULL COMMENT 'Template Name',
  `template_text` text NOT NULL COMMENT 'Template Content',
  `template_styles` text COMMENT 'Templste Styles',
  `template_type` int(10) unsigned DEFAULT NULL COMMENT 'Template Type',
  `template_subject` varchar(200) NOT 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',
  `added_at` timestamp NULL DEFAULT NULL COMMENT 'Date of Template Creation',
  `modified_at` timestamp NULL DEFAULT NULL COMMENT 'Date of Template Modification',
  `orig_template_code` varchar(200) DEFAULT NULL COMMENT 'Original Template Code',
  `orig_template_variables` text COMMENT 'Original Template Variables',
  PRIMARY KEY (`template_id`),
  UNIQUE KEY `UNQ_CORE_EMAIL_TEMPLATE_TEMPLATE_CODE` (`template_code`),
  KEY `IDX_CORE_EMAIL_TEMPLATE_ADDED_AT` (`added_at`),
  KEY `IDX_CORE_EMAIL_TEMPLATE_MODIFIED_AT` (`modified_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Email Templates';


CREATE TABLE `core_flag` (
  `flag_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Flag Id',
  `flag_code` varchar(255) NOT NULL COMMENT 'Flag Code',
  `state` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Flag State',
  `flag_data` text COMMENT 'Flag Data',
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of Last Flag Update',
  PRIMARY KEY (`flag_id`),
  KEY `IDX_CORE_FLAG_LAST_UPDATE` (`last_update`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Flag';

INSERT INTO `core_flag` (`flag_id`, `flag_code`, `state`, `flag_data`, `last_update`) VALUES
(1,	'admin_notification_survey',	0,	'a:1:{s:13:\"survey_viewed\";b:1;}',	'2017-07-17 11:56:42'),
(2,	'catalog_product_flat',	0,	'a:2:{s:8:\"is_built\";b:1;s:16:\"is_store_built_1\";b:1;}',	'2017-07-17 12:07:24'),
(3,	'report_order_aggregated',	0,	NULL,	'2018-06-28 16:03:54'),
(4,	'report_tax_aggregated',	0,	NULL,	'2018-06-28 16:03:55'),
(5,	'report_shipping_aggregated',	0,	NULL,	'2018-06-28 16:03:55'),
(6,	'report_invoiced_aggregated',	0,	NULL,	'2018-06-28 16:03:56'),
(7,	'report_refunded_aggregated',	0,	NULL,	'2018-06-28 16:03:56'),
(8,	'report_coupons_aggregated',	0,	NULL,	'2018-06-28 16:03:57'),
(9,	'report_bestsellers_aggregated',	0,	NULL,	'2018-06-28 16:03:57'),
(10,	'report_product_viewed_aggregated',	0,	NULL,	'2018-06-28 16:03:57');

CREATE TABLE `core_layout_link` (
  `layout_link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `area` varchar(64) DEFAULT NULL COMMENT 'Area',
  `package` varchar(64) DEFAULT NULL COMMENT 'Package',
  `theme` varchar(64) DEFAULT NULL COMMENT 'Theme',
  `layout_update_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Layout Update Id',
  PRIMARY KEY (`layout_link_id`),
  UNIQUE KEY `UNQ_CORE_LAYOUT_LINK_STORE_ID_PACKAGE_THEME_LAYOUT_UPDATE_ID` (`store_id`,`package`,`theme`,`layout_update_id`),
  KEY `IDX_CORE_LAYOUT_LINK_LAYOUT_UPDATE_ID` (`layout_update_id`),
  CONSTRAINT `FK_CORE_LAYOUT_LINK_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CORE_LYT_LNK_LYT_UPDATE_ID_CORE_LYT_UPDATE_LYT_UPDATE_ID` 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 Link';


CREATE TABLE `core_layout_update` (
  `layout_update_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Layout Update Id',
  `handle` varchar(255) DEFAULT NULL COMMENT 'Handle',
  `xml` text COMMENT 'Xml',
  `sort_order` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  PRIMARY KEY (`layout_update_id`),
  KEY `IDX_CORE_LAYOUT_UPDATE_HANDLE` (`handle`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Layout Updates';


CREATE TABLE `core_resource` (
  `code` varchar(50) NOT NULL COMMENT 'Resource Code',
  `version` varchar(50) DEFAULT NULL COMMENT 'Resource Version',
  `data_version` varchar(50) DEFAULT NULL COMMENT 'Data Version',
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Resources';

INSERT INTO `core_resource` (`code`, `version`, `data_version`) VALUES
('adminnotification_setup',	'1.6.0.0',	'1.6.0.0'),
('admin_setup',	'1.6.1.2',	'1.6.1.2'),
('api2_setup',	'1.0.0.0',	'1.0.0.0'),
('api_setup',	'1.6.0.1',	'1.6.0.1'),
('apptrian_imageoptimizer_setup',	'2.2.0',	'2.2.0'),
('apptrian_minify_setup',	'2.0.1',	'2.0.1'),
('authors_setup',	'0.1.0',	'0.1.0'),
('backup_setup',	'1.6.0.0',	'1.6.0.0'),
('blog_setup',	'1.4.0',	'1.4.0'),
('bundle_setup',	'1.6.0.0.1',	'1.6.0.0.1'),
('captcha_setup',	'1.7.0.0.0',	'1.7.0.0.0'),
('catalogindex_setup',	'1.6.0.0',	'1.6.0.0'),
('cataloginventory_setup',	'1.6.0.0.2',	'1.6.0.0.2'),
('catalogrule_setup',	'1.6.0.3',	'1.6.0.3'),
('catalogsearch_setup',	'1.8.2.0',	'1.8.2.0'),
('catalog_setup',	'1.6.0.0.19.1.5',	'1.6.0.0.19.1.5'),
('checkout_setup',	'1.6.0.0',	'1.6.0.0'),
('cms_setup',	'1.6.0.0.2',	'1.6.0.0.2'),
('compiler_setup',	'1.6.0.0',	'1.6.0.0'),
('contacts_setup',	'1.6.0.0',	'1.6.0.0'),
('core_setup',	'1.6.0.7',	'1.6.0.7'),
('cron_setup',	'1.6.0.0',	'1.6.0.0'),
('customer_setup',	'1.6.2.0.5',	'1.6.2.0.5'),
('customgrid_setup',	'0.9.2.1',	'0.9.2.1'),
('dataflow_setup',	'1.6.0.0',	'1.6.0.0'),
('defcon2imaclean_setup',	'1.2.1',	'1.2.1'),
('deleteorder_setup',	'1.0.9',	'1.0.9'),
('directory_setup',	'1.6.0.3',	'1.6.0.3'),
('downloadable_setup',	'1.6.0.0.2',	'1.6.0.0.2'),
('eav_setup',	'1.6.0.1',	'1.6.0.1'),
('giftmessage_setup',	'1.6.0.0',	'1.6.0.0'),
('googleanalytics_setup',	'1.6.0.0',	'1.6.0.0'),
('importexport_setup',	'1.6.0.2',	'1.6.0.2'),
('index_setup',	'1.6.0.0',	'1.6.0.0'),
('log_setup',	'1.6.1.1',	'1.6.1.1'),
('moneybookers_setup',	'1.6.0.0',	'1.6.0.0'),
('newsletter_setup',	'1.6.0.2',	'1.6.0.2'),
('oauth_setup',	'1.0.0.0',	'1.0.0.0'),
('partners_setup',	'0.1.0',	'0.1.0'),
('paygate_setup',	'1.6.0.0',	'1.6.0.0'),
('payment_setup',	'1.6.0.0',	'1.6.0.0'),
('paypaluk_setup',	'1.6.0.0',	'1.6.0.0'),
('paypal_setup',	'1.6.0.6',	'1.6.0.6'),
('persistent_setup',	'1.0.0.0',	'1.0.0.0'),
('poll_setup',	'1.6.0.1',	'1.6.0.1'),
('productalert_setup',	'1.6.0.0',	'1.6.0.0'),
('rating_setup',	'1.6.0.1',	'1.6.0.1'),
('reports_setup',	'1.6.0.0.1',	'1.6.0.0.1'),
('review_setup',	'1.6.0.0',	'1.6.0.0'),
('rss_setup',	'1.6.0.0',	'1.6.0.0'),
('salesrule_setup',	'1.6.0.3',	'1.6.0.3'),
('sales_setup',	'1.6.0.10',	'1.6.0.10'),
('scandi_menumanager_setup',	'0.1.3',	'0.1.3'),
('sendfriend_setup',	'1.6.0.1',	'1.6.0.1'),
('shipping_setup',	'1.6.0.0',	'1.6.0.0'),
('sitemap_setup',	'1.6.0.0',	'1.6.0.0'),
('tag_setup',	'1.6.0.0',	'1.6.0.0'),
('tax_setup',	'1.6.0.4',	'1.6.0.4'),
('usa_setup',	'1.6.0.3',	'1.6.0.3'),
('weee_setup',	'1.6.0.0',	'1.6.0.0'),
('widget_setup',	'1.6.0.0',	'1.6.0.0'),
('wishlist_setup',	'1.6.0.0',	'1.6.0.0');

CREATE TABLE `core_session` (
  `session_id` varchar(255) NOT NULL COMMENT 'Session Id',
  `session_expires` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Date of Session Expiration',
  `session_data` mediumblob NOT NULL COMMENT 'Session Data',
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Database Sessions Storage';


CREATE TABLE `core_store` (
  `store_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Store Id',
  `code` varchar(32) DEFAULT NULL COMMENT 'Code',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Group Id',
  `name` varchar(255) NOT NULL COMMENT 'Store Name',
  `sort_order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Sort Order',
  `is_active` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Activity',
  PRIMARY KEY (`store_id`),
  UNIQUE KEY `UNQ_CORE_STORE_CODE` (`code`),
  KEY `IDX_CORE_STORE_WEBSITE_ID` (`website_id`),
  KEY `IDX_CORE_STORE_IS_ACTIVE_SORT_ORDER` (`is_active`,`sort_order`),
  KEY `IDX_CORE_STORE_GROUP_ID` (`group_id`),
  CONSTRAINT `FK_CORE_STORE_GROUP_ID_CORE_STORE_GROUP_GROUP_ID` FOREIGN KEY (`group_id`) REFERENCES `core_store_group` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CORE_STORE_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='Stores';

INSERT INTO `core_store` (`store_id`, `code`, `website_id`, `group_id`, `name`, `sort_order`, `is_active`) VALUES
(0,	'admin',	0,	0,	'Admin',	0,	1),
(1,	'default',	1,	1,	'UnCut Voices Press',	0,	1);

CREATE TABLE `core_store_group` (
  `group_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Group Id',
  `website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id',
  `name` varchar(255) NOT NULL COMMENT 'Store Group Name',
  `root_category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Root Category Id',
  `default_store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Default Store Id',
  PRIMARY KEY (`group_id`),
  KEY `IDX_CORE_STORE_GROUP_WEBSITE_ID` (`website_id`),
  KEY `IDX_CORE_STORE_GROUP_DEFAULT_STORE_ID` (`default_store_id`),
  CONSTRAINT `FK_CORE_STORE_GROUP_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='Store Groups';

INSERT INTO `core_store_group` (`group_id`, `website_id`, `name`, `root_category_id`, `default_store_id`) VALUES
(0,	0,	'Default',	0,	0),
(1,	1,	'UnCut Voices Press',	2,	1);

CREATE TABLE `core_translate` (
  `key_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Key Id of Translation',
  `string` varchar(255) NOT NULL DEFAULT 'Translate String' COMMENT 'Translation String',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `translate` varchar(255) DEFAULT NULL COMMENT 'Translate',
  `locale` varchar(20) NOT NULL DEFAULT 'en_US' COMMENT 'Locale',
  `crc_string` bigint(20) NOT NULL DEFAULT '1591228201' COMMENT 'Translation String CRC32 Hash',
  PRIMARY KEY (`key_id`),
  UNIQUE KEY `UNQ_CORE_TRANSLATE_STORE_ID_LOCALE_CRC_STRING_STRING` (`store_id`,`locale`,`crc_string`,`string`),
  KEY `IDX_CORE_TRANSLATE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CORE_TRANSLATE_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='Translations';


CREATE TABLE `core_url_rewrite` (
  `url_rewrite_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Rewrite Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `id_path` varchar(255) DEFAULT NULL COMMENT 'Id Path',
  `request_path` varchar(255) DEFAULT NULL COMMENT 'Request Path',
  `target_path` varchar(255) DEFAULT NULL COMMENT 'Target Path',
  `is_system` smallint(5) unsigned DEFAULT '1' COMMENT 'Defines is Rewrite System',
  `options` varchar(255) DEFAULT NULL COMMENT 'Options',
  `description` varchar(255) DEFAULT NULL COMMENT 'Deascription',
  `category_id` int(10) unsigned DEFAULT NULL COMMENT 'Category Id',
  `product_id` int(10) unsigned DEFAULT NULL COMMENT 'Product Id',
  PRIMARY KEY (`url_rewrite_id`),
  UNIQUE KEY `UNQ_CORE_URL_REWRITE_REQUEST_PATH_STORE_ID` (`request_path`,`store_id`),
  UNIQUE KEY `UNQ_CORE_URL_REWRITE_ID_PATH_IS_SYSTEM_STORE_ID` (`id_path`,`is_system`,`store_id`),
  KEY `IDX_CORE_URL_REWRITE_TARGET_PATH_STORE_ID` (`target_path`,`store_id`),
  KEY `IDX_CORE_URL_REWRITE_ID_PATH` (`id_path`),
  KEY `IDX_CORE_URL_REWRITE_STORE_ID` (`store_id`),
  KEY `FK_CORE_URL_REWRITE_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` (`category_id`),
  KEY `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_CATEGORY_ENTITY_ENTITY_ID` (`product_id`),
  CONSTRAINT `FK_CORE_URL_REWRITE_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`category_id`) REFERENCES `catalog_category_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CORE_URL_REWRITE_PRODUCT_ID_CATALOG_CATEGORY_ENTITY_ENTITY_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CORE_URL_REWRITE_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='Url Rewrites';

INSERT INTO `core_url_rewrite` (`url_rewrite_id`, `store_id`, `id_path`, `request_path`, `target_path`, `is_system`, `options`, `description`, `category_id`, `product_id`) VALUES
(1,	1,	'partner/elfriede-jelinek',	'partner/elfriede-jelinek',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(2,	1,	'partner/vera-ingrid-grant',	'partner/vera-ingrid-grant',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(3,	1,	'partner/diane-rosenfeld',	'partner/diane-rosenfeld',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(4,	1,	'partner/maria-jaschok',	'partner/maria-jaschok',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(5,	1,	'partner/owolabi-bjalkander',	'partner/owolabi-bjalkander',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(6,	1,	'partner/dr--obioma-nnaemeka',	'partner/dr--obioma-nnaemeka',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(7,	1,	'partner/fatoumata-sire-diakite',	'partner/fatoumata-sire-diakite',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(8,	1,	'partner/dr--pierrette-herzberger-fofana',	'partner/dr--pierrette-herzberger-fofana',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(9,	1,	'partner/dr--angelika-koster-lossack',	'partner/dr--angelika-koster-lossack',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(10,	1,	'partner/florence-howe',	'partner/florence-howe',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(11,	1,	'partner/shulamit-reinharz',	'partner/shulamit-reinharz',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(12,	1,	'partner/mariame-racine-sow',	'partner/mariame-racine-sow',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(13,	1,	'partner/fana-habteab',	'partner/fana-habteab',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(14,	1,	'partner/frankie-hutton',	'partner/frankie-hutton',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(15,	1,	'partner/godfrey-williams-okorodus',	'partner/godfrey-williams-okorodus',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(16,	1,	'partner/erica-pomerance',	'partner/erica-pomerance',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(17,	1,	'partner/yayehyirad-kitaw',	'partner/yayehyirad-kitaw',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(18,	1,	'partner/berhane-ras-work',	'partner/berhane-ras-work',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(19,	1,	'partner/adriana-kaplan-marcusan',	'partner/adriana-kaplan-marcusan',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(20,	1,	'partner/augustine-h--asaah',	'partner/augustine-h--asaah',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(21,	1,	'partner/hanny-lightfoot-klein',	'partner/hanny-lightfoot-klein',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(22,	1,	'partner/soraya-mire',	'partner/soraya-mire',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(23,	1,	'partner/comfort-momoh',	'partner/comfort-momoh',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(24,	1,	'partner/marianne-sarkis',	'partner/marianne-sarkis',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(25,	1,	'partner/linda-may-kallestein',	'partner/linda-may-kallestein',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(26,	1,	'partner/marilyn-safir',	'partner/marilyn-safir',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(27,	1,	'partner/dagmar-schultz',	'partner/dagmar-schultz',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(28,	1,	'partner/lucy-mashua',	'partner/lucy-mashua',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(29,	1,	'partner/waltraud-dumont-du-voitel',	'partner/waltraud-dumont-du-voitel',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(30,	1,	'partner/sarah-mcculloch',	'partner/sarah-mcculloch',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(31,	1,	'partner/mary-ann-smorra',	'partner/mary-ann-smorra',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(32,	1,	'partner/sachiko-mitsumori',	'partner/sachiko-mitsumori',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(33,	1,	'partner/raymond-lloyd',	'partner/raymond-lloyd',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(34,	1,	'partner/efua-dorkenoo',	'partner/efua-dorkenoo',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(35,	1,	'partner/lois-a--herman',	'partner/lois-a--herman',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(36,	1,	'partner/gabi-helfert',	'partner/gabi-helfert',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(37,	1,	'partner/libana',	'partner/libana',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(38,	1,	'partner/christiane-adamczyk',	'partner/christiane-adamczyk',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(39,	1,	'partner/adebisi-adebayo',	'partner/adebisi-adebayo',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(40,	1,	'partner/neneh-bojang',	'partner/neneh-bojang',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(41,	1,	'partner/emma-bonino',	'partner/emma-bonino',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(42,	1,	'partner/hilary-burrage',	'partner/hilary-burrage',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(43,	1,	'partner/katharina-buss',	'partner/katharina-buss',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(44,	1,	'partner/daniela-colombo',	'partner/daniela-colombo',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(45,	1,	'partner/nikki-denholme',	'partner/nikki-denholme',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(46,	1,	'partner/fatoumata-sire-diakite-and-dr--aminata-diakite',	'partner/fatoumata-sire-diakite-and-dr--aminata-diakite',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(47,	1,	'partner/cody-donahue',	'partner/cody-donahue',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(48,	1,	'partner/efua-dorkenoo-',	'partner/efua-dorkenoo-',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(49,	1,	'partner/excisions-parlons-en',	'partner/excisions-parlons-en',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(50,	1,	'partner/dr--isabelle-gillette-faye',	'partner/dr--isabelle-gillette-faye',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(51,	1,	'partner/dr--pierrette-herzberger-fofana-and-heidi-besas',	'partner/dr--pierrette-herzberger-fofana-and-heidi-besas',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(52,	1,	'partner/dr--frankie-hutton',	'partner/dr--frankie-hutton',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(53,	1,	'partner/heba-el-kalaawy',	'partner/heba-el-kalaawy',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(54,	1,	'partner/khady-koita-and-els-leye',	'partner/khady-koita-and-els-leye',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(55,	1,	'partner/lucy-mashua-',	'partner/lucy-mashua-',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(56,	1,	'partner/sarah-mcculloch-',	'partner/sarah-mcculloch-',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(57,	1,	'partner/susan-mclucas',	'partner/susan-mclucas',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(58,	1,	'partner/sachiko-mitsumori-',	'partner/sachiko-mitsumori-',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(59,	1,	'partner/thomas-von-der-osten-sacken',	'partner/thomas-von-der-osten-sacken',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(60,	1,	'partner/naana-otoo-oyortey',	'partner/naana-otoo-oyortey',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(61,	1,	'partner/holger-postulart-and-elizabeth-wilson',	'partner/holger-postulart-and-elizabeth-wilson',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(62,	1,	'partner/rebecca-salonen',	'partner/rebecca-salonen',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(63,	1,	'partner/dirk-wustenberg-and-ibrahim-gueye',	'partner/dirk-wustenberg-and-ibrahim-gueye',	'partners',	0,	NULL,	NULL,	NULL,	NULL),
(64,	1,	'author/hubert-prolongeau',	'author/hubert-prolongeau',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(65,	1,	'author/khady--with-marie-therese-cuny',	'author/khady--with-marie-therese-cuny',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(66,	1,	'author/nick-hadikwa-mwaluko',	'author/nick-hadikwa-mwaluko',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(67,	1,	'author/jeanie-kortum',	'author/jeanie-kortum',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(68,	1,	'author/kameel-ahmady',	'author/kameel-ahmady',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(69,	1,	'author/tobe-levin--editor',	'author/tobe-levin--editor',	'authors',	0,	NULL,	NULL,	NULL,	NULL),
(70,	1,	'category/3',	'books',	'catalog/category/view/id/3',	1,	NULL,	NULL,	3,	NULL),
(71,	1,	'product/1',	'blood-stains-a-child-of-africa-reclaims-her-human-rights.html',	'catalog/product/view/id/1',	1,	NULL,	NULL,	NULL,	1),
(72,	1,	'product/1/3',	'books/blood-stains-a-child-of-africa-reclaims-her-human-rights.html',	'catalog/product/view/id/1/category/3',	1,	NULL,	NULL,	3,	1),
(73,	1,	'product/2',	'undoing-fgm.html',	'catalog/product/view/id/2',	1,	NULL,	NULL,	NULL,	2),
(74,	1,	'product/2/3',	'books/undoing-fgm.html',	'catalog/product/view/id/2/category/3',	1,	NULL,	NULL,	3,	2),
(75,	1,	'product/3',	'waafrika.html',	'catalog/product/view/id/3',	1,	NULL,	NULL,	NULL,	3),
(76,	1,	'product/3/3',	'books/waafrika.html',	'catalog/product/view/id/3/category/3',	1,	NULL,	NULL,	3,	3),
(77,	1,	'product/4',	'waging-empathy.html',	'catalog/product/view/id/4',	1,	NULL,	NULL,	NULL,	4),
(78,	1,	'product/4/3',	'books/waging-empathy.html',	'catalog/product/view/id/4/category/3',	1,	NULL,	NULL,	3,	4),
(79,	1,	'product/5',	'kiminta.html',	'catalog/product/view/id/5',	1,	NULL,	NULL,	NULL,	5),
(80,	1,	'product/5/3',	'books/kiminta.html',	'catalog/product/view/id/5/category/3',	1,	NULL,	NULL,	3,	5),
(81,	1,	'product/6',	'rose-lore.html',	'catalog/product/view/id/6',	1,	NULL,	NULL,	NULL,	6),
(82,	1,	'product/6/3',	'books/rose-lore.html',	'catalog/product/view/id/6/category/3',	1,	NULL,	NULL,	3,	6),
(83,	1,	'product/7',	'taboo.html',	'catalog/product/view/id/7',	1,	NULL,	NULL,	NULL,	7),
(84,	1,	'product/7/3',	'books/taboo.html',	'catalog/product/view/id/7/category/3',	1,	NULL,	NULL,	3,	7),
(85,	1,	'product/8',	'stones-a-novel.html',	'catalog/product/view/id/8',	1,	NULL,	NULL,	NULL,	8),
(86,	1,	'product/8/3',	'books/stones-a-novel.html',	'catalog/product/view/id/8/category/3',	1,	NULL,	NULL,	3,	8),
(87,	1,	'product/9',	'in-the-name-of-tradition.html',	'catalog/product/view/id/9',	1,	NULL,	NULL,	NULL,	9),
(88,	1,	'product/9/3',	'books/in-the-name-of-tradition.html',	'catalog/product/view/id/9/category/3',	1,	NULL,	NULL,	3,	9);

CREATE TABLE `core_variable` (
  `variable_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Variable Id',
  `code` varchar(255) DEFAULT NULL COMMENT 'Variable Code',
  `name` varchar(255) DEFAULT NULL COMMENT 'Variable Name',
  PRIMARY KEY (`variable_id`),
  UNIQUE KEY `UNQ_CORE_VARIABLE_CODE` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Variables';


CREATE TABLE `core_variable_value` (
  `value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Variable Value Id',
  `variable_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Variable Id',
  `store_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Id',
  `plain_value` text COMMENT 'Plain Text Value',
  `html_value` text COMMENT 'Html Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CORE_VARIABLE_VALUE_VARIABLE_ID_STORE_ID` (`variable_id`,`store_id`),
  KEY `IDX_CORE_VARIABLE_VALUE_VARIABLE_ID` (`variable_id`),
  KEY `IDX_CORE_VARIABLE_VALUE_STORE_ID` (`store_id`),
  CONSTRAINT `FK_CORE_VARIABLE_VALUE_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CORE_VARIABLE_VALUE_VARIABLE_ID_CORE_VARIABLE_VARIABLE_ID` FOREIGN KEY (`variable_id`) REFERENCES `core_variable` (`variable_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Variable Value';


CREATE TABLE `core_website` (
  `website_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Website Id',
  `code` varchar(32) DEFAULT NULL COMMENT 'Code',
  `name` varchar(64) DEFAULT NULL COMMENT 'Website Name',
  `sort_order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `default_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Default Group Id',
  `is_default` smallint(5) unsigned DEFAULT '0' COMMENT 'Defines Is Website Default',
  PRIMARY KEY (`website_id`),
  UNIQUE KEY `UNQ_CORE_WEBSITE_CODE` (`code`),
  KEY `IDX_CORE_WEBSITE_SORT_ORDER` (`sort_order`),
  KEY `IDX_CORE_WEBSITE_DEFAULT_GROUP_ID` (`default_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Websites';

INSERT INTO `core_website` (`website_id`, `code`, `name`, `sort_order`, `default_group_id`, `is_default`) VALUES
(0,	'admin',	'Admin',	0,	0,	0),
(1,	'base',	'UnCut Voices Press',	0,	1,	1);

CREATE TABLE `coupon_aggregated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int(11) NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `subtotal_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount Actual',
  `discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount Actual',
  `total_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount Actual',
  `rule_name` varchar(255) DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_COUPON_AGGREGATED_PERIOD_STORE_ID_ORDER_STATUS_COUPON_CODE` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `IDX_COUPON_AGGREGATED_STORE_ID` (`store_id`),
  KEY `IDX_COUPON_AGGREGATED_RULE_NAME` (`rule_name`),
  CONSTRAINT `FK_COUPON_AGGREGATED_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='Coupon Aggregated';


CREATE TABLE `coupon_aggregated_order` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int(11) NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `rule_name` varchar(255) DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_COUPON_AGGRED_ORDER_PERIOD_STORE_ID_ORDER_STS_COUPON_CODE` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `IDX_COUPON_AGGREGATED_ORDER_STORE_ID` (`store_id`),
  KEY `IDX_COUPON_AGGREGATED_ORDER_RULE_NAME` (`rule_name`),
  CONSTRAINT `FK_COUPON_AGGREGATED_ORDER_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='Coupon Aggregated Order';


CREATE TABLE `coupon_aggregated_updated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id',
  `period` date NOT NULL COMMENT 'Period',
  `store_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Store Id',
  `order_status` varchar(50) DEFAULT NULL COMMENT 'Order Status',
  `coupon_code` varchar(50) DEFAULT NULL COMMENT 'Coupon Code',
  `coupon_uses` int(11) NOT NULL DEFAULT '0' COMMENT 'Coupon Uses',
  `subtotal_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount',
  `discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount',
  `total_amount` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount',
  `subtotal_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Subtotal Amount Actual',
  `discount_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Discount Amount Actual',
  `total_amount_actual` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total Amount Actual',
  `rule_name` varchar(255) DEFAULT NULL COMMENT 'Rule Name',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNQ_COUPON_AGGRED_UPDATED_PERIOD_STORE_ID_ORDER_STS_COUPON_CODE` (`period`,`store_id`,`order_status`,`coupon_code`),
  KEY `IDX_COUPON_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  KEY `IDX_COUPON_AGGREGATED_UPDATED_RULE_NAME` (`rule_name`),
  CONSTRAINT `FK_COUPON_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='Coupon Aggregated Updated';


CREATE TABLE `cron_schedule` (
  `schedule_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Schedule Id',
  `job_code` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Job Code',
  `status` varchar(7) NOT NULL DEFAULT 'pending' COMMENT 'Status',
  `messages` text COMMENT 'Messages',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Created At',
  `scheduled_at` timestamp NULL DEFAULT NULL COMMENT 'Scheduled At',
  `executed_at` timestamp NULL DEFAULT NULL COMMENT 'Executed At',
  `finished_at` timestamp NULL DEFAULT NULL COMMENT 'Finished At',
  PRIMARY KEY (`schedule_id`),
  KEY `IDX_CRON_SCHEDULE_JOB_CODE` (`job_code`),
  KEY `IDX_CRON_SCHEDULE_SCHEDULED_AT_STATUS` (`scheduled_at`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cron Schedule';


CREATE TABLE `customer_address_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) DEFAULT NULL COMMENT 'Increment Id',
  `parent_id` int(10) unsigned DEFAULT NULL COMMENT 'Parent Id',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' 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 'Is Active',
  PRIMARY KEY (`entity_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_PARENT_ID` (`parent_id`),
  CONSTRAINT `FK_CUSTOMER_ADDRESS_ENTITY_PARENT_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`parent_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Address Entity';

INSERT INTO `customer_address_entity` (`entity_id`, `entity_type_id`, `attribute_set_id`, `increment_id`, `parent_id`, `created_at`, `updated_at`, `is_active`) VALUES
(1,	2,	0,	NULL,	1,	'2017-10-01 01:04:01',	'2018-02-09 15:05:07',	1),
(2,	2,	0,	NULL,	1,	'2018-01-21 07:42:30',	'2018-02-09 15:05:07',	1);

CREATE TABLE `customer_address_entity_datetime` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  KEY `IDX_CSTR_ADDR_ENTT_DTIME_ENTT_ID_ATTR_ID_VAL` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ADDR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_DTIME_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_address_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Address Entity Datetime';


CREATE TABLE `customer_address_entity_decimal` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ADDR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_DEC_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_address_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Address Entity Decimal';


CREATE TABLE `customer_address_entity_int` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` int(11) NOT NULL DEFAULT '0' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ADDR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_INT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_address_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_INT_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='Customer Address Entity Int';

INSERT INTO `customer_address_entity_int` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	2,	29,	1,	306),
(2,	2,	29,	2,	1);

CREATE TABLE `customer_address_entity_text` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` text NOT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CSTR_ADDR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_TEXT_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_address_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_TEXT_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='Customer Address Entity Text';

INSERT INTO `customer_address_entity_text` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	2,	25,	1,	'Boulevard of Broken Dreams'),
(2,	2,	25,	2,	'Abbeville ( 334 )');

CREATE TABLE `customer_address_entity_varchar` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ADDRESS_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ADDR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_ENTT_VCHR_ENTT_ID_CSTR_ADDR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_address_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_ADDR_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Address Entity Varchar';

INSERT INTO `customer_address_entity_varchar` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	2,	19,	1,	NULL),
(2,	2,	20,	1,	'AR'),
(3,	2,	21,	1,	NULL),
(4,	2,	22,	1,	'DEV'),
(5,	2,	23,	1,	NULL),
(6,	2,	24,	1,	'AR'),
(7,	2,	26,	1,	'Tg-Mures'),
(8,	2,	27,	1,	'RO'),
(9,	2,	28,	1,	'Mureş'),
(10,	2,	30,	1,	'123'),
(11,	2,	31,	1,	'123'),
(12,	2,	32,	1,	NULL),
(13,	2,	36,	1,	NULL),
(14,	2,	19,	2,	NULL),
(15,	2,	20,	2,	'AR'),
(16,	2,	21,	2,	NULL),
(17,	2,	22,	2,	'DEV'),
(18,	2,	23,	2,	NULL),
(19,	2,	24,	2,	'AR'),
(20,	2,	26,	2,	'Abbeville'),
(21,	2,	27,	2,	'US'),
(22,	2,	28,	2,	'Alabama'),
(23,	2,	30,	2,	'36310'),
(24,	2,	31,	2,	'0740123456'),
(25,	2,	32,	2,	NULL),
(26,	2,	36,	2,	NULL);

CREATE TABLE `customer_eav_attribute` (
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `is_visible` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is Visible',
  `input_filter` varchar(255) DEFAULT NULL COMMENT 'Input Filter',
  `multiline_count` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Multiline Count',
  `validate_rules` text COMMENT 'Validate Rules',
  `is_system` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Is System',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Sort Order',
  `data_model` varchar(255) DEFAULT NULL COMMENT 'Data Model',
  PRIMARY KEY (`attribute_id`),
  CONSTRAINT `FK_CSTR_EAV_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Eav Attribute';

INSERT INTO `customer_eav_attribute` (`attribute_id`, `is_visible`, `input_filter`, `multiline_count`, `validate_rules`, `is_system`, `sort_order`, `data_model`) VALUES
(1,	1,	NULL,	0,	NULL,	1,	10,	NULL),
(2,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(3,	1,	NULL,	0,	NULL,	1,	20,	NULL),
(4,	0,	NULL,	0,	NULL,	0,	30,	NULL),
(5,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	40,	NULL),
(6,	0,	NULL,	0,	NULL,	0,	50,	NULL),
(7,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	60,	NULL),
(8,	0,	NULL,	0,	NULL,	0,	70,	NULL),
(9,	1,	NULL,	0,	'a:1:{s:16:\"input_validation\";s:5:\"email\";}',	1,	80,	NULL),
(10,	1,	NULL,	0,	NULL,	1,	25,	NULL),
(11,	0,	'date',	0,	'a:1:{s:16:\"input_validation\";s:4:\"date\";}',	0,	90,	NULL),
(12,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(13,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(14,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(15,	0,	NULL,	0,	'a:1:{s:15:\"max_text_length\";i:255;}',	0,	100,	NULL),
(16,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(17,	0,	'datetime',	0,	NULL,	0,	0,	NULL),
(18,	0,	NULL,	0,	'a:0:{}',	0,	110,	NULL),
(19,	0,	NULL,	0,	NULL,	0,	10,	NULL),
(20,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	20,	NULL),
(21,	0,	NULL,	0,	NULL,	0,	30,	NULL),
(22,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	40,	NULL),
(23,	0,	NULL,	0,	NULL,	0,	50,	NULL),
(24,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	60,	NULL),
(25,	1,	NULL,	2,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	70,	NULL),
(26,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	80,	NULL),
(27,	1,	NULL,	0,	NULL,	1,	90,	NULL),
(28,	1,	NULL,	0,	NULL,	1,	100,	NULL),
(29,	1,	NULL,	0,	NULL,	1,	100,	NULL),
(30,	1,	NULL,	0,	'a:0:{}',	1,	110,	'customer/attribute_data_postcode'),
(31,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	120,	NULL),
(32,	1,	NULL,	0,	'a:2:{s:15:\"max_text_length\";i:255;s:15:\"min_text_length\";i:1;}',	1,	130,	NULL),
(33,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(34,	0,	NULL,	0,	'a:1:{s:16:\"input_validation\";s:4:\"date\";}',	1,	0,	NULL),
(35,	1,	NULL,	0,	NULL,	1,	28,	NULL),
(36,	1,	NULL,	0,	NULL,	1,	140,	NULL),
(37,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(38,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(39,	0,	NULL,	0,	NULL,	1,	0,	NULL),
(40,	0,	NULL,	0,	NULL,	1,	0,	NULL);

CREATE TABLE `customer_eav_attribute_website` (
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  `website_id` smallint(5) unsigned NOT NULL COMMENT 'Website Id',
  `is_visible` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Visible',
  `is_required` smallint(5) unsigned DEFAULT NULL COMMENT 'Is Required',
  `default_value` text COMMENT 'Default Value',
  `multiline_count` smallint(5) unsigned DEFAULT NULL COMMENT 'Multiline Count',
  PRIMARY KEY (`attribute_id`,`website_id`),
  KEY `IDX_CUSTOMER_EAV_ATTRIBUTE_WEBSITE_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CSTR_EAV_ATTR_WS_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_EAV_ATTR_WS_WS_ID_CORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Eav Attribute Website';


CREATE TABLE `customer_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',
  `website_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Website Id',
  `email` varchar(255) DEFAULT NULL COMMENT 'Email',
  `group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Group Id',
  `increment_id` varchar(50) DEFAULT NULL COMMENT 'Increment Id',
  `store_id` smallint(5) unsigned DEFAULT '0' COMMENT 'Store Id',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' 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 'Is Active',
  `disable_auto_group_change` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Disable automatic group change based on VAT ID',
  PRIMARY KEY (`entity_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_EMAIL_WEBSITE_ID` (`email`,`website_id`),
  KEY `IDX_CUSTOMER_ENTITY_STORE_ID` (`store_id`),
  KEY `IDX_CUSTOMER_ENTITY_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_EMAIL_WEBSITE_ID` (`email`,`website_id`),
  KEY `IDX_CUSTOMER_ENTITY_WEBSITE_ID` (`website_id`),
  CONSTRAINT `FK_CUSTOMER_ENTITY_STORE_ID_CORE_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_CUSTOMER_ENTITY_WEBSITE_ID_CORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity';

INSERT INTO `customer_entity` (`entity_id`, `entity_type_id`, `attribute_set_id`, `website_id`, `email`, `group_id`, `increment_id`, `store_id`, `created_at`, `updated_at`, `is_active`, `disable_auto_group_change`) VALUES
(1,	1,	0,	1,	'marius@aprilred.com',	1,	NULL,	1,	'2017-09-27 12:55:34',	'2018-02-09 15:05:07',	1,	0);

CREATE TABLE `customer_entity_datetime` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_DATETIME_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_DATETIME_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_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_CUSTOMER_ENTITY_DATETIME_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity Datetime';

INSERT INTO `customer_entity_datetime` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	1,	11,	1,	'1987-05-20 00:00:00');

CREATE TABLE `customer_entity_decimal` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_DECIMAL_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_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_CUSTOMER_ENTITY_DECIMAL_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity Decimal';


CREATE TABLE `customer_entity_int` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` int(11) NOT NULL DEFAULT '0' COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_INT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_INT_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ENTT_INT_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_CUSTOMER_ENTITY_INT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CUSTOMER_ENTITY_INT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity Int';

INSERT INTO `customer_entity_int` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	1,	18,	1,	1),
(2,	1,	13,	1,	1),
(3,	1,	14,	1,	1);

CREATE TABLE `customer_entity_text` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` text NOT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_TEXT_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_TEXT_ENTITY_ID` (`entity_id`),
  CONSTRAINT `FK_CSTR_ENTT_TEXT_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_CUSTOMER_ENTITY_TEXT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CUSTOMER_ENTITY_TEXT_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity Text';


CREATE TABLE `customer_entity_varchar` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value Id',
  `entity_type_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Type Id',
  `attribute_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Attribute Id',
  `entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity Id',
  `value` varchar(255) DEFAULT NULL COMMENT 'Value',
  PRIMARY KEY (`value_id`),
  UNIQUE KEY `UNQ_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID` (`entity_id`,`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_VARCHAR_ENTITY_TYPE_ID` (`entity_type_id`),
  KEY `IDX_CUSTOMER_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`),
  KEY `IDX_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID` (`entity_id`),
  KEY `IDX_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_VALUE` (`entity_id`,`attribute_id`,`value`),
  CONSTRAINT `FK_CSTR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_CSTR_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_CUSTOMER_ENTITY_VARCHAR_ENTITY_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`entity_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Entity Varchar';

INSERT INTO `customer_entity_varchar` (`value_id`, `entity_type_id`, `attribute_id`, `entity_id`, `value`) VALUES
(1,	1,	5,	1,	'AR'),
(2,	1,	7,	1,	'DEV'),
(3,	1,	12,	1,	'ae9bd3f453e9c6063b2852f6b6a96baa:UIeSH0O0Z42TbG8uFLVefQXmxsCkAoAa'),
(4,	1,	3,	1,	'Default Store View');




CREATE TABLE `customer_form_attribute` (
  `form_code` varchar(32) NOT NULL COMMENT 'Form Code',
  `attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute Id',
  PRIMARY KEY (`form_code`,`attribute_id`),
  KEY `IDX_CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE_ID` (`attribute_id`),
  CONSTRAINT `FK_CSTR_FORM_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Form Attribute';

INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES
('adminhtml_customer',	1),
('adminhtml_customer',	3),
('adminhtml_customer',	4),
('checkout_register',	4),
('customer_account_create',	4),
('customer_account_edit',	4),
('adminhtml_customer',	5),
('checkout_register',	5),
('customer_account_create',	5),
('customer_account_edit',	5),
('adminhtml_customer',	6),
('checkout_register',	6),
('customer_account_create',	6),
('customer_account_edit',	6),
('adminhtml_customer',	7),
('checkout_register',	7),
('customer_account_create',	7),
('customer_account_edit',	7),
('adminhtml_customer',	8),
('checkout_register',	8),
('customer_account_create',	8),
('customer_account_edit',	8),
('adminhtml_checkout',	9),
('adminhtml_customer',	9),
('checkout_register',	9),
('customer_account_create',	9),
('customer_account_edit',	9),
('adminhtml_checkout',	10),
('adminhtml_customer',	10),
('adminhtml_checkout',	11),
('adminhtml_customer',	11),
('checkout_register',	11),
('customer_account_create',	11),
('customer_account_edit',	11),
('adminhtml_checkout',	15),
('adminhtml_customer',	15),
('checkout_register',	15),
('customer_account_create',	15),
('customer_account_edit',	15),
('adminhtml_customer',	17),
('checkout_register',	17),
('customer_account_create',	17),
('customer_account_edit',	17),
('adminhtml_checkout',	18),
('adminhtml_customer',	18),
('checkout_register',	18),
('customer_account_create',	18),
('customer_account_edit',	18),
('adminhtml_customer_address',	19),
('customer_address_edit',	19),
('customer_register_address',	19),
('adminhtml_customer_address',	20),
('customer_address_edit',	20),
('customer_register_address',	20),
('adminhtml_customer_address',	21),
('customer_address_edit',	21),
('customer_register_address',	21),
('adminhtml_customer_address',	22),
('customer_address_edit',	22),
('customer_register_address',	22),
('adminhtml_customer_address',	23),
('customer_address_edit',	23),
('customer_register_address',	23),
('adminhtml_customer_address',	24),
('customer_address_edit',	24),
('customer_register_address',	24),
('adminhtml_customer_address',	25),
('customer_address_edit',	25),
('customer_register_address',	25),
('adminhtml_customer_address',	26),
('customer_address_edit',	26),
('customer_register_address',	26),
('adminhtml_customer_address',	27),
('customer_address_edit',	27),
('customer_register_address',	27),
('adminhtml_customer_address',	28),
('customer_address_edit',	28),
('customer_register_address',	28),
('adminhtml_customer_address',	29),
('customer_address_edit',	29),
('customer_register_address',	29),
('adminhtml_customer_address',	30),
('customer_address_edit',	30),
('customer_register_address',	30),
('adminhtml_customer_address',	31),
('customer_address_edit',	31),
('customer_register_address',	31),
('adminhtml_customer_address',	32),
('customer_address_edit',	32),
('customer_register_address',	32),
('adminhtml_customer',	35),
('adminhtml_customer_address',	36),
('customer_address_edit',	36),
('customer_register_address',	36);

