2017-06-13 16:49:08 +02:00
|
|
|
CREATE TABLE `ps_configurator_opt` (
|
|
|
|
`id_configurator_opt` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_configurator_opt_group` int(11) NOT NULL,
|
|
|
|
`price` decimal(20,6) NOT NULL DEFAULT '0.000000',
|
|
|
|
`position` int(2) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_configurator_opt`),
|
|
|
|
KEY `id_configurator_opt_values` (`id_configurator_opt`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Configurator options values';
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_configurator_opt_group` (
|
|
|
|
`id_configurator_opt_group` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`type` varchar(20) NOT NULL,
|
|
|
|
`reference` varchar(255) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_configurator_opt_group`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Configurator product options';
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_configurator_opt_group_lang` (
|
|
|
|
`id_configurator_opt_group` int(11) NOT NULL,
|
|
|
|
`id_lang` int(11) NOT NULL,
|
|
|
|
`name` varchar(255) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_configurator_opt_group`,`id_lang`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_configurator_opt_lang` (
|
|
|
|
`id_configurator_opt` int(11) NOT NULL,
|
|
|
|
`id_lang` int(11) NOT NULL,
|
|
|
|
`name` varchar(255) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_configurator_opt`,`id_lang`)
|
2017-06-15 11:34:32 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2017-06-13 16:49:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_configurator_storage` (
|
|
|
|
`id_configurator` int(11) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`id_product` int(11) NOT NULL,
|
|
|
|
`id_configurator_opt_group` int(11) NOT NULL,
|
|
|
|
`id_configurator_opt` int(11) NOT NULL,
|
|
|
|
`opt_value` varchar(255) NOT NULL DEFAULT '',
|
|
|
|
`price` decimal(20,6) NOT NULL,
|
|
|
|
KEY `id_configurator` (`id_configurator`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_product_configurator_opt_group` (
|
|
|
|
`id_product_configurator_opt_group` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_product` int(11) NOT NULL,
|
|
|
|
`id_configurator_opt_group` int(11) NOT NULL,
|
|
|
|
`required` tinyint(1) NOT NULL,
|
|
|
|
`position` tinyint(1) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_product_configurator_opt_group`),
|
|
|
|
UNIQUE KEY `id_product` (`id_product`,`id_configurator_opt_group`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `ps_product_configurator_opt_impact` (
|
|
|
|
`id_product_configurator_opt_impact` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_product` int(11) NOT NULL,
|
|
|
|
`id_product_configurator_opt_group` int(11) NOT NULL,
|
|
|
|
`id_configurator_opt` int(11) NOT NULL,
|
|
|
|
`price` decimal(20,6) NOT NULL,
|
|
|
|
PRIMARY KEY (`id_product_configurator_opt_impact`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|