-- phpMyAdmin SQL Dump -- version 3.0.1.1 -- http://www.phpmyadmin.net -- -- Host: prod0.aksw.org -- Generation Time: Feb 23, 2010 at 07:36 PM -- Server version: 5.0.32 -- PHP Version: 5.2.0-8+etch16 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `oscommerce` -- -- -------------------------------------------------------- -- -- Table structure for table `address_book` -- CREATE TABLE IF NOT EXISTS `address_book` ( `address_book_id` int(11) NOT NULL auto_increment, `customers_id` int(11) NOT NULL, `entry_gender` char(1) NOT NULL, `entry_company` varchar(32) default NULL, `entry_firstname` varchar(32) NOT NULL, `entry_lastname` varchar(32) NOT NULL, `entry_street_address` varchar(64) NOT NULL, `entry_suburb` varchar(32) default NULL, `entry_postcode` varchar(10) NOT NULL, `entry_city` varchar(32) NOT NULL, `entry_state` varchar(32) default NULL, `entry_country_id` int(11) NOT NULL default '0', `entry_zone_id` int(11) NOT NULL default '0', PRIMARY KEY (`address_book_id`), KEY `idx_address_book_customers_id` (`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `address_format` -- CREATE TABLE IF NOT EXISTS `address_format` ( `address_format_id` int(11) NOT NULL auto_increment, `address_format` varchar(128) NOT NULL, `address_summary` varchar(48) NOT NULL, PRIMARY KEY (`address_format_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -------------------------------------------------------- -- -- Table structure for table `administrators` -- CREATE TABLE IF NOT EXISTS `administrators` ( `id` int(11) NOT NULL auto_increment, `user_name` varchar(32) character set latin1 collate latin1_bin NOT NULL, `user_password` varchar(40) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -------------------------------------------------------- -- -- Table structure for table `banners` -- CREATE TABLE IF NOT EXISTS `banners` ( `banners_id` int(11) NOT NULL auto_increment, `banners_title` varchar(64) NOT NULL, `banners_url` varchar(255) NOT NULL, `banners_image` varchar(64) NOT NULL, `banners_group` varchar(10) NOT NULL, `banners_html_text` text, `expires_impressions` int(7) default '0', `expires_date` datetime default NULL, `date_scheduled` datetime default NULL, `date_added` datetime NOT NULL, `date_status_change` datetime default NULL, `status` int(1) NOT NULL default '1', PRIMARY KEY (`banners_id`), KEY `idx_banners_group` (`banners_group`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `banners_history` -- CREATE TABLE IF NOT EXISTS `banners_history` ( `banners_history_id` int(11) NOT NULL auto_increment, `banners_id` int(11) NOT NULL, `banners_shown` int(5) NOT NULL default '0', `banners_clicked` int(5) NOT NULL default '0', `banners_history_date` datetime NOT NULL, PRIMARY KEY (`banners_history_id`), KEY `idx_banners_history_banners_id` (`banners_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=580 ; -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE IF NOT EXISTS `categories` ( `categories_id` int(11) NOT NULL auto_increment, `categories_image` varchar(64) default NULL, `parent_id` int(11) NOT NULL default '0', `sort_order` int(3) default NULL, `date_added` datetime default NULL, `last_modified` datetime default NULL, PRIMARY KEY (`categories_id`), KEY `idx_categories_parent_id` (`parent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; -- -------------------------------------------------------- -- -- Table structure for table `categories_description` -- CREATE TABLE IF NOT EXISTS `categories_description` ( `categories_id` int(11) NOT NULL default '0', `language_id` int(11) NOT NULL default '1', `categories_name` varchar(32) NOT NULL, PRIMARY KEY (`categories_id`,`language_id`), KEY `idx_categories_name` (`categories_name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `configuration` -- CREATE TABLE IF NOT EXISTS `configuration` ( `configuration_id` int(11) NOT NULL auto_increment, `configuration_title` varchar(255) NOT NULL, `configuration_key` varchar(255) NOT NULL, `configuration_value` varchar(255) NOT NULL, `configuration_description` varchar(255) NOT NULL, `configuration_group_id` int(11) NOT NULL, `sort_order` int(5) default NULL, `last_modified` datetime default NULL, `date_added` datetime NOT NULL, `use_function` varchar(255) default NULL, `set_function` varchar(255) default NULL, PRIMARY KEY (`configuration_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=144 ; -- -------------------------------------------------------- -- -- Table structure for table `configuration_group` -- CREATE TABLE IF NOT EXISTS `configuration_group` ( `configuration_group_id` int(11) NOT NULL auto_increment, `configuration_group_title` varchar(64) NOT NULL, `configuration_group_description` varchar(255) NOT NULL, `sort_order` int(5) default NULL, `visible` int(1) default '1', PRIMARY KEY (`configuration_group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ; -- -------------------------------------------------------- -- -- Table structure for table `counter` -- CREATE TABLE IF NOT EXISTS `counter` ( `startdate` char(8) default NULL, `counter` int(12) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `counter_history` -- CREATE TABLE IF NOT EXISTS `counter_history` ( `month` char(8) default NULL, `counter` int(12) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `countries` -- CREATE TABLE IF NOT EXISTS `countries` ( `countries_id` int(11) NOT NULL auto_increment, `countries_name` varchar(64) NOT NULL, `countries_iso_code_2` char(2) NOT NULL, `countries_iso_code_3` char(3) NOT NULL, `address_format_id` int(11) NOT NULL, PRIMARY KEY (`countries_id`), KEY `IDX_COUNTRIES_NAME` (`countries_name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=240 ; -- -------------------------------------------------------- -- -- Table structure for table `currencies` -- CREATE TABLE IF NOT EXISTS `currencies` ( `currencies_id` int(11) NOT NULL auto_increment, `title` varchar(32) NOT NULL, `code` char(3) NOT NULL, `symbol_left` varchar(12) default NULL, `symbol_right` varchar(12) default NULL, `decimal_point` char(1) default NULL, `thousands_point` char(1) default NULL, `decimal_places` char(1) default NULL, `value` float(13,8) default NULL, `last_updated` datetime default NULL, PRIMARY KEY (`currencies_id`), KEY `idx_currencies_code` (`code`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE IF NOT EXISTS `customers` ( `customers_id` int(11) NOT NULL auto_increment, `customers_gender` char(1) NOT NULL, `customers_firstname` varchar(32) NOT NULL, `customers_lastname` varchar(32) NOT NULL, `customers_dob` datetime NOT NULL default '0000-00-00 00:00:00', `customers_email_address` varchar(96) NOT NULL, `customers_default_address_id` int(11) default NULL, `customers_telephone` varchar(32) NOT NULL, `customers_fax` varchar(32) default NULL, `customers_password` varchar(40) NOT NULL, `customers_newsletter` char(1) default NULL, PRIMARY KEY (`customers_id`), KEY `idx_customers_email_address` (`customers_email_address`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `customers_basket` -- CREATE TABLE IF NOT EXISTS `customers_basket` ( `customers_basket_id` int(11) NOT NULL auto_increment, `customers_id` int(11) NOT NULL, `products_id` tinytext NOT NULL, `customers_basket_quantity` int(2) NOT NULL, `final_price` decimal(15,4) default NULL, `customers_basket_date_added` char(8) default NULL, PRIMARY KEY (`customers_basket_id`), KEY `idx_customers_basket_customers_id` (`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `customers_basket_attributes` -- CREATE TABLE IF NOT EXISTS `customers_basket_attributes` ( `customers_basket_attributes_id` int(11) NOT NULL auto_increment, `customers_id` int(11) NOT NULL, `products_id` tinytext NOT NULL, `products_options_id` int(11) NOT NULL, `products_options_value_id` int(11) NOT NULL, PRIMARY KEY (`customers_basket_attributes_id`), KEY `idx_customers_basket_att_customers_id` (`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `customers_info` -- CREATE TABLE IF NOT EXISTS `customers_info` ( `customers_info_id` int(11) NOT NULL, `customers_info_date_of_last_logon` datetime default NULL, `customers_info_number_of_logons` int(5) default NULL, `customers_info_date_account_created` datetime default NULL, `customers_info_date_account_last_modified` datetime default NULL, `global_product_notifications` int(1) default '0', PRIMARY KEY (`customers_info_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `geo_zones` -- CREATE TABLE IF NOT EXISTS `geo_zones` ( `geo_zone_id` int(11) NOT NULL auto_increment, `geo_zone_name` varchar(32) NOT NULL, `geo_zone_description` varchar(255) NOT NULL, `last_modified` datetime default NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`geo_zone_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `languages` -- CREATE TABLE IF NOT EXISTS `languages` ( `languages_id` int(11) NOT NULL auto_increment, `name` varchar(32) NOT NULL, `code` char(2) NOT NULL, `image` varchar(64) default NULL, `directory` varchar(32) default NULL, `sort_order` int(3) default NULL, PRIMARY KEY (`languages_id`), KEY `IDX_LANGUAGES_NAME` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -------------------------------------------------------- -- -- Table structure for table `manufacturers` -- CREATE TABLE IF NOT EXISTS `manufacturers` ( `manufacturers_id` int(11) NOT NULL auto_increment, `manufacturers_name` varchar(32) NOT NULL, `manufacturers_image` varchar(64) default NULL, `date_added` datetime default NULL, `last_modified` datetime default NULL, PRIMARY KEY (`manufacturers_id`), KEY `IDX_MANUFACTURERS_NAME` (`manufacturers_name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -------------------------------------------------------- -- -- Table structure for table `manufacturers_info` -- CREATE TABLE IF NOT EXISTS `manufacturers_info` ( `manufacturers_id` int(11) NOT NULL, `languages_id` int(11) NOT NULL, `manufacturers_url` varchar(255) NOT NULL, `url_clicked` int(5) NOT NULL default '0', `date_last_click` datetime default NULL, PRIMARY KEY (`manufacturers_id`,`languages_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `newsletters` -- CREATE TABLE IF NOT EXISTS `newsletters` ( `newsletters_id` int(11) NOT NULL auto_increment, `title` varchar(255) NOT NULL, `content` text NOT NULL, `module` varchar(255) NOT NULL, `date_added` datetime NOT NULL, `date_sent` datetime default NULL, `status` int(1) default NULL, `locked` int(1) default '0', PRIMARY KEY (`newsletters_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE IF NOT EXISTS `orders` ( `orders_id` int(11) NOT NULL auto_increment, `customers_id` int(11) NOT NULL, `customers_name` varchar(64) NOT NULL, `customers_company` varchar(32) default NULL, `customers_street_address` varchar(64) NOT NULL, `customers_suburb` varchar(32) default NULL, `customers_city` varchar(32) NOT NULL, `customers_postcode` varchar(10) NOT NULL, `customers_state` varchar(32) default NULL, `customers_country` varchar(32) NOT NULL, `customers_telephone` varchar(32) NOT NULL, `customers_email_address` varchar(96) NOT NULL, `customers_address_format_id` int(5) NOT NULL, `delivery_name` varchar(64) NOT NULL, `delivery_company` varchar(32) default NULL, `delivery_street_address` varchar(64) NOT NULL, `delivery_suburb` varchar(32) default NULL, `delivery_city` varchar(32) NOT NULL, `delivery_postcode` varchar(10) NOT NULL, `delivery_state` varchar(32) default NULL, `delivery_country` varchar(32) NOT NULL, `delivery_address_format_id` int(5) NOT NULL, `billing_name` varchar(64) NOT NULL, `billing_company` varchar(32) default NULL, `billing_street_address` varchar(64) NOT NULL, `billing_suburb` varchar(32) default NULL, `billing_city` varchar(32) NOT NULL, `billing_postcode` varchar(10) NOT NULL, `billing_state` varchar(32) default NULL, `billing_country` varchar(32) NOT NULL, `billing_address_format_id` int(5) NOT NULL, `payment_method` varchar(255) NOT NULL, `cc_type` varchar(20) default NULL, `cc_owner` varchar(64) default NULL, `cc_number` varchar(32) default NULL, `cc_expires` varchar(4) default NULL, `last_modified` datetime default NULL, `date_purchased` datetime default NULL, `orders_status` int(5) NOT NULL, `orders_date_finished` datetime default NULL, `currency` char(3) default NULL, `currency_value` decimal(14,6) default NULL, PRIMARY KEY (`orders_id`), KEY `idx_orders_customers_id` (`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders_products` -- CREATE TABLE IF NOT EXISTS `orders_products` ( `orders_products_id` int(11) NOT NULL auto_increment, `orders_id` int(11) NOT NULL, `products_id` int(11) NOT NULL, `products_model` varchar(12) default NULL, `products_name` varchar(64) NOT NULL, `products_price` decimal(15,4) NOT NULL, `final_price` decimal(15,4) NOT NULL, `products_tax` decimal(7,4) NOT NULL, `products_quantity` int(2) NOT NULL, PRIMARY KEY (`orders_products_id`), KEY `idx_orders_products_orders_id` (`orders_id`), KEY `idx_orders_products_products_id` (`products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders_products_attributes` -- CREATE TABLE IF NOT EXISTS `orders_products_attributes` ( `orders_products_attributes_id` int(11) NOT NULL auto_increment, `orders_id` int(11) NOT NULL, `orders_products_id` int(11) NOT NULL, `products_options` varchar(32) NOT NULL, `products_options_values` varchar(32) NOT NULL, `options_values_price` decimal(15,4) NOT NULL, `price_prefix` char(1) NOT NULL, PRIMARY KEY (`orders_products_attributes_id`), KEY `idx_orders_products_att_orders_id` (`orders_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders_products_download` -- CREATE TABLE IF NOT EXISTS `orders_products_download` ( `orders_products_download_id` int(11) NOT NULL auto_increment, `orders_id` int(11) NOT NULL default '0', `orders_products_id` int(11) NOT NULL default '0', `orders_products_filename` varchar(255) NOT NULL default '', `download_maxdays` int(2) NOT NULL default '0', `download_count` int(2) NOT NULL default '0', PRIMARY KEY (`orders_products_download_id`), KEY `idx_orders_products_download_orders_id` (`orders_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders_status` -- CREATE TABLE IF NOT EXISTS `orders_status` ( `orders_status_id` int(11) NOT NULL default '0', `language_id` int(11) NOT NULL default '1', `orders_status_name` varchar(32) NOT NULL, `public_flag` int(11) default '1', `downloads_flag` int(11) default '0', PRIMARY KEY (`orders_status_id`,`language_id`), KEY `idx_orders_status_name` (`orders_status_name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `orders_status_history` -- CREATE TABLE IF NOT EXISTS `orders_status_history` ( `orders_status_history_id` int(11) NOT NULL auto_increment, `orders_id` int(11) NOT NULL, `orders_status_id` int(5) NOT NULL, `date_added` datetime NOT NULL, `customer_notified` int(1) default '0', `comments` text, PRIMARY KEY (`orders_status_history_id`), KEY `idx_orders_status_history_orders_id` (`orders_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `orders_total` -- CREATE TABLE IF NOT EXISTS `orders_total` ( `orders_total_id` int(10) unsigned NOT NULL auto_increment, `orders_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `text` varchar(255) NOT NULL, `value` decimal(15,4) NOT NULL, `class` varchar(32) NOT NULL, `sort_order` int(11) NOT NULL, PRIMARY KEY (`orders_total_id`), KEY `idx_orders_total_orders_id` (`orders_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE IF NOT EXISTS `products` ( `products_id` int(11) NOT NULL auto_increment, `products_quantity` int(4) NOT NULL, `products_model` varchar(12) default NULL, `products_image` varchar(64) default NULL, `products_price` decimal(15,4) NOT NULL, `products_date_added` datetime NOT NULL, `products_last_modified` datetime default NULL, `products_date_available` datetime default NULL, `products_weight` decimal(5,2) NOT NULL, `products_status` tinyint(1) NOT NULL, `products_tax_class_id` int(11) NOT NULL, `manufacturers_id` int(11) default NULL, `products_ordered` int(11) NOT NULL default '0', PRIMARY KEY (`products_id`), KEY `idx_products_model` (`products_model`), KEY `idx_products_date_added` (`products_date_added`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; -- -------------------------------------------------------- -- -- Table structure for table `products_attributes` -- CREATE TABLE IF NOT EXISTS `products_attributes` ( `products_attributes_id` int(11) NOT NULL auto_increment, `products_id` int(11) NOT NULL, `options_id` int(11) NOT NULL, `options_values_id` int(11) NOT NULL, `options_values_price` decimal(15,4) NOT NULL, `price_prefix` char(1) NOT NULL, PRIMARY KEY (`products_attributes_id`), KEY `idx_products_attributes_products_id` (`products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; -- -------------------------------------------------------- -- -- Table structure for table `products_attributes_download` -- CREATE TABLE IF NOT EXISTS `products_attributes_download` ( `products_attributes_id` int(11) NOT NULL, `products_attributes_filename` varchar(255) NOT NULL default '', `products_attributes_maxdays` int(2) default '0', `products_attributes_maxcount` int(2) default '0', PRIMARY KEY (`products_attributes_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `products_description` -- CREATE TABLE IF NOT EXISTS `products_description` ( `products_id` int(11) NOT NULL auto_increment, `language_id` int(11) NOT NULL default '1', `products_name` varchar(64) NOT NULL default '', `products_description` text, `products_url` varchar(255) default NULL, `products_viewed` int(5) default '0', PRIMARY KEY (`products_id`,`language_id`), KEY `products_name` (`products_name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; -- -------------------------------------------------------- -- -- Table structure for table `products_notifications` -- CREATE TABLE IF NOT EXISTS `products_notifications` ( `products_id` int(11) NOT NULL, `customers_id` int(11) NOT NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`products_id`,`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `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) NOT NULL default '', PRIMARY KEY (`products_options_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `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) NOT NULL default '', PRIMARY KEY (`products_options_values_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `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, `products_options_values_id` int(11) NOT NULL, PRIMARY KEY (`products_options_values_to_products_options_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ; -- -------------------------------------------------------- -- -- Table structure for table `products_to_categories` -- CREATE TABLE IF NOT EXISTS `products_to_categories` ( `products_id` int(11) NOT NULL, `categories_id` int(11) NOT NULL, PRIMARY KEY (`products_id`,`categories_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `reviews` -- CREATE TABLE IF NOT EXISTS `reviews` ( `reviews_id` int(11) NOT NULL auto_increment, `products_id` int(11) NOT NULL, `customers_id` int(11) default NULL, `customers_name` varchar(64) NOT NULL, `reviews_rating` int(1) default NULL, `date_added` datetime default NULL, `last_modified` datetime default NULL, `reviews_read` int(5) NOT NULL default '0', PRIMARY KEY (`reviews_id`), KEY `idx_reviews_products_id` (`products_id`), KEY `idx_reviews_customers_id` (`customers_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `reviews_description` -- CREATE TABLE IF NOT EXISTS `reviews_description` ( `reviews_id` int(11) NOT NULL, `languages_id` int(11) NOT NULL, `reviews_text` text NOT NULL, PRIMARY KEY (`reviews_id`,`languages_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE IF NOT EXISTS `sessions` ( `sesskey` varchar(32) NOT NULL, `expiry` int(11) unsigned NOT NULL, `value` text NOT NULL, PRIMARY KEY (`sesskey`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `specials` -- CREATE TABLE IF NOT EXISTS `specials` ( `specials_id` int(11) NOT NULL auto_increment, `products_id` int(11) NOT NULL, `specials_new_products_price` decimal(15,4) NOT NULL, `specials_date_added` datetime default NULL, `specials_last_modified` datetime default NULL, `expires_date` datetime default NULL, `date_status_change` datetime default NULL, `status` int(1) NOT NULL default '1', PRIMARY KEY (`specials_id`), KEY `idx_specials_products_id` (`products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -------------------------------------------------------- -- -- Table structure for table `tax_class` -- CREATE TABLE IF NOT EXISTS `tax_class` ( `tax_class_id` int(11) NOT NULL auto_increment, `tax_class_title` varchar(32) NOT NULL, `tax_class_description` varchar(255) NOT NULL, `last_modified` datetime default NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`tax_class_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `tax_rates` -- CREATE TABLE IF NOT EXISTS `tax_rates` ( `tax_rates_id` int(11) NOT NULL auto_increment, `tax_zone_id` int(11) NOT NULL, `tax_class_id` int(11) NOT NULL, `tax_priority` int(5) default '1', `tax_rate` decimal(7,4) NOT NULL, `tax_description` varchar(255) NOT NULL, `last_modified` datetime default NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`tax_rates_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `whos_online` -- CREATE TABLE IF NOT EXISTS `whos_online` ( `customer_id` int(11) default NULL, `full_name` varchar(64) NOT NULL, `session_id` varchar(128) NOT NULL, `ip_address` varchar(15) NOT NULL, `time_entry` varchar(14) NOT NULL, `time_last_click` varchar(14) NOT NULL, `last_page_url` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `zones` -- CREATE TABLE IF NOT EXISTS `zones` ( `zone_id` int(11) NOT NULL auto_increment, `zone_country_id` int(11) NOT NULL, `zone_code` varchar(32) NOT NULL, `zone_name` varchar(32) NOT NULL, PRIMARY KEY (`zone_id`), KEY `idx_zones_country_id` (`zone_country_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=182 ; -- -------------------------------------------------------- -- -- Table structure for table `zones_to_geo_zones` -- CREATE TABLE IF NOT EXISTS `zones_to_geo_zones` ( `association_id` int(11) NOT NULL auto_increment, `zone_country_id` int(11) NOT NULL, `zone_id` int(11) default NULL, `geo_zone_id` int(11) default NULL, `last_modified` datetime default NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`association_id`), KEY `idx_zones_to_geo_zones_country_id` (`zone_country_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;