Table Create Table
pstore_product CREATE TABLE `pstore_product` (
`id_product` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_supplier` int(10) unsigned DEFAULT NULL,
`id_manufacturer` int(10) unsigned DEFAULT NULL,
`id_tax` int(10) unsigned NOT NULL,
`id_category_default` int(10) unsigned DEFAULT NULL,
`id_color_default` int(10) unsigned DEFAULT NULL,
`on_sale` tinyint(1) unsigned NOT NULL DEFAULT '0',
`ean13` varchar(13) DEFAULT NULL,
`ecotax` decimal(17,2) NOT NULL DEFAULT '0.00',
`quantity` int(10) unsigned NOT NULL DEFAULT '0',
`price` decimal(20,6) NOT NULL DEFAULT '0.000000',
`wholesale_price` decimal(20,6) NOT NULL DEFAULT '0.000000',
`reduction_price` decimal(17,2) DEFAULT NULL,
`reduction_percent` float DEFAULT NULL,
`reduction_from` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`reduction_to` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`reference` varchar(32) DEFAULT NULL,
`supplier_reference` varchar(32) DEFAULT NULL,
`location` varchar(64) DEFAULT NULL,
`weight` float NOT NULL DEFAULT '0',
`out_of_stock` int(10) unsigned NOT NULL DEFAULT '2',
`quantity_discount` tinyint(1) DEFAULT '0',
`customizable` tinyint(2) NOT NULL DEFAULT '0',
`uploadable_files` tinyint(4) NOT NULL DEFAULT '0',
`text_fields` tinyint(4) NOT NULL DEFAULT '0',
`active` tinyint(1) unsigned NOT NULL DEFAULT '0',
`indexed` tinyint(1) NOT NULL DEFAULT '0',
`date_add` datetime NOT NULL,
`date_upd` datetime NOT NULL,
PRIMARY KEY (`id_product`),
KEY `product_supplier` (`id_supplier`),
KEY `product_manufacturer` (`id_manufacturer`),
KEY `id_tax` (`id_tax`),
KEY `id_category_default` (`id_category_default`),
KEY `id_color_default` (`id_color_default`),
KEY `date_add` (`date_add`)
) ENGINE=MyISAM AUTO_INCREMENT=60 DEFAULT CHARSET=utf8
pstore_product_attribute CREATE TABLE `pstore_product_attribute` (
`id_product_attribute` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_product` int(10) unsigned NOT NULL,
`reference` varchar(32) DEFAULT NULL,
`supplier_reference` varchar(32) DEFAULT NULL,
`location` varchar(64) DEFAULT NULL,
`ean13` varchar(13) DEFAULT NULL,
`wholesale_price` decimal(20,6) NOT NULL DEFAULT '0.000000',
`price` decimal(17,2) NOT NULL DEFAULT '0.00',
`ecotax` decimal(17,2) NOT NULL DEFAULT '0.00',
`quantity` int(10) unsigned NOT NULL DEFAULT '0',
`weight` float NOT NULL DEFAULT '0',
`default_on` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id_product_attribute`),
KEY `product_attribute_product` (`id_product`),
KEY `reference` (`reference`),
KEY `supplier_reference` (`supplier_reference`),
KEY `product_default` (`id_product`,`default_on`),
KEY `id_product_id_product_attribute` (`id_product_attribute`,`id_product`)
) ENGINE=MyISAM AUTO_INCREMENT=44 DEFAULT CHARSET=utf8
pstore_product_attribute_combination CREATE TABLE `pstore_product_attribute_combination` (
`id_attribute` int(10) unsigned NOT NULL,
`id_product_attribute` int(10) unsigned NOT NULL,
PRIMARY KEY (`id_attribute`,`id_product_attribute`),
KEY `id_product_attribute` (`id_product_attribute`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
pstore_product_lang CREATE TABLE `pstore_product_lang` (
`id_product` int(10) unsigned NOT NULL,
`id_lang` int(10) unsigned NOT NULL,
`description` text,
`description_short` text,
`link_rewrite` varchar(128) NOT NULL,
`meta_description` varchar(255) DEFAULT NULL,
`meta_keywords` varchar(255) DEFAULT NULL,
`meta_title` varchar(128) DEFAULT NULL,
`name` varchar(128) NOT NULL,
`available_now` varchar(255) DEFAULT NULL,
`available_later` varchar(255) DEFAULT NULL,
UNIQUE KEY `product_lang_index` (`id_product`,`id_lang`),
KEY `id_lang` (`id_lang`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
\
pstore_product_attribute_image CREATE TABLE `pstore_product_attribute_image` (
`id_product_attribute` int(10) unsigned NOT NULL,
`id_image` int(10) unsigned NOT NULL,
PRIMARY KEY (`id_product_attribute`,`id_image`),
KEY `id_image` (`id_image`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
pstore_image CREATE TABLE `pstore_image` (
`id_image` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_product` int(10) unsigned NOT NULL,
`position` tinyint(2) unsigned NOT NULL DEFAULT '0',
`cover` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id_image`),
KEY `image_product` (`id_product`),
KEY `product_position` (`id_product`,`position`),
KEY `id_product_cover` (`id_product`,`cover`)
) ENGINE=MyISAM AUTO_INCREMENT=343 DEFAULT CHARSET=utf8