Code:
--
-- Table structure for table `products_attributes`
--
DROP TABLE IF EXISTS `products_attributes`;
CREATE TABLE IF NOT EXISTS `products_attributes` (
`products_attributes_id` int(11) NOT NULL AUTO_INCREMENT,
`products_id` int(11) NOT NULL DEFAULT '0',
`options_id` int(11) NOT NULL DEFAULT '0',
`options_values_id` int(11) NOT NULL DEFAULT '0',
`options_values_price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`price_prefix` char(1) COLLATE utf8_bin NOT NULL DEFAULT '',
`products_options_sort_order` int(11) NOT NULL DEFAULT '0',
`product_attribute_is_free` tinyint(1) NOT NULL DEFAULT '0',
`products_attributes_weight` float NOT NULL DEFAULT '0',
`products_attributes_weight_prefix` char(1) COLLATE utf8_bin NOT NULL DEFAULT '',
`attributes_display_only` tinyint(1) NOT NULL DEFAULT '0',
`attributes_default` tinyint(1) NOT NULL DEFAULT '0',
`attributes_discounted` tinyint(1) NOT NULL DEFAULT '1',
`attributes_image` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`attributes_price_base_included` tinyint(1) NOT NULL DEFAULT '1',
`attributes_price_onetime` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_factor` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_factor_offset` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_factor_onetime` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_factor_onetime_offset` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_qty_prices` text COLLATE utf8_bin,
`attributes_qty_prices_onetime` text COLLATE utf8_bin,
`attributes_price_words` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_words_free` int(4) NOT NULL DEFAULT '0',
`attributes_price_letters` decimal(15,4) NOT NULL DEFAULT '0.0000',
`attributes_price_letters_free` int(4) NOT NULL DEFAULT '0',
`attributes_required` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`products_attributes_id`),
KEY `idx_id_options_id_values_zen` (`products_id`,`options_id`,`options_values_id`),
KEY `idx_opt_sort_order_zen` (`products_options_sort_order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `products_options`
--
DROP TABLE IF EXISTS `products_options`;
CREATE TABLE IF NOT EXISTS `products_options` (
`products_options_id` int(11) NOT NULL DEFAULT '0',
`language_id` int(11) NOT NULL DEFAULT '1',
`products_options_name` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`products_options_sort_order` int(11) NOT NULL DEFAULT '0',
`products_options_type` int(5) NOT NULL DEFAULT '0',
`products_options_length` smallint(2) NOT NULL DEFAULT '32',
`products_options_comment` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`products_options_size` smallint(2) NOT NULL DEFAULT '32',
`products_options_images_per_row` int(2) DEFAULT '5',
`products_options_images_style` int(1) DEFAULT '0',
`products_options_rows` smallint(2) NOT NULL DEFAULT '1',
PRIMARY KEY (`products_options_id`,`language_id`),
KEY `idx_lang_id_zen` (`language_id`),
KEY `idx_products_options_sort_order_zen` (`products_options_sort_order`),
KEY `idx_products_options_name_zen` (`products_options_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Dumping data for table `products_options`
--
INSERT INTO `products_options` (`products_options_id`, `language_id`, `products_options_name`, `products_options_sort_order`, `products_options_type`, `products_options_length`, `products_options_comment`, `products_options_size`, `products_options_images_per_row`, `products_options_images_style`, `products_options_rows`) VALUES
(1, 1, 'Colour', 10, 1, 32, NULL, 32, 0, 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `products_options_types`
--
DROP TABLE IF EXISTS `products_options_types`;
CREATE TABLE IF NOT EXISTS `products_options_types` (
`products_options_types_id` int(11) NOT NULL DEFAULT '0',
`products_options_types_name` varchar(32) COLLATE latin1_general_ci DEFAULT NULL,
PRIMARY KEY (`products_options_types_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='Track products_options_types';
--
-- Dumping data for table `products_options_types`
--
INSERT INTO `products_options_types` (`products_options_types_id`, `products_options_types_name`) VALUES
(0, 'Dropdown'),
(1, 'Text'),
(2, 'Radio'),
(3, 'Checkbox'),
(4, 'File'),
(5, 'Read Only');
-- --------------------------------------------------------
--
-- Table structure for table `products_options_values`
--
DROP TABLE IF EXISTS `products_options_values`;
CREATE TABLE IF NOT EXISTS `products_options_values` (
`products_options_values_id` int(11) NOT NULL DEFAULT '0',
`language_id` int(11) NOT NULL DEFAULT '1',
`products_options_values_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`products_options_values_sort_order` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`products_options_values_id`,`language_id`),
KEY `idx_products_options_values_name_zen` (`products_options_values_name`),
KEY `idx_products_options_values_sort_order_zen` (`products_options_values_sort_order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `products_options_values_to_products_options`
--
DROP TABLE IF EXISTS `products_options_values_to_products_options`;
CREATE TABLE IF NOT EXISTS `products_options_values_to_products_options` (
`products_options_values_to_products_options_id` int(11) NOT NULL AUTO_INCREMENT,
`products_options_id` int(11) NOT NULL DEFAULT '0',
`products_options_values_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`products_options_values_to_products_options_id`),
KEY `idx_products_options_id_zen` (`products_options_id`),
KEY `idx_products_options_values_id_zen` (`products_options_values_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=2 ;
--
-- Dumping data for table `products_options_values_to_products_options`
--
INSERT INTO `products_options_values_to_products_options` (`products_options_values_to_products_options_id`, `products_options_id`, `products_options_values_id`) VALUES
(1, 1, 0);
I hope anyone can give me some advise.