Sei sulla pagina 1di 59

/*

Navicat MySQL Data Transfer


Source
Source
Source
Source

Server
Server Version
Host
Database

:
:
:
:

127.0.0.1_3306
50620
127.0.0.1:3306
carro

Target Server Type


: MYSQL
Target Server Version : 50620
File Encoding
: 65001
Date: 2015-03-20 04:08:00
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------- Table structure for cscart_access_restriction
-- ---------------------------DROP TABLE IF EXISTS `cscart_access_restriction`;
CREATE TABLE `cscart_access_restriction` (
`item_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`value` varchar(66) NOT NULL DEFAULT '',
`ip_from` int(11) unsigned NOT NULL DEFAULT '0',
`ip_to` int(11) unsigned NOT NULL DEFAULT '0',
`type` char(3) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`expires` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_access_restriction_block
-- ---------------------------DROP TABLE IF EXISTS `cscart_access_restriction_block`;
CREATE TABLE `cscart_access_restriction_block` (
`ip` int(11) unsigned NOT NULL DEFAULT '0',
`tries` smallint(5) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`expires` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for
cscart_access_restriction_reason_descriptions
-- ---------------------------DROP TABLE IF EXISTS
`cscart_access_restriction_reason_descriptions`;

CREATE TABLE `cscart_access_restriction_reason_descriptions` (


`item_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`type` char(3) NOT NULL DEFAULT '',
`reason` mediumtext NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`item_id`,`type`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_addons
-- ---------------------------DROP TABLE IF EXISTS `cscart_addons`;
CREATE TABLE `cscart_addons` (
`addon` varchar(32) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`version` varchar(16) NOT NULL DEFAULT '',
`priority` int(11) unsigned NOT NULL DEFAULT '0',
`dependencies` varchar(255) NOT NULL DEFAULT '',
`conflicts` varchar(255) NOT NULL DEFAULT '',
`separate` tinyint(1) NOT NULL,
`unmanaged` tinyint(1) NOT NULL,
`has_icon` tinyint(1) NOT NULL,
PRIMARY KEY (`addon`),
KEY `priority` (`priority`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_addon_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_addon_descriptions`;
CREATE TABLE `cscart_addon_descriptions` (
`addon` varchar(32) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`addon`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_also_bought_products
-- ---------------------------DROP TABLE IF EXISTS `cscart_also_bought_products`;
CREATE TABLE `cscart_also_bought_products` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`related_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`product_id`,`related_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_attachments
-- ----------------------------

DROP TABLE IF EXISTS `cscart_attachments`;


CREATE TABLE `cscart_attachments` (
`attachment_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object_type` varchar(30) NOT NULL DEFAULT '',
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
`position` int(11) NOT NULL DEFAULT '0',
`filename` varchar(100) NOT NULL DEFAULT '',
`filesize` int(11) unsigned NOT NULL DEFAULT '0',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`attachment_id`),
KEY `object_type` (`object_type`,`object_id`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_attachment_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_attachment_descriptions`;
CREATE TABLE `cscart_attachment_descriptions` (
`attachment_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`attachment_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_banners
-- ---------------------------DROP TABLE IF EXISTS `cscart_banners`;
CREATE TABLE `cscart_banners` (
`banner_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`type` char(1) NOT NULL DEFAULT 'G',
`target` char(1) NOT NULL DEFAULT 'B',
`localization` varchar(255) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`banner_id`),
KEY `localization` (`localization`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_banner_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_banner_descriptions`;
CREATE TABLE `cscart_banner_descriptions` (
`banner_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`banner` varchar(255) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',

`description` mediumtext NOT NULL,


`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`banner_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_banner_images
-- ---------------------------DROP TABLE IF EXISTS `cscart_banner_images`;
CREATE TABLE `cscart_banner_images` (
`banner_image_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`banner_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`banner_image_id`),
UNIQUE KEY `banner` (`banner_id`,`lang_code`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_blocks
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_blocks`;
CREATE TABLE `cscart_bm_blocks` (
`block_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(64) NOT NULL DEFAULT '',
`properties` text NOT NULL,
`company_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`block_id`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_blocks_content
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_blocks_content`;
CREATE TABLE `cscart_bm_blocks_content` (
`snapping_id` int(11) unsigned NOT NULL,
`object_id` int(11) unsigned NOT NULL DEFAULT '0',
`object_type` varchar(64) NOT NULL DEFAULT '',
`block_id` int(11) unsigned NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
`content` text NOT NULL,
PRIMARY KEY
(`block_id`,`snapping_id`,`lang_code`,`object_id`,`object_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_blocks_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_blocks_descriptions`;
CREATE TABLE `cscart_bm_blocks_descriptions` (
`block_id` int(11) unsigned NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL DEFAULT '',

PRIMARY KEY (`block_id`,`lang_code`)


) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_block_statuses
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_block_statuses`;
CREATE TABLE `cscart_bm_block_statuses` (
`snapping_id` int(11) NOT NULL,
`object_ids` text NOT NULL,
`object_type` varchar(32) NOT NULL,
UNIQUE KEY `snapping_id` (`snapping_id`,`object_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_containers
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_containers`;
CREATE TABLE `cscart_bm_containers` (
`container_id` mediumint(9) unsigned NOT NULL AUTO_INCREMENT,
`location_id` mediumint(9) unsigned NOT NULL,
`position` enum('TOP_PANEL','HEADER','CONTENT','FOOTER') NOT
NULL,
`width` tinyint(4) NOT NULL,
`user_class` varchar(128) NOT NULL DEFAULT '',
`status` varchar(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`container_id`)
) ENGINE=MyISAM AUTO_INCREMENT=117 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_grids
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_grids`;
CREATE TABLE `cscart_bm_grids` (
`grid_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`container_id` mediumint(9) unsigned NOT NULL,
`parent_id` int(11) unsigned NOT NULL DEFAULT '0',
`order` mediumint(9) unsigned NOT NULL DEFAULT '0',
`width` tinyint(4) unsigned NOT NULL DEFAULT '1',
`offset` tinyint(4) unsigned NOT NULL DEFAULT '0',
`user_class` varchar(128) NOT NULL DEFAULT '',
`omega` tinyint(1) unsigned NOT NULL DEFAULT '0',
`alpha` tinyint(1) unsigned NOT NULL DEFAULT '0',
`wrapper` varchar(128) NOT NULL DEFAULT '',
`content_align` enum('LEFT','RIGHT','FULL_WIDTH') NOT NULL
DEFAULT 'FULL_WIDTH',
`html_element` varchar(8) NOT NULL DEFAULT 'div',
`clear` tinyint(1) unsigned NOT NULL DEFAULT '0',
`status` varchar(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`grid_id`)
) ENGINE=MyISAM AUTO_INCREMENT=108 DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_bm_layouts


-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_layouts`;
CREATE TABLE `cscart_bm_layouts` (
`layout_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL DEFAULT '',
`is_default` tinyint(4) NOT NULL DEFAULT '0',
`width` tinyint(4) NOT NULL DEFAULT '16',
`layout_width` enum('fixed','fluid','full_width') NOT NULL
DEFAULT 'fixed',
`min_width` int(11) unsigned NOT NULL DEFAULT '760',
`max_width` int(11) unsigned NOT NULL DEFAULT '960',
`theme_name` varchar(64) NOT NULL DEFAULT '',
`style_id` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`layout_id`),
KEY `is_default` (`is_default`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_locations
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_locations`;
CREATE TABLE `cscart_bm_locations` (
`location_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`dispatch` varchar(64) NOT NULL,
`is_default` tinyint(1) NOT NULL,
`layout_id` int(11) unsigned DEFAULT NULL,
`object_ids` text NOT NULL,
`custom_html` text NOT NULL,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`location_id`)
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_locations_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_locations_descriptions`;
CREATE TABLE `cscart_bm_locations_descriptions` (
`location_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL,
`title` text NOT NULL,
`meta_description` text NOT NULL,
`meta_keywords` text NOT NULL,
PRIMARY KEY (`location_id`,`lang_code`)
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_bm_snapping
-- ---------------------------DROP TABLE IF EXISTS `cscart_bm_snapping`;

CREATE TABLE `cscart_bm_snapping` (


`snapping_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`block_id` int(11) unsigned NOT NULL,
`grid_id` int(11) unsigned NOT NULL,
`wrapper` varchar(128) NOT NULL DEFAULT '',
`user_class` varchar(128) NOT NULL DEFAULT '',
`order` mediumint(8) unsigned NOT NULL DEFAULT '0',
`status` varchar(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`snapping_id`)
) ENGINE=MyISAM AUTO_INCREMENT=105 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_buy_together
-- ---------------------------DROP TABLE IF EXISTS `cscart_buy_together`;
CREATE TABLE `cscart_buy_together` (
`chain_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`products` text,
`modifier` decimal(12,3) unsigned NOT NULL DEFAULT '0.000',
`modifier_type` varchar(20) NOT NULL DEFAULT 'by_fixed',
`date_from` int(11) unsigned NOT NULL DEFAULT '0',
`date_to` int(11) unsigned NOT NULL DEFAULT '0',
`display_in_promotions` char(1) NOT NULL DEFAULT 'Y',
`status` char(1) NOT NULL DEFAULT 'D',
PRIMARY KEY (`chain_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_buy_together_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_buy_together_descriptions`;
CREATE TABLE `cscart_buy_together_descriptions` (
`chain_id` int(10) unsigned NOT NULL,
`name` varchar(50) NOT NULL DEFAULT '',
`description` mediumtext,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`chain_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_call_requests
-- ---------------------------DROP TABLE IF EXISTS `cscart_call_requests`;
CREATE TABLE `cscart_call_requests` (
`request_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',

`status` enum('new','in_progress','completed','no_answer') NOT


NULL DEFAULT 'new',
`name` varchar(250) NOT NULL DEFAULT '',
`phone` varchar(128) NOT NULL DEFAULT '',
`time_from` varchar(32) NOT NULL DEFAULT '',
`time_to` varchar(32) NOT NULL DEFAULT '',
`notes` text NOT NULL,
`cart_products` text NOT NULL COMMENT 'Serialized data',
PRIMARY KEY (`request_id`),
KEY `user_id` (`company_id`,`user_id`),
KEY `timestamp` (`timestamp`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_categories
-- ---------------------------DROP TABLE IF EXISTS `cscart_categories`;
CREATE TABLE `cscart_categories` (
`category_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id_path` varchar(255) NOT NULL DEFAULT '',
`level` int(11) unsigned NOT NULL DEFAULT '1',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`product_count` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`is_op` char(1) NOT NULL DEFAULT 'N',
`localization` varchar(255) NOT NULL DEFAULT '',
`age_verification` char(1) NOT NULL DEFAULT 'N',
`age_limit` tinyint(4) NOT NULL DEFAULT '0',
`parent_age_verification` char(1) NOT NULL DEFAULT 'N',
`parent_age_limit` tinyint(4) NOT NULL DEFAULT '0',
`selected_layouts` text NOT NULL,
`default_layout` varchar(50) NOT NULL DEFAULT '',
`product_details_layout` varchar(50) NOT NULL DEFAULT '',
`product_columns` tinyint(3) unsigned NOT NULL DEFAULT '0',
`yml_market_category` varchar(255) NOT NULL,
`yml_disable_cat` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`category_id`),
KEY `c_status` (`usergroup_ids`,`status`,`parent_id`),
KEY `position` (`position`),
KEY `parent` (`parent_id`),
KEY `id_path` (`id_path`),
KEY `localization` (`localization`),
KEY `age_verification` (`age_verification`,`age_limit`),
KEY `parent_age_verification`
(`parent_age_verification`,`parent_age_limit`),
KEY `p_category_id` (`category_id`,`usergroup_ids`,`status`)
) ENGINE=MyISAM AUTO_INCREMENT=254 DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_category_descriptions


-- ---------------------------DROP TABLE IF EXISTS `cscart_category_descriptions`;
CREATE TABLE `cscart_category_descriptions` (
`category_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`category` varchar(255) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`meta_keywords` varchar(255) NOT NULL DEFAULT '',
`meta_description` varchar(255) NOT NULL DEFAULT '',
`page_title` varchar(255) NOT NULL DEFAULT '',
`age_warning_message` text NOT NULL,
PRIMARY KEY (`category_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_common_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_common_descriptions`;
CREATE TABLE `cscart_common_descriptions` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`object_type` varchar(32) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
`object` varchar(128) NOT NULL DEFAULT '',
`object_holder` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`object_id`,`lang_code`,`object_holder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_companies
-- ---------------------------DROP TABLE IF EXISTS `cscart_companies`;
CREATE TABLE `cscart_companies` (
`company_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`company` varchar(255) NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
`address` varchar(255) NOT NULL,
`city` varchar(64) NOT NULL,
`state` varchar(32) NOT NULL,
`country` char(2) NOT NULL,
`zipcode` varchar(16) NOT NULL,
`email` varchar(128) NOT NULL,
`phone` varchar(32) NOT NULL,
`fax` varchar(32) NOT NULL,
`url` varchar(128) NOT NULL,
`storefront` varchar(255) NOT NULL DEFAULT '',
`secure_storefront` varchar(255) NOT NULL DEFAULT '',
`entry_page` varchar(50) NOT NULL DEFAULT 'none',

`redirect_customer` char(1) NOT NULL DEFAULT 'Y',


`countries_list` text NOT NULL,
`timestamp` int(11) NOT NULL,
`categories` text NOT NULL,
`shippings` text NOT NULL,
`logos` text NOT NULL,
`commission` decimal(12,2) NOT NULL DEFAULT '0.00',
`commission_type` char(1) NOT NULL DEFAULT 'A',
`request_user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`request_account_name` varchar(255) NOT NULL DEFAULT '',
`request_account_data` text NOT NULL,
`pre_moderation` char(1) NOT NULL DEFAULT 'N',
`pre_moderation_edit` char(1) NOT NULL DEFAULT 'N',
`pre_moderation_edit_vendors` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_company_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_company_descriptions`;
CREATE TABLE `cscart_company_descriptions` (
`company_id` int(11) unsigned NOT NULL,
`lang_code` char(2) NOT NULL,
`company_description` text NOT NULL,
PRIMARY KEY (`company_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_countries
-- ---------------------------DROP TABLE IF EXISTS `cscart_countries`;
CREATE TABLE `cscart_countries` (
`code` char(2) NOT NULL DEFAULT '',
`code_A3` char(3) NOT NULL DEFAULT '',
`code_N3` char(3) NOT NULL DEFAULT '',
`region` char(2) NOT NULL DEFAULT '',
`lat` float NOT NULL DEFAULT '0',
`lon` float NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`code`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_country_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_country_descriptions`;
CREATE TABLE `cscart_country_descriptions` (
`code` char(2) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
`country` varchar(128) NOT NULL DEFAULT '',

PRIMARY KEY (`code`,`lang_code`)


) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_currencies
-- ---------------------------DROP TABLE IF EXISTS `cscart_currencies`;
CREATE TABLE `cscart_currencies` (
`currency_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`currency_code` varchar(10) NOT NULL DEFAULT '',
`after` char(1) NOT NULL DEFAULT 'N',
`symbol` varchar(30) NOT NULL DEFAULT '',
`coefficient` double(12,5) NOT NULL DEFAULT '1.00000',
`is_primary` char(1) NOT NULL DEFAULT 'N',
`position` smallint(5) NOT NULL,
`decimals_separator` varchar(6) NOT NULL DEFAULT '.',
`thousands_separator` varchar(6) NOT NULL DEFAULT ',',
`decimals` smallint(5) NOT NULL DEFAULT '2',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`currency_id`),
UNIQUE KEY `currency_code` (`currency_code`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_currency_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_currency_descriptions`;
CREATE TABLE `cscart_currency_descriptions` (
`currency_code` varchar(10) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`currency_code`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_data_feeds
-- ---------------------------DROP TABLE IF EXISTS `cscart_data_feeds`;
CREATE TABLE `cscart_data_feeds` (
`datafeed_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`categories` text NOT NULL,
`products` text NOT NULL,
`fields` text NOT NULL,
`export_location` char(1) NOT NULL DEFAULT 'L',
`export_by_cron` char(1) NOT NULL DEFAULT 'N',
`ftp_url` varchar(255) NOT NULL DEFAULT '',
`ftp_user` varchar(50) NOT NULL DEFAULT '',
`ftp_pass` varchar(50) NOT NULL DEFAULT '',
`file_name` varchar(50) NOT NULL DEFAULT '',
`enclosure` char(1) NOT NULL DEFAULT '',
`csv_delimiter` char(1) NOT NULL DEFAULT '',

`exclude_disabled_products` char(1) NOT NULL DEFAULT 'N',


`export_options` text NOT NULL,
`save_dir` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT '',
PRIMARY KEY (`datafeed_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_data_feed_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_data_feed_descriptions`;
CREATE TABLE `cscart_data_feed_descriptions` (
`datafeed_id` int(11) unsigned NOT NULL DEFAULT '0',
`datafeed_name` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`datafeed_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_destinations
-- ---------------------------DROP TABLE IF EXISTS `cscart_destinations`;
CREATE TABLE `cscart_destinations` (
`destination_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`localization` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`destination_id`),
KEY `localization` (`localization`),
KEY `c_status` (`destination_id`,`status`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_destination_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_destination_descriptions`;
CREATE TABLE `cscart_destination_descriptions` (
`destination_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`destination` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`destination_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_destination_elements
-- ---------------------------DROP TABLE IF EXISTS `cscart_destination_elements`;
CREATE TABLE `cscart_destination_elements` (
`element_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`destination_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element` varchar(36) NOT NULL DEFAULT '',
`element_type` char(1) NOT NULL DEFAULT 'S',
PRIMARY KEY (`element_id`),

KEY `c_status` (`destination_id`)


) ENGINE=MyISAM AUTO_INCREMENT=453 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_discussion
-- ---------------------------DROP TABLE IF EXISTS `cscart_discussion`;
CREATE TABLE `cscart_discussion` (
`thread_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`object_type` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'D',
PRIMARY KEY (`thread_id`),
UNIQUE KEY `object_id` (`object_id`,`object_type`)
) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_discussion_messages
-- ---------------------------DROP TABLE IF EXISTS `cscart_discussion_messages`;
CREATE TABLE `cscart_discussion_messages` (
`message` mediumtext NOT NULL,
`post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`thread_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`post_id`),
KEY `thread_id` (`thread_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_discussion_posts
-- ---------------------------DROP TABLE IF EXISTS `cscart_discussion_posts`;
CREATE TABLE `cscart_discussion_posts` (
`post_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`thread_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`name` varchar(128) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ip_address` varchar(15) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'D',
PRIMARY KEY (`post_id`),
KEY `thread_id` (`thread_id`,`ip_address`),
KEY `thread_id_2` (`thread_id`,`status`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_discussion_rating
-- ---------------------------DROP TABLE IF EXISTS `cscart_discussion_rating`;
CREATE TABLE `cscart_discussion_rating` (
`rating_value` tinyint(4) unsigned NOT NULL DEFAULT '0',
`post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',

`thread_id` mediumint(8) unsigned NOT NULL DEFAULT '0',


PRIMARY KEY (`post_id`),
KEY `thread_id` (`thread_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_ekeys
-- ---------------------------DROP TABLE IF EXISTS `cscart_ekeys`;
CREATE TABLE `cscart_ekeys` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`object_string` varchar(128) NOT NULL DEFAULT '',
`object_type` char(1) NOT NULL DEFAULT 'R',
`ekey` varchar(32) NOT NULL DEFAULT '',
`ttl` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`object_id`,`object_type`,`ekey`),
UNIQUE KEY `object_string`
(`object_string`,`object_type`,`ekey`),
KEY `c_status` (`ekey`,`object_type`,`ttl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_em_subscribers
-- ---------------------------DROP TABLE IF EXISTS `cscart_em_subscribers`;
CREATE TABLE `cscart_em_subscribers` (
`subscriber_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(128) NOT NULL DEFAULT '',
`name` varchar(128) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`ip_address` varchar(15) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`unsubscribe_key` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`subscriber_id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_exim_layouts
-- ---------------------------DROP TABLE IF EXISTS `cscart_exim_layouts`;
CREATE TABLE `cscart_exim_layouts` (
`layout_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL DEFAULT '',
`cols` text NOT NULL,
`options` text NOT NULL,
`pattern_id` varchar(128) NOT NULL DEFAULT '',
`active` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`layout_id`),
KEY `pattern_id` (`pattern_id`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_form_descriptions


-- ---------------------------DROP TABLE IF EXISTS `cscart_form_descriptions`;
CREATE TABLE `cscart_form_descriptions` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`description` text NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`object_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_form_options
-- ---------------------------DROP TABLE IF EXISTS `cscart_form_options`;
CREATE TABLE `cscart_form_options` (
`element_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element_type` char(1) NOT NULL DEFAULT 'I',
`value` varchar(255) NOT NULL DEFAULT '',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`required` char(1) NOT NULL DEFAULT 'N',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`element_id`),
KEY `page_id` (`page_id`,`status`),
KEY `position` (`position`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_gift_certificates
-- ---------------------------DROP TABLE IF EXISTS `cscart_gift_certificates`;
CREATE TABLE `cscart_gift_certificates` (
`gift_cert_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`gift_cert_code` varchar(255) NOT NULL DEFAULT '',
`sender` varchar(64) NOT NULL DEFAULT '',
`recipient` varchar(64) NOT NULL DEFAULT '',
`send_via` char(1) NOT NULL DEFAULT 'E',
`amount` decimal(12,2) NOT NULL DEFAULT '0.00',
`email` varchar(64) NOT NULL DEFAULT '',
`address` varchar(255) NOT NULL DEFAULT '',
`address_2` varchar(255) NOT NULL DEFAULT '',
`city` varchar(255) NOT NULL DEFAULT '',
`state` varchar(32) NOT NULL DEFAULT '',
`country` char(2) NOT NULL DEFAULT '',
`zipcode` varchar(10) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'P',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`phone` varchar(32) NOT NULL DEFAULT '',

`order_ids` varchar(255) NOT NULL DEFAULT '',


`template` varchar(128) NOT NULL DEFAULT '',
`message` mediumtext NOT NULL,
`products` text NOT NULL,
PRIMARY KEY (`gift_cert_id`),
KEY `status` (`status`),
KEY `timestamp` (`timestamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_gift_certificates_log
-- ---------------------------DROP TABLE IF EXISTS `cscart_gift_certificates_log`;
CREATE TABLE `cscart_gift_certificates_log` (
`log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`gift_cert_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`area` char(1) NOT NULL DEFAULT 'C',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`amount` decimal(12,2) NOT NULL DEFAULT '0.00',
`debit` decimal(12,2) NOT NULL DEFAULT '0.00',
`products` text NOT NULL,
`debit_products` text NOT NULL,
PRIMARY KEY (`log_id`),
KEY `area` (`area`),
KEY `user_id` (`user_id`),
KEY `order_id` (`order_id`),
KEY `timestamp` (`timestamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_hybrid_auth_providers
-- ---------------------------DROP TABLE IF EXISTS `cscart_hybrid_auth_providers`;
CREATE TABLE `cscart_hybrid_auth_providers` (
`provider_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`provider` varchar(32) NOT NULL,
`position` smallint(6) NOT NULL DEFAULT '0',
`app_id` varchar(255) NOT NULL DEFAULT '',
`app_secret_key` varchar(255) DEFAULT '',
`app_public_key` varchar(255) DEFAULT '',
`app_params` text NOT NULL,
`status` char(1) DEFAULT 'D',
PRIMARY KEY (`provider_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_hybrid_auth_users
-- ---------------------------DROP TABLE IF EXISTS `cscart_hybrid_auth_users`;

CREATE TABLE `cscart_hybrid_auth_users` (


`user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`provider_id` mediumint(8) unsigned NOT NULL,
`identifier` varchar(128) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`,`provider_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_images
-- ---------------------------DROP TABLE IF EXISTS `cscart_images`;
CREATE TABLE `cscart_images` (
`image_id` mediumint(8) NOT NULL AUTO_INCREMENT,
`image_path` varchar(255) NOT NULL DEFAULT '',
`image_x` int(5) NOT NULL DEFAULT '0',
`image_y` int(5) NOT NULL DEFAULT '0',
PRIMARY KEY (`image_id`),
KEY `image_path` (`image_path`)
) ENGINE=MyISAM AUTO_INCREMENT=1123 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_images_links
-- ---------------------------DROP TABLE IF EXISTS `cscart_images_links`;
CREATE TABLE `cscart_images_links` (
`pair_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object_id` int(11) unsigned NOT NULL DEFAULT '0',
`object_type` varchar(24) NOT NULL DEFAULT '',
`image_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`detailed_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'M',
`position` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`pair_id`),
KEY `object_id` (`object_id`,`object_type`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=1027 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_languages
-- ---------------------------DROP TABLE IF EXISTS `cscart_languages`;
CREATE TABLE `cscart_languages` (
`lang_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`country_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`lang_id`),
UNIQUE KEY `lang_code` (`lang_code`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------

-- Table structure for cscart_language_values


-- ---------------------------DROP TABLE IF EXISTS `cscart_language_values`;
CREATE TABLE `cscart_language_values` (
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(128) NOT NULL DEFAULT '',
`value` text NOT NULL,
PRIMARY KEY (`lang_code`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_localizations
-- ---------------------------DROP TABLE IF EXISTS `cscart_localizations`;
CREATE TABLE `cscart_localizations` (
`localization_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`custom_weight_settings` char(1) NOT NULL DEFAULT 'Y',
`weight_symbol` varchar(255) NOT NULL DEFAULT '',
`weight_unit` decimal(12,2) NOT NULL DEFAULT '0.00',
`is_default` char(1) NOT NULL DEFAULT 'N',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`localization_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_localization_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_localization_descriptions`;
CREATE TABLE `cscart_localization_descriptions` (
`localization_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`localization` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
KEY `localisation_id` (`localization_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_localization_elements
-- ---------------------------DROP TABLE IF EXISTS `cscart_localization_elements`;
CREATE TABLE `cscart_localization_elements` (
`element_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`localization_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element` varchar(36) NOT NULL DEFAULT '',
`element_type` char(1) NOT NULL DEFAULT 'S',
`position` smallint(5) NOT NULL DEFAULT '0',
PRIMARY KEY (`element_id`),
KEY `c_avail` (`localization_id`),
KEY `element` (`element`,`element_type`),
KEY `position` (`position`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------

-- Table structure for cscart_logos


-- ---------------------------DROP TABLE IF EXISTS `cscart_logos`;
CREATE TABLE `cscart_logos` (
`logo_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`layout_id` int(11) NOT NULL DEFAULT '0',
`company_id` int(11) NOT NULL DEFAULT '0',
`type` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`logo_id`),
KEY `type` (`type`,`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_logs
-- ---------------------------DROP TABLE IF EXISTS `cscart_logs`;
CREATE TABLE `cscart_logs` (
`log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`type` varchar(16) NOT NULL DEFAULT '',
`event_type` char(1) NOT NULL DEFAULT 'N',
`action` varchar(16) NOT NULL DEFAULT '',
`object` char(1) NOT NULL DEFAULT '',
`content` text NOT NULL,
`backtrace` text NOT NULL,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`log_id`),
KEY `object` (`object`),
KEY `type` (`type`,`action`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_mailing_lists
-- ---------------------------DROP TABLE IF EXISTS `cscart_mailing_lists`;
CREATE TABLE `cscart_mailing_lists` (
`list_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`from_email` varchar(64) NOT NULL DEFAULT '',
`from_name` varchar(128) NOT NULL DEFAULT '',
`reply_to` varchar(64) NOT NULL DEFAULT '',
`show_on_checkout` tinyint(3) unsigned NOT NULL DEFAULT '0',
`show_on_registration` tinyint(3) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'D',
`register_autoresponder` mediumint(8) unsigned NOT NULL DEFAULT
'0',
PRIMARY KEY (`list_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_menus

-- ---------------------------DROP TABLE IF EXISTS `cscart_menus`;


CREATE TABLE `cscart_menus` (
`menu_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`company_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`menu_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_menus_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_menus_descriptions`;
CREATE TABLE `cscart_menus_descriptions` (
`menu_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`menu_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_news
-- ---------------------------DROP TABLE IF EXISTS `cscart_news`;
CREATE TABLE `cscart_news` (
`news_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`date` int(11) unsigned NOT NULL DEFAULT '0',
`separate` char(1) NOT NULL DEFAULT 'N',
`status` char(1) NOT NULL DEFAULT 'D',
`localization` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`news_id`),
KEY `localization` (`localization`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_newsletters
-- ---------------------------DROP TABLE IF EXISTS `cscart_newsletters`;
CREATE TABLE `cscart_newsletters` (
`newsletter_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`campaign_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`sent_date` int(11) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`type` char(1) NOT NULL DEFAULT 'N',
`mailing_lists` varchar(255) NOT NULL DEFAULT '',
`users` text NOT NULL,
`abandoned_type` varchar(10) NOT NULL DEFAULT 'both',
`abandoned_days` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`newsletter_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_newsletter_campaigns


-- ---------------------------DROP TABLE IF EXISTS `cscart_newsletter_campaigns`;
CREATE TABLE `cscart_newsletter_campaigns` (
`campaign_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'D',
PRIMARY KEY (`campaign_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_newsletter_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_newsletter_descriptions`;
CREATE TABLE `cscart_newsletter_descriptions` (
`newsletter_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`newsletter` varchar(255) NOT NULL DEFAULT '',
`newsletter_multiple` text NOT NULL,
`body_html` mediumtext NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`newsletter_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_newsletter_links
-- ---------------------------DROP TABLE IF EXISTS `cscart_newsletter_links`;
CREATE TABLE `cscart_newsletter_links` (
`link_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`campaign_id` mediumint(8) unsigned NOT NULL,
`newsletter_id` mediumint(8) unsigned NOT NULL,
`url` varchar(255) NOT NULL DEFAULT '',
`clicks` mediumint(8) unsigned DEFAULT NULL,
PRIMARY KEY (`link_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_news_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_news_descriptions`;
CREATE TABLE `cscart_news_descriptions` (
`news_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`news` varchar(128) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`news_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_new_orders

-- ---------------------------DROP TABLE IF EXISTS `cscart_new_orders`;


CREATE TABLE `cscart_new_orders` (
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`order_id`,`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_orders
-- ---------------------------DROP TABLE IF EXISTS `cscart_orders`;
CREATE TABLE `cscart_orders` (
`order_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`is_parent_order` char(1) NOT NULL DEFAULT 'N',
`parent_order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`issuer_id` mediumint(8) unsigned DEFAULT NULL,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`total` decimal(12,2) NOT NULL DEFAULT '0.00',
`subtotal` decimal(12,2) NOT NULL DEFAULT '0.00',
`discount` decimal(12,2) NOT NULL DEFAULT '0.00',
`subtotal_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
`payment_surcharge` decimal(12,2) NOT NULL DEFAULT '0.00',
`shipping_ids` varchar(255) NOT NULL DEFAULT '',
`shipping_cost` decimal(12,2) NOT NULL DEFAULT '0.00',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'O',
`notes` text NOT NULL,
`details` text NOT NULL,
`promotions` text NOT NULL,
`promotion_ids` varchar(255) NOT NULL DEFAULT '',
`firstname` varchar(32) NOT NULL DEFAULT '',
`lastname` varchar(32) NOT NULL DEFAULT '',
`company` varchar(255) NOT NULL DEFAULT '',
`b_firstname` varchar(128) NOT NULL DEFAULT '',
`b_lastname` varchar(128) NOT NULL DEFAULT '',
`b_address` varchar(255) NOT NULL DEFAULT '',
`b_address_2` varchar(255) NOT NULL DEFAULT '',
`b_city` varchar(64) NOT NULL DEFAULT '',
`b_county` varchar(32) NOT NULL DEFAULT '',
`b_state` varchar(32) NOT NULL DEFAULT '',
`b_country` char(2) NOT NULL DEFAULT '',
`b_zipcode` varchar(32) NOT NULL DEFAULT '',
`b_phone` varchar(32) NOT NULL DEFAULT '',
`s_firstname` varchar(128) NOT NULL DEFAULT '',
`s_lastname` varchar(128) NOT NULL DEFAULT '',
`s_address` varchar(255) NOT NULL DEFAULT '',
`s_address_2` varchar(255) NOT NULL DEFAULT '',
`s_city` varchar(64) NOT NULL DEFAULT '',
`s_county` varchar(32) NOT NULL DEFAULT '',
`s_state` varchar(32) NOT NULL DEFAULT '',

`s_country` char(2) NOT NULL DEFAULT '',


`s_zipcode` varchar(32) NOT NULL DEFAULT '',
`s_phone` varchar(32) NOT NULL DEFAULT '',
`s_address_type` varchar(32) NOT NULL DEFAULT '',
`phone` varchar(32) NOT NULL DEFAULT '',
`fax` varchar(32) NOT NULL DEFAULT '',
`url` varchar(32) NOT NULL DEFAULT '',
`email` varchar(128) NOT NULL DEFAULT '',
`payment_id` mediumint(8) NOT NULL DEFAULT '0',
`tax_exempt` char(1) NOT NULL DEFAULT 'N',
`lang_code` char(2) NOT NULL DEFAULT '',
`ip_address` varchar(15) NOT NULL DEFAULT '',
`repaid` int(11) NOT NULL DEFAULT '0',
`validation_code` varchar(20) NOT NULL DEFAULT '',
`localization_id` mediumint(8) NOT NULL,
`profile_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`yml_order_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`order_id`),
KEY `timestamp` (`timestamp`),
KEY `user_id` (`user_id`),
KEY `promotion_ids` (`promotion_ids`),
KEY `status` (`status`),
KEY `shipping_ids` (`shipping_ids`)
) ENGINE=MyISAM AUTO_INCREMENT=99 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_order_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_order_data`;
CREATE TABLE `cscart_order_data` (
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
`data` longblob NOT NULL,
PRIMARY KEY (`order_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_order_details
-- ---------------------------DROP TABLE IF EXISTS `cscart_order_details`;
CREATE TABLE `cscart_order_details` (
`item_id` int(11) unsigned NOT NULL DEFAULT '0',
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_code` varchar(32) NOT NULL DEFAULT '',
`price` decimal(12,2) NOT NULL DEFAULT '0.00',
`amount` smallint(5) unsigned NOT NULL DEFAULT '0',
`extra` longblob NOT NULL,
PRIMARY KEY (`item_id`,`order_id`),
KEY `o_k` (`order_id`,`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_order_docs


-- ---------------------------DROP TABLE IF EXISTS `cscart_order_docs`;
CREATE TABLE `cscart_order_docs` (
`doc_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`type` char(1) NOT NULL DEFAULT 'I',
`order_id` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`doc_id`,`type`),
KEY `type` (`order_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_order_transactions
-- ---------------------------DROP TABLE IF EXISTS `cscart_order_transactions`;
CREATE TABLE `cscart_order_transactions` (
`payment_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`transaction_id` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT '',
`extra` longblob NOT NULL,
PRIMARY KEY (`payment_id`,`transaction_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_original_values
-- ---------------------------DROP TABLE IF EXISTS `cscart_original_values`;
CREATE TABLE `cscart_original_values` (
`msgctxt` varchar(128) NOT NULL DEFAULT '',
`msgid` text,
PRIMARY KEY (`msgctxt`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_pages
-- ---------------------------DROP TABLE IF EXISTS `cscart_pages`;
CREATE TABLE `cscart_pages` (
`page_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id_path` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`show_in_popup` char(1) NOT NULL DEFAULT 'N',
`page_type` char(1) NOT NULL DEFAULT 'T',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) NOT NULL DEFAULT '0',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`localization` varchar(255) NOT NULL DEFAULT '',
`new_window` tinyint(3) NOT NULL DEFAULT '0',
`related_ids` text,

`use_avail_period` char(1) NOT NULL DEFAULT 'N',


`avail_from_timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`avail_till_timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`facebook_obj_type` varchar(64) NOT NULL,
PRIMARY KEY (`page_id`),
KEY `localization` (`localization`),
KEY `parent_id` (`parent_id`)
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_page_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_page_descriptions`;
CREATE TABLE `cscart_page_descriptions` (
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`page` varchar(255) DEFAULT '0',
`description` mediumtext,
`meta_keywords` varchar(255) NOT NULL DEFAULT '',
`meta_description` varchar(255) NOT NULL DEFAULT '',
`page_title` varchar(255) NOT NULL DEFAULT '',
`link` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`page_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_payments
-- ---------------------------DROP TABLE IF EXISTS `cscart_payments`;
CREATE TABLE `cscart_payments` (
`payment_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`template` varchar(128) NOT NULL DEFAULT '',
`processor_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`processor_params` text NOT NULL,
`a_surcharge` decimal(13,3) NOT NULL DEFAULT '0.000',
`p_surcharge` decimal(13,3) NOT NULL DEFAULT '0.000',
`tax_ids` varchar(255) NOT NULL DEFAULT '',
`localization` varchar(255) NOT NULL DEFAULT '',
`payment_category` varchar(20) NOT NULL DEFAULT 'tab1',
PRIMARY KEY (`payment_id`),
KEY `c_status` (`usergroup_ids`,`status`),
KEY `position` (`position`),
KEY `localization` (`localization`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_payment_descriptions
-- ----------------------------

DROP TABLE IF EXISTS `cscart_payment_descriptions`;


CREATE TABLE `cscart_payment_descriptions` (
`payment_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`payment` varchar(128) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
`instructions` mediumtext NOT NULL,
`surcharge_title` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`payment_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_payment_processors
-- ---------------------------DROP TABLE IF EXISTS `cscart_payment_processors`;
CREATE TABLE `cscart_payment_processors` (
`processor_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`processor` varchar(255) NOT NULL DEFAULT '',
`processor_script` varchar(255) NOT NULL DEFAULT '',
`processor_template` varchar(255) NOT NULL DEFAULT '',
`admin_template` varchar(255) NOT NULL DEFAULT '',
`callback` char(1) NOT NULL DEFAULT 'N',
`type` char(1) NOT NULL DEFAULT 'P',
PRIMARY KEY (`processor_id`)
) ENGINE=MyISAM AUTO_INCREMENT=134 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_polls
-- ---------------------------DROP TABLE IF EXISTS `cscart_polls`;
CREATE TABLE `cscart_polls` (
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`start_date` int(11) unsigned NOT NULL DEFAULT '0',
`end_date` int(11) unsigned NOT NULL DEFAULT '0',
`show_results` char(1) NOT NULL DEFAULT 'V',
PRIMARY KEY (`page_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_polls_answers
-- ---------------------------DROP TABLE IF EXISTS `cscart_polls_answers`;
CREATE TABLE `cscart_polls_answers` (
`answer_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`vote_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`item_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`answer_id`,`vote_id`,`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_polls_votes

-- ---------------------------DROP TABLE IF EXISTS `cscart_polls_votes`;


CREATE TABLE `cscart_polls_votes` (
`vote_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ip_address` varchar(15) NOT NULL DEFAULT '',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`time` int(11) NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
PRIMARY KEY (`vote_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_poll_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_poll_descriptions`;
CREATE TABLE `cscart_poll_descriptions` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'P',
`description` mediumtext NOT NULL,
PRIMARY KEY (`object_id`,`lang_code`,`type`),
KEY `page_id` (`page_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_poll_items
-- ---------------------------DROP TABLE IF EXISTS `cscart_poll_items`;
CREATE TABLE `cscart_poll_items` (
`item_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'Q',
`position` smallint(5) NOT NULL DEFAULT '0',
`required` char(1) NOT NULL DEFAULT '',
`page_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`),
KEY `parent_id` (`parent_id`),
KEY `type` (`type`),
KEY `page_id` (`page_id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_privileges
-- ---------------------------DROP TABLE IF EXISTS `cscart_privileges`;
CREATE TABLE `cscart_privileges` (
`privilege` varchar(32) NOT NULL DEFAULT '',
`is_default` char(1) NOT NULL DEFAULT 'N',
`section_id` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`privilege`),

KEY `section_id` (`section_id`)


) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_products
-- ---------------------------DROP TABLE IF EXISTS `cscart_products`;
CREATE TABLE `cscart_products` (
`product_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_code` varchar(32) NOT NULL DEFAULT '',
`product_type` char(1) NOT NULL DEFAULT 'P',
`status` char(1) NOT NULL DEFAULT 'A',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`approved` char(1) NOT NULL DEFAULT 'Y',
`list_price` decimal(12,2) NOT NULL DEFAULT '0.00',
`amount` mediumint(8) NOT NULL DEFAULT '0',
`weight` decimal(12,2) NOT NULL DEFAULT '0.00',
`length` mediumint(8) unsigned NOT NULL DEFAULT '0',
`width` mediumint(8) unsigned NOT NULL DEFAULT '0',
`height` mediumint(8) unsigned NOT NULL DEFAULT '0',
`shipping_freight` decimal(12,2) NOT NULL DEFAULT '0.00',
`low_avail_limit` mediumint(8) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`updated_timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`is_edp` char(1) NOT NULL DEFAULT 'N',
`edp_shipping` char(1) NOT NULL DEFAULT 'N',
`unlimited_download` char(1) NOT NULL DEFAULT 'N',
`tracking` char(1) NOT NULL DEFAULT 'B',
`free_shipping` char(1) NOT NULL DEFAULT 'N',
`feature_comparison` char(1) NOT NULL DEFAULT 'N',
`zero_price_action` char(1) NOT NULL DEFAULT 'R',
`is_pbp` char(1) NOT NULL DEFAULT 'N',
`is_op` char(1) NOT NULL DEFAULT 'N',
`is_oper` char(1) NOT NULL DEFAULT 'N',
`is_returnable` char(1) NOT NULL DEFAULT 'Y',
`return_period` int(11) unsigned NOT NULL DEFAULT '10',
`avail_since` int(11) unsigned NOT NULL DEFAULT '0',
`out_of_stock_actions` char(1) NOT NULL DEFAULT 'N',
`localization` varchar(255) NOT NULL DEFAULT '',
`min_qty` smallint(5) NOT NULL DEFAULT '0',
`max_qty` smallint(5) NOT NULL DEFAULT '0',
`qty_step` smallint(5) NOT NULL DEFAULT '0',
`list_qty_count` smallint(5) NOT NULL DEFAULT '0',
`tax_ids` varchar(255) NOT NULL DEFAULT '',
`age_verification` char(1) NOT NULL DEFAULT 'N',
`age_limit` tinyint(4) NOT NULL DEFAULT '0',
`options_type` char(1) NOT NULL DEFAULT 'P',
`exceptions_type` char(1) NOT NULL DEFAULT 'F',
`details_layout` varchar(50) NOT NULL DEFAULT '',
`shipping_params` varchar(255) NOT NULL DEFAULT '',
`buy_now_url` varchar(255) NOT NULL,

`facebook_obj_type` varchar(64) NOT NULL,


`yml_brand` varchar(96) NOT NULL,
`yml_origin_country` varchar(64) NOT NULL,
`yml_store` char(1) NOT NULL DEFAULT 'N',
`yml_pickup` char(1) NOT NULL DEFAULT 'N',
`yml_delivery` char(1) NOT NULL DEFAULT 'Y',
`yml_cost` decimal(12,2) NOT NULL DEFAULT '0.00',
`yml_export_yes` char(1) NOT NULL DEFAULT 'Y',
`yml_bid` int(11) NOT NULL DEFAULT '0',
`yml_cbid` int(11) NOT NULL DEFAULT '0',
`yml_model` varchar(96) NOT NULL,
`yml_sales_notes` varchar(50) NOT NULL,
`yml_type_prefix` varchar(55) NOT NULL,
`yml_market_category` varchar(255) NOT NULL,
`yml_manufacturer_warranty` varchar(20) NOT NULL,
`yml_seller_warranty` varchar(20) NOT NULL,
PRIMARY KEY (`product_id`),
KEY `age_verification` (`age_verification`,`age_limit`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=247 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_products_categories
-- ---------------------------DROP TABLE IF EXISTS `cscart_products_categories`;
CREATE TABLE `cscart_products_categories` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`category_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`link_type` char(1) NOT NULL DEFAULT 'M',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`category_id`,`product_id`),
KEY `link_type` (`link_type`),
KEY `pt` (`product_id`,`link_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_descriptions`;
CREATE TABLE `cscart_product_descriptions` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`product` varchar(255) NOT NULL DEFAULT '',
`shortname` varchar(255) NOT NULL DEFAULT '',
`short_description` mediumtext NOT NULL,
`full_description` mediumtext NOT NULL,
`meta_keywords` varchar(255) NOT NULL DEFAULT '',
`meta_description` varchar(255) NOT NULL DEFAULT '',
`search_words` text NOT NULL,
`page_title` varchar(255) NOT NULL DEFAULT '',
`age_warning_message` text NOT NULL,
`promo_text` mediumtext NOT NULL,

PRIMARY KEY (`product_id`,`lang_code`),


KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_features
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_features`;
CREATE TABLE `cscart_product_features` (
`feature_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`feature_code` varchar(32) NOT NULL DEFAULT '',
`company_id` int(11) unsigned NOT NULL,
`feature_type` char(1) NOT NULL DEFAULT 'T',
`categories_path` text NOT NULL,
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`display_on_product` char(1) NOT NULL DEFAULT 'Y',
`display_on_catalog` char(1) NOT NULL DEFAULT 'Y',
`display_on_header` char(1) NOT NULL DEFAULT 'N',
`status` char(1) NOT NULL DEFAULT 'A',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`comparison` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`feature_id`),
KEY `status` (`status`),
KEY `company_id` (`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_features_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_features_descriptions`;
CREATE TABLE `cscart_product_features_descriptions` (
`feature_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`description` varchar(255) NOT NULL DEFAULT '',
`full_description` mediumtext NOT NULL,
`prefix` varchar(128) NOT NULL DEFAULT '',
`suffix` varchar(128) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`feature_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_features_values
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_features_values`;
CREATE TABLE `cscart_product_features_values` (
`feature_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`variant_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`value` varchar(255) NOT NULL DEFAULT '',
`value_int` double(12,2) DEFAULT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',

PRIMARY KEY
(`feature_id`,`product_id`,`variant_id`,`lang_code`),
KEY `fl`
(`feature_id`,`lang_code`,`variant_id`,`value`,`value_int`),
KEY `variant_id` (`variant_id`),
KEY `lang_code` (`lang_code`),
KEY `product_id` (`product_id`),
KEY `fpl` (`feature_id`,`product_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_feature_variants
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_feature_variants`;
CREATE TABLE `cscart_product_feature_variants` (
`variant_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`feature_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`url` varchar(255) NOT NULL DEFAULT '',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`variant_id`),
KEY `feature_id` (`feature_id`),
KEY `position` (`position`)
) ENGINE=MyISAM AUTO_INCREMENT=136 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_feature_variant_descriptions
-- ---------------------------DROP TABLE IF EXISTS
`cscart_product_feature_variant_descriptions`;
CREATE TABLE `cscart_product_feature_variant_descriptions` (
`variant_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`variant` varchar(255) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`page_title` varchar(255) NOT NULL DEFAULT '',
`meta_keywords` varchar(255) NOT NULL DEFAULT '',
`meta_description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`variant_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_files
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_files`;
CREATE TABLE `cscart_product_files` (
`file_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`folder_id` mediumint(8) unsigned DEFAULT NULL,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`file_path` varchar(255) NOT NULL DEFAULT '',
`preview_path` varchar(255) NOT NULL DEFAULT '',
`file_size` int(11) unsigned NOT NULL DEFAULT '0',
`preview_size` int(11) unsigned NOT NULL DEFAULT '0',

`agreement` char(1) NOT NULL DEFAULT 'N',


`max_downloads` smallint(5) unsigned NOT NULL DEFAULT '0',
`total_downloads` smallint(5) unsigned NOT NULL DEFAULT '0',
`activation_type` char(1) NOT NULL DEFAULT 'M',
`position` smallint(5) NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`file_id`),
KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_file_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_file_descriptions`;
CREATE TABLE `cscart_product_file_descriptions` (
`file_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`file_name` varchar(255) NOT NULL DEFAULT '',
`license` text NOT NULL,
`readme` text NOT NULL,
PRIMARY KEY (`file_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_file_ekeys
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_file_ekeys`;
CREATE TABLE `cscart_product_file_ekeys` (
`ekey` varchar(32) NOT NULL DEFAULT '',
`file_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`downloads` mediumint(8) unsigned NOT NULL DEFAULT '0',
`active` char(1) NOT NULL DEFAULT 'N',
`ttl` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`file_id`,`order_id`),
UNIQUE KEY `ekey` (`ekey`),
KEY `ttl` (`ttl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_file_folders
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_file_folders`;
CREATE TABLE `cscart_product_file_folders` (
`folder_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`folder_id`),
KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_product_file_folder_descriptions


-- ---------------------------DROP TABLE IF EXISTS `cscart_product_file_folder_descriptions`;
CREATE TABLE `cscart_product_file_folder_descriptions` (
`folder_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`folder_name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`folder_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_filters
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_filters`;
CREATE TABLE `cscart_product_filters` (
`filter_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`categories_path` text NOT NULL,
`company_id` int(11) unsigned DEFAULT '0',
`feature_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`field_type` char(1) NOT NULL DEFAULT '',
`show_on_home_page` char(1) NOT NULL DEFAULT 'N',
`status` char(1) NOT NULL DEFAULT 'A',
`round_to` smallint(5) unsigned NOT NULL DEFAULT '1',
`display` char(1) NOT NULL DEFAULT 'Y',
`display_count` smallint(5) unsigned NOT NULL DEFAULT '10',
`display_more_count` smallint(5) unsigned NOT NULL DEFAULT '20',
PRIMARY KEY (`filter_id`),
KEY `feature_id` (`feature_id`),
KEY `company_id` (`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_filter_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_filter_descriptions`;
CREATE TABLE `cscart_product_filter_descriptions` (
`filter_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`filter` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`filter_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_filter_ranges
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_filter_ranges`;
CREATE TABLE `cscart_product_filter_ranges` (
`range_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`feature_id` mediumint(8) unsigned NOT NULL DEFAULT '0',

`filter_id` mediumint(8) unsigned NOT NULL DEFAULT '0',


`from` decimal(12,2) NOT NULL DEFAULT '0.00',
`to` decimal(12,2) NOT NULL DEFAULT '0.00',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`range_id`),
KEY `from` (`from`,`to`),
KEY `filter_id` (`filter_id`),
KEY `feature_id` (`feature_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_filter_ranges_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_filter_ranges_descriptions`;
CREATE TABLE `cscart_product_filter_ranges_descriptions` (
`range_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`range_name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`range_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_global_option_links
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_global_option_links`;
CREATE TABLE `cscart_product_global_option_links` (
`option_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`option_id`,`product_id`),
KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_options
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_options`;
CREATE TABLE `cscart_product_options` (
`option_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`option_type` char(1) NOT NULL DEFAULT 'S',
`inventory` char(1) NOT NULL DEFAULT 'Y',
`regexp` varchar(255) NOT NULL DEFAULT '',
`required` char(1) NOT NULL DEFAULT 'N',
`multiupload` char(1) NOT NULL DEFAULT 'N',
`allowed_extensions` varchar(255) NOT NULL DEFAULT '',
`max_file_size` int(11) NOT NULL DEFAULT '0',
`missing_variants_handling` char(1) NOT NULL DEFAULT 'M',
`status` char(1) NOT NULL DEFAULT 'A',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`value` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`option_id`),

KEY `c_status` (`product_id`,`status`),


KEY `position` (`position`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_options_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_options_descriptions`;
CREATE TABLE `cscart_product_options_descriptions` (
`option_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`option_name` varchar(64) NOT NULL DEFAULT '',
`option_text` varchar(255) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`comment` varchar(255) NOT NULL DEFAULT '',
`inner_hint` varchar(255) NOT NULL DEFAULT '',
`incorrect_message` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`option_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_options_exceptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_options_exceptions`;
CREATE TABLE `cscart_product_options_exceptions` (
`exception_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`combination` text NOT NULL,
PRIMARY KEY (`exception_id`),
KEY `product` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_options_inventory
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_options_inventory`;
CREATE TABLE `cscart_product_options_inventory` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_code` varchar(32) NOT NULL DEFAULT '',
`combination_hash` int(11) unsigned NOT NULL DEFAULT '0',
`combination` varchar(255) NOT NULL DEFAULT '',
`amount` mediumint(8) NOT NULL DEFAULT '0',
`temp` char(1) NOT NULL DEFAULT 'N',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`combination_hash`),
KEY `pc` (`product_id`,`combination`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_option_variants
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_option_variants`;

CREATE TABLE `cscart_product_option_variants` (


`variant_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`option_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`modifier` decimal(13,3) NOT NULL DEFAULT '0.000',
`modifier_type` char(1) NOT NULL DEFAULT 'A',
`weight_modifier` decimal(12,3) NOT NULL DEFAULT '0.000',
`weight_modifier_type` char(1) NOT NULL DEFAULT 'A',
`point_modifier` decimal(12,3) NOT NULL DEFAULT '0.000',
`point_modifier_type` char(1) NOT NULL DEFAULT 'A',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`variant_id`),
KEY `position` (`position`),
KEY `status` (`status`),
KEY `option_id` (`option_id`,`status`),
KEY `option_id_2` (`option_id`,`variant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_option_variants_descriptions
-- ---------------------------DROP TABLE IF EXISTS
`cscart_product_option_variants_descriptions`;
CREATE TABLE `cscart_product_option_variants_descriptions` (
`variant_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`variant_name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`variant_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_point_prices
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_point_prices`;
CREATE TABLE `cscart_product_point_prices` (
`point_price_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`point_price` int(11) unsigned NOT NULL DEFAULT '0',
`lower_limit` smallint(5) unsigned NOT NULL DEFAULT '0',
`usergroup_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`point_price_id`),
UNIQUE KEY `unique_key`
(`lower_limit`,`usergroup_id`,`product_id`),
KEY `src_k` (`product_id`,`lower_limit`,`usergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_popularity
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_popularity`;
CREATE TABLE `cscart_product_popularity` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',

`viewed` int(11) NOT NULL DEFAULT '0',


`added` int(11) NOT NULL DEFAULT '0',
`deleted` int(11) NOT NULL DEFAULT '0',
`bought` int(11) NOT NULL DEFAULT '0',
`total` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`product_id`),
KEY `total` (`product_id`,`total`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_prices
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_prices`;
CREATE TABLE `cscart_product_prices` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`price` decimal(12,2) NOT NULL DEFAULT '0.00',
`percentage_discount` int(2) unsigned NOT NULL DEFAULT '0',
`lower_limit` smallint(5) unsigned NOT NULL DEFAULT '0',
`usergroup_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `usergroup`
(`product_id`,`usergroup_id`,`lower_limit`),
KEY `product_id` (`product_id`),
KEY `lower_limit` (`lower_limit`),
KEY `usergroup_id` (`usergroup_id`,`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_required_products
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_required_products`;
CREATE TABLE `cscart_product_required_products` (
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`required_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`product_id`,`required_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_sales
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_sales`;
CREATE TABLE `cscart_product_sales` (
`category_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`category_id`,`product_id`),
KEY `pa` (`product_id`,`amount`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_subscriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_subscriptions`;

CREATE TABLE `cscart_product_subscriptions` (


`subscription_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`email` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`subscription_id`),
UNIQUE KEY `pe` (`product_id`,`email`),
KEY `pd` (`product_id`,`user_id`,`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_tabs
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_tabs`;
CREATE TABLE `cscart_product_tabs` (
`tab_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`tab_type` char(1) NOT NULL DEFAULT 'B',
`block_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`template` varchar(255) NOT NULL DEFAULT '',
`addon` varchar(32) NOT NULL DEFAULT '',
`position` int(11) NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`is_primary` char(1) NOT NULL DEFAULT 'N',
`product_ids` text NOT NULL,
`company_id` int(11) unsigned DEFAULT NULL,
`show_in_popup` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`tab_id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_product_tabs_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_product_tabs_descriptions`;
CREATE TABLE `cscart_product_tabs_descriptions` (
`tab_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`tab_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_profile_fields
-- ---------------------------DROP TABLE IF EXISTS `cscart_profile_fields`;
CREATE TABLE `cscart_profile_fields` (
`field_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`field_name` varchar(32) NOT NULL DEFAULT '',
`profile_show` char(1) DEFAULT 'N',
`profile_required` char(1) DEFAULT 'N',
`checkout_show` char(1) DEFAULT 'N',
`checkout_required` char(1) DEFAULT 'N',
`partner_show` char(1) DEFAULT 'N',

`partner_required` char(1) DEFAULT 'N',


`field_type` char(1) NOT NULL DEFAULT 'I',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`is_default` char(1) DEFAULT 'N',
`section` char(1) DEFAULT 'C',
`matching_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`class` varchar(100) NOT NULL DEFAULT '',
`autocomplete_type` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`field_id`),
KEY `field_name` (`field_name`),
KEY `checkout_show` (`checkout_show`,`field_type`),
KEY `profile_show` (`profile_show`,`field_type`)
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_profile_fields_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_profile_fields_data`;
CREATE TABLE `cscart_profile_fields_data` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`object_type` char(1) NOT NULL DEFAULT 'U',
`field_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`value` varchar(255) NOT NULL DEFAULT '0',
PRIMARY KEY (`object_id`,`object_type`,`field_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_profile_field_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_profile_field_descriptions`;
CREATE TABLE `cscart_profile_field_descriptions` (
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`description` varchar(255) NOT NULL DEFAULT '',
`object_type` char(1) NOT NULL DEFAULT 'F',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`object_id`,`object_type`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_profile_field_values
-- ---------------------------DROP TABLE IF EXISTS `cscart_profile_field_values`;
CREATE TABLE `cscart_profile_field_values` (
`value_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`field_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`value_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_promotions
-- ----------------------------

DROP TABLE IF EXISTS `cscart_promotions`;


CREATE TABLE `cscart_promotions` (
`promotion_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`conditions` text NOT NULL,
`bonuses` text NOT NULL,
`to_date` int(11) unsigned NOT NULL DEFAULT '0',
`from_date` int(11) unsigned NOT NULL DEFAULT '0',
`priority` mediumint(8) unsigned NOT NULL DEFAULT '0',
`stop` char(1) NOT NULL DEFAULT 'N',
`zone` enum('cart','catalog') NOT NULL DEFAULT 'catalog',
`conditions_hash` text NOT NULL,
`status` char(1) NOT NULL DEFAULT 'A',
`number_of_usages` mediumint(8) NOT NULL DEFAULT '0',
`users_conditions_hash` text NOT NULL,
PRIMARY KEY (`promotion_id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_promotion_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_promotion_descriptions`;
CREATE TABLE `cscart_promotion_descriptions` (
`promotion_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
`short_description` text NOT NULL,
`detailed_description` mediumtext NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`promotion_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_quick_menu
-- ---------------------------DROP TABLE IF EXISTS `cscart_quick_menu`;
CREATE TABLE `cscart_quick_menu` (
`menu_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL,
`url` varchar(255) NOT NULL,
`parent_id` mediumint(8) unsigned NOT NULL,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`menu_id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_reward_points
-- ---------------------------DROP TABLE IF EXISTS `cscart_reward_points`;
CREATE TABLE `cscart_reward_points` (
`reward_point_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`usergroup_id` mediumint(8) unsigned NOT NULL DEFAULT '0',

`amount` int(11) unsigned NOT NULL DEFAULT '0',


`amount_type` char(1) NOT NULL DEFAULT 'A',
`object_type` char(1) NOT NULL DEFAULT 'P',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`reward_point_id`),
UNIQUE KEY `unique_key`
(`object_id`,`usergroup_id`,`object_type`,`company_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_reward_point_changes
-- ---------------------------DROP TABLE IF EXISTS `cscart_reward_point_changes`;
CREATE TABLE `cscart_reward_point_changes` (
`change_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` int(11) NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`action` char(1) NOT NULL DEFAULT 'A',
`reason` text NOT NULL,
PRIMARY KEY (`change_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_rma_properties
-- ---------------------------DROP TABLE IF EXISTS `cscart_rma_properties`;
CREATE TABLE `cscart_rma_properties` (
`property_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'R',
`update_totals_and_inventory` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`property_id`),
KEY `c_status` (`property_id`,`status`),
KEY `status` (`status`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_rma_property_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_rma_property_descriptions`;
CREATE TABLE `cscart_rma_property_descriptions` (
`property_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`property` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`property_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_rma_returns
-- ----------------------------

DROP TABLE IF EXISTS `cscart_rma_returns`;


CREATE TABLE `cscart_rma_returns` (
`return_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`action` mediumint(8) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'O',
`total_amount` mediumint(8) unsigned NOT NULL DEFAULT '0',
`comment` text,
`extra` text,
PRIMARY KEY (`return_id`),
KEY `order_id` (`order_id`),
KEY `timestamp` (`timestamp`),
KEY `user_id` (`user_id`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_rma_return_products
-- ---------------------------DROP TABLE IF EXISTS `cscart_rma_return_products`;
CREATE TABLE `cscart_rma_return_products` (
`return_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`item_id` int(11) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`reason` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'A',
`price` decimal(12,2) NOT NULL DEFAULT '0.00',
`product_options` text,
`product` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`return_id`,`item_id`,`type`),
KEY `reason` (`reason`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports`;
CREATE TABLE `cscart_sales_reports` (
`report_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`type` char(1) NOT NULL DEFAULT '',
`period` char(2) NOT NULL DEFAULT 'A',
`time_from` int(11) NOT NULL DEFAULT '0',
`time_to` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`report_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------- Table structure for cscart_sales_reports_descriptions


-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_descriptions`;
CREATE TABLE `cscart_sales_reports_descriptions` (
`report_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`report_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_elements
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_elements`;
CREATE TABLE `cscart_sales_reports_elements` (
`element_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(66) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'O',
`depend_on_it` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`element_id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_intervals
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_intervals`;
CREATE TABLE `cscart_sales_reports_intervals` (
`interval_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`value` int(11) unsigned NOT NULL DEFAULT '0',
`interval_code` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`interval_id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_tables
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_tables`;
CREATE TABLE `cscart_sales_reports_tables` (
`table_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`report_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'T',
`display` varchar(64) NOT NULL DEFAULT 'order_amount',
`interval_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`auto` char(1) NOT NULL DEFAULT 'Y',
PRIMARY KEY (`table_id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_table_conditions
-- ----------------------------

DROP TABLE IF EXISTS `cscart_sales_reports_table_conditions`;


CREATE TABLE `cscart_sales_reports_table_conditions` (
`table_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`code` varchar(64) NOT NULL DEFAULT '0',
`sub_element_id` varchar(16) NOT NULL DEFAULT '0',
PRIMARY KEY (`table_id`,`code`,`sub_element_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_table_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_table_descriptions`;
CREATE TABLE `cscart_sales_reports_table_descriptions` (
`table_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`table_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sales_reports_table_elements
-- ---------------------------DROP TABLE IF EXISTS `cscart_sales_reports_table_elements`;
CREATE TABLE `cscart_sales_reports_table_elements` (
`report_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`table_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element_hash` int(11) NOT NULL DEFAULT '0',
`color` varchar(64) NOT NULL DEFAULT 'blueviolet',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`dependence` varchar(64) NOT NULL DEFAULT 'max_p',
`limit_auto` mediumint(8) unsigned NOT NULL DEFAULT '5',
PRIMARY KEY (`report_id`,`table_id`,`element_hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for
cscart_sales_reports_table_element_conditions
-- ---------------------------DROP TABLE IF EXISTS
`cscart_sales_reports_table_element_conditions`;
CREATE TABLE `cscart_sales_reports_table_element_conditions` (
`table_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`element_hash` varchar(32) NOT NULL DEFAULT '',
`element_code` varchar(64) NOT NULL DEFAULT '',
`ids` varchar(16) NOT NULL DEFAULT '',
PRIMARY KEY (`table_id`,`element_hash`,`ids`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_seo_names

-- ---------------------------DROP TABLE IF EXISTS `cscart_seo_names`;


CREATE TABLE `cscart_seo_names` (
`name` varchar(250) NOT NULL DEFAULT '',
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
`dispatch` varchar(64) NOT NULL DEFAULT '',
`path` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY
(`object_id`,`type`,`dispatch`,`lang_code`,`company_id`),
KEY `name` (`name`,`lang_code`),
KEY `type` (`name`,`type`,`lang_code`),
KEY `dispatch` (`dispatch`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_seo_redirects
-- ---------------------------DROP TABLE IF EXISTS `cscart_seo_redirects`;
CREATE TABLE `cscart_seo_redirects` (
`redirect_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`src` varchar(255) NOT NULL DEFAULT '',
`dest` varchar(255) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 's',
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`redirect_id`),
KEY `src` (`src`,`company_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sessions
-- ---------------------------DROP TABLE IF EXISTS `cscart_sessions`;
CREATE TABLE `cscart_sessions` (
`session_id` varchar(64) NOT NULL DEFAULT '',
`expiry` int(11) unsigned NOT NULL DEFAULT '0',
`data` mediumtext,
PRIMARY KEY (`session_id`),
KEY `src` (`session_id`,`expiry`),
KEY `expiry` (`expiry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_settings_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_settings_descriptions`;
CREATE TABLE `cscart_settings_descriptions` (
`object_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,

`object_type` varchar(1) NOT NULL DEFAULT 'O',


`lang_code` char(2) NOT NULL DEFAULT '',
`value` text NOT NULL,
`tooltip` text NOT NULL,
PRIMARY KEY (`object_id`,`object_type`,`lang_code`)
) ENGINE=MyISAM AUTO_INCREMENT=6257 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_settings_objects
-- ---------------------------DROP TABLE IF EXISTS `cscart_settings_objects`;
CREATE TABLE `cscart_settings_objects` (
`object_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`edition_type`
set('NONE','ROOT','VENDOR','PRO:NONE','PRO:ROOT','MVE:NONE','MVE:R
OOT','ULT:NONE','ULT:ROOT','ULT:VENDOR','ULT:VENDORONLY') NOT NULL
DEFAULT 'ROOT',
`name` varchar(128) NOT NULL DEFAULT '',
`section_id` smallint(4) unsigned NOT NULL,
`section_tab_id` smallint(4) unsigned NOT NULL,
`type` char(1) NOT NULL DEFAULT 'I',
`value` text NOT NULL,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`is_global` char(1) NOT NULL DEFAULT 'Y',
`handler` varchar(128) NOT NULL,
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`object_id`),
KEY `name` (`name`),
KEY `is_global` (`is_global`),
KEY `position` (`position`),
KEY `section_id` (`section_id`,`section_tab_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6257 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_settings_sections
-- ---------------------------DROP TABLE IF EXISTS `cscart_settings_sections`;
CREATE TABLE `cscart_settings_sections` (
`section_id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` smallint(4) unsigned NOT NULL,
`edition_type`
set('NONE','ROOT','VENDOR','PRO:NONE','PRO:ROOT','MVE:NONE','MVE:R
OOT','ULT:NONE','ULT:ROOT','ULT:VENDOR','ULT:VENDORONLY') NOT NULL
DEFAULT 'ROOT',
`name` varchar(128) NOT NULL DEFAULT '',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` enum('CORE','ADDON','TAB','SEPARATE_TAB') NOT NULL
DEFAULT 'CORE',
PRIMARY KEY (`section_id`)
) ENGINE=MyISAM AUTO_INCREMENT=98 DEFAULT CHARSET=utf8;
-- ----------------------------

-- Table structure for cscart_settings_variants


-- ---------------------------DROP TABLE IF EXISTS `cscart_settings_variants`;
CREATE TABLE `cscart_settings_variants` (
`variant_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`name` varchar(64) NOT NULL DEFAULT '',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`variant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=429 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_settings_vendor_values
-- ---------------------------DROP TABLE IF EXISTS `cscart_settings_vendor_values`;
CREATE TABLE `cscart_settings_vendor_values` (
`object_id` mediumint(8) unsigned NOT NULL,
`company_id` int(11) unsigned NOT NULL,
`value` text NOT NULL,
PRIMARY KEY (`object_id`,`company_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipments
-- ---------------------------DROP TABLE IF EXISTS `cscart_shipments`;
CREATE TABLE `cscart_shipments` (
`shipment_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`shipping_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`tracking_number` varchar(255) NOT NULL DEFAULT '',
`carrier` varchar(255) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`comments` mediumtext NOT NULL,
PRIMARY KEY (`shipment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipment_items
-- ---------------------------DROP TABLE IF EXISTS `cscart_shipment_items`;
CREATE TABLE `cscart_shipment_items` (
`item_id` int(11) unsigned NOT NULL,
`shipment_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`,`shipment_id`),
KEY `shipment_id` (`shipment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shippings

-- ---------------------------DROP TABLE IF EXISTS `cscart_shippings`;


CREATE TABLE `cscart_shippings` (
`shipping_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`destination` char(1) NOT NULL DEFAULT 'I',
`min_weight` decimal(12,2) NOT NULL DEFAULT '0.00',
`max_weight` decimal(12,2) NOT NULL DEFAULT '0.00',
`usergroup_ids` varchar(255) NOT NULL DEFAULT '0',
`rate_calculation` char(1) NOT NULL DEFAULT 'M',
`service_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`service_params` text NOT NULL,
`localization` varchar(255) NOT NULL DEFAULT '',
`tax_ids` varchar(255) NOT NULL DEFAULT '',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'D',
`yml_shipping_type` varchar(16) NOT NULL DEFAULT '',
`yml_outlet_ids` text NOT NULL,
UNIQUE KEY `shipping_id` (`shipping_id`),
KEY `position` (`position`),
KEY `localization` (`localization`),
KEY `c_status`
(`usergroup_ids`,`min_weight`,`max_weight`,`status`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipping_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_shipping_descriptions`;
CREATE TABLE `cscart_shipping_descriptions` (
`shipping_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`shipping` varchar(255) NOT NULL DEFAULT '',
`delivery_time` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`shipping_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipping_rates
-- ---------------------------DROP TABLE IF EXISTS `cscart_shipping_rates`;
CREATE TABLE `cscart_shipping_rates` (
`rate_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`shipping_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`destination_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`rate_value` text NOT NULL,
PRIMARY KEY (`rate_id`),
UNIQUE KEY `shipping_rate` (`shipping_id`,`destination_id`)
) ENGINE=MyISAM AUTO_INCREMENT=117 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipping_services

-- ---------------------------DROP TABLE IF EXISTS `cscart_shipping_services`;


CREATE TABLE `cscart_shipping_services` (
`service_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`module` varchar(32) NOT NULL DEFAULT '',
`code` varchar(64) NOT NULL DEFAULT '',
`sp_file` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`service_id`),
KEY `sa` (`service_id`,`status`)
) ENGINE=MyISAM AUTO_INCREMENT=503 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_shipping_service_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_shipping_service_descriptions`;
CREATE TABLE `cscart_shipping_service_descriptions` (
`service_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`description` varchar(255) NOT NULL DEFAULT '',
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`service_id`,`lang_code`)
) ENGINE=MyISAM AUTO_INCREMENT=503 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sitemap_links
-- ---------------------------DROP TABLE IF EXISTS `cscart_sitemap_links`;
CREATE TABLE `cscart_sitemap_links` (
`link_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`link_href` varchar(255) NOT NULL DEFAULT '',
`section_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'A',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`link_type` varchar(255) NOT NULL DEFAULT '',
`company_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`link_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_sitemap_sections
-- ---------------------------DROP TABLE IF EXISTS `cscart_sitemap_sections`;
CREATE TABLE `cscart_sitemap_sections` (
`section_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`section_type` varchar(255) NOT NULL DEFAULT '1',
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`company_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`section_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------

-- Table structure for cscart_states


-- ---------------------------DROP TABLE IF EXISTS `cscart_states`;
CREATE TABLE `cscart_states` (
`state_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`country_code` varchar(2) NOT NULL DEFAULT '',
`code` varchar(32) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`state_id`),
UNIQUE KEY `cs` (`country_code`,`code`),
KEY `code` (`code`),
KEY `country_code` (`country_code`)
) ENGINE=MyISAM AUTO_INCREMENT=702 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_state_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_state_descriptions`;
CREATE TABLE `cscart_state_descriptions` (
`state_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`state` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`state_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_static_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_static_data`;
CREATE TABLE `cscart_static_data` (
`param_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`param` varchar(255) NOT NULL DEFAULT '',
`param_2` varchar(255) NOT NULL DEFAULT '',
`param_3` varchar(255) NOT NULL DEFAULT '',
`param_4` varchar(255) NOT NULL DEFAULT '',
`param_5` varchar(255) NOT NULL DEFAULT '',
`section` char(1) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
`position` smallint(5) NOT NULL DEFAULT '0',
`parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id_path` varchar(255) NOT NULL DEFAULT '',
`localization` varchar(255) NOT NULL DEFAULT '',
`company_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`param_id`),
KEY `section` (`section`,`status`,`localization`),
KEY `position` (`position`)
) ENGINE=MyISAM AUTO_INCREMENT=152 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_static_data_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_static_data_descriptions`;

CREATE TABLE `cscart_static_data_descriptions` (


`param_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`descr` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`param_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_statuses
-- ---------------------------DROP TABLE IF EXISTS `cscart_statuses`;
CREATE TABLE `cscart_statuses` (
`status_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'O',
`is_default` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`status_id`),
UNIQUE KEY `status` (`status`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_status_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_status_data`;
CREATE TABLE `cscart_status_data` (
`status` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'O',
`param` char(255) NOT NULL DEFAULT '',
`value` char(255) NOT NULL DEFAULT 'Y',
PRIMARY KEY (`status`,`type`,`param`),
KEY `inventory` (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_status_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_status_descriptions`;
CREATE TABLE `cscart_status_descriptions` (
`status` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'O',
`description` varchar(255) NOT NULL DEFAULT '',
`email_subj` varchar(255) NOT NULL DEFAULT '',
`email_header` text NOT NULL,
`lang_code` char(2) NOT NULL DEFAULT '',
PRIMARY KEY (`status`,`type`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_storage_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_storage_data`;
CREATE TABLE `cscart_storage_data` (

`data_key` varchar(255) NOT NULL DEFAULT '',


`data` mediumblob NOT NULL,
PRIMARY KEY (`data_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_stored_sessions
-- ---------------------------DROP TABLE IF EXISTS `cscart_stored_sessions`;
CREATE TABLE `cscart_stored_sessions` (
`session_id` varchar(64) NOT NULL,
`expiry` int(11) unsigned NOT NULL,
`data` text NOT NULL,
PRIMARY KEY (`session_id`),
KEY `expiry` (`expiry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_store_locations
-- ---------------------------DROP TABLE IF EXISTS `cscart_store_locations`;
CREATE TABLE `cscart_store_locations` (
`store_location_id` mediumint(8) unsigned NOT NULL
AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`position` smallint(5) NOT NULL DEFAULT '0',
`country` char(2) NOT NULL DEFAULT '',
`latitude` double NOT NULL DEFAULT '0',
`longitude` double NOT NULL DEFAULT '0',
`localization` varchar(255) NOT NULL DEFAULT '',
`status` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`store_location_id`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_store_location_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_store_location_descriptions`;
CREATE TABLE `cscart_store_location_descriptions` (
`store_location_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`name` varchar(80) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
`city` varchar(60) NOT NULL DEFAULT '',
PRIMARY KEY (`store_location_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_subscribers
-- ---------------------------DROP TABLE IF EXISTS `cscart_subscribers`;

CREATE TABLE `cscart_subscribers` (


`subscriber_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(128) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`subscriber_id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_tags
-- ---------------------------DROP TABLE IF EXISTS `cscart_tags`;
CREATE TABLE `cscart_tags` (
`tag_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`tag` varchar(255) NOT NULL DEFAULT '',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`status` char(1) NOT NULL DEFAULT 'P',
PRIMARY KEY (`tag_id`),
UNIQUE KEY `tag` (`tag`,`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_tag_links
-- ---------------------------DROP TABLE IF EXISTS `cscart_tag_links`;
CREATE TABLE `cscart_tag_links` (
`tag_id` mediumint(8) unsigned NOT NULL,
`object_type` char(1) NOT NULL DEFAULT 'P',
`object_id` mediumint(8) unsigned NOT NULL,
`user_id` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`object_type`,`object_id`,`user_id`,`tag_id`),
KEY `tag_id` (`tag_id`),
KEY `user_id` (`user_id`),
KEY `ids` (`tag_id`,`user_id`,`object_type`,`object_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_taxes
-- ---------------------------DROP TABLE IF EXISTS `cscart_taxes`;
CREATE TABLE `cscart_taxes` (
`tax_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`address_type` char(1) NOT NULL DEFAULT 'S',
`status` char(1) NOT NULL DEFAULT 'D',
`price_includes_tax` char(1) NOT NULL DEFAULT 'N',
`display_including_tax` char(1) NOT NULL DEFAULT 'N',
`display_info` char(1) NOT NULL DEFAULT '',
`regnumber` varchar(255) NOT NULL DEFAULT '',
`priority` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`tax_id`),
KEY `c_status` (`status`)

) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;


-- ----------------------------- Table structure for cscart_tax_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_tax_descriptions`;
CREATE TABLE `cscart_tax_descriptions` (
`tax_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`tax` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`tax_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_tax_rates
-- ---------------------------DROP TABLE IF EXISTS `cscart_tax_rates`;
CREATE TABLE `cscart_tax_rates` (
`rate_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`tax_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`destination_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`rate_value` decimal(13,3) NOT NULL DEFAULT '0.000',
`rate_type` char(1) NOT NULL DEFAULT '',
PRIMARY KEY (`rate_id`),
UNIQUE KEY `tax_rate` (`tax_id`,`destination_id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_twigmo_settings
-- ---------------------------DROP TABLE IF EXISTS `cscart_twigmo_settings`;
CREATE TABLE `cscart_twigmo_settings` (
`name` varchar(255) NOT NULL,
`value` text NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_twigmo_stores
-- ---------------------------DROP TABLE IF EXISTS `cscart_twigmo_stores`;
CREATE TABLE `cscart_twigmo_stores` (
`company_id` int(10) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'C' COMMENT 'May be ''A'' for
admin or ''C'' for customer',
`access_id` char(6) NOT NULL,
`url` varchar(255) NOT NULL,
`home_page_content` varchar(255) NOT NULL DEFAULT
'home_page_blocks',
`url_for_twitter` varchar(255) NOT NULL,
`url_for_facebook` varchar(255) NOT NULL,
`logo_url` varchar(255) NOT NULL,

`favicon_url` varchar(255) NOT NULL,


`url_on_appstore` varchar(255) NOT NULL,
`url_on_googleplay` varchar(255) NOT NULL,
`geolocation` char(1) NOT NULL DEFAULT 'N',
`only_req_profile_fields` char(1) NOT NULL DEFAULT 'N',
`use_for_phones` char(1) NOT NULL DEFAULT 'Y',
`use_for_tablets` char(1) NOT NULL DEFAULT 'Y',
`plan_display_name` varchar(255) NOT NULL,
`repo_revision` int(11) unsigned NOT NULL,
PRIMARY KEY (`company_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_twigmo_ua_stat
-- ---------------------------DROP TABLE IF EXISTS `cscart_twigmo_ua_stat`;
CREATE TABLE `cscart_twigmo_ua_stat` (
`section` varchar(50) NOT NULL,
`value` varchar(255) NOT NULL,
`count` int(10) unsigned NOT NULL DEFAULT '0',
`month` date NOT NULL DEFAULT '0000-00-00',
PRIMARY KEY (`section`,`value`,`month`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_usergroups
-- ---------------------------DROP TABLE IF EXISTS `cscart_usergroups`;
CREATE TABLE `cscart_usergroups` (
`usergroup_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT '',
`type` char(1) NOT NULL DEFAULT 'C',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`usergroup_id`),
KEY `c_status` (`usergroup_id`,`status`),
KEY `status` (`status`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_usergroup_descriptions
-- ---------------------------DROP TABLE IF EXISTS `cscart_usergroup_descriptions`;
CREATE TABLE `cscart_usergroup_descriptions` (
`usergroup_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
`usergroup` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`usergroup_id`,`lang_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_usergroup_links
-- ----------------------------

DROP TABLE IF EXISTS `cscart_usergroup_links`;


CREATE TABLE `cscart_usergroup_links` (
`link_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL,
`usergroup_id` mediumint(8) unsigned NOT NULL,
`status` char(1) NOT NULL DEFAULT 'D',
PRIMARY KEY (`link_id`),
UNIQUE KEY `user_id` (`user_id`,`usergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_usergroup_privileges
-- ---------------------------DROP TABLE IF EXISTS `cscart_usergroup_privileges`;
CREATE TABLE `cscart_usergroup_privileges` (
`usergroup_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`privilege` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`usergroup_id`,`privilege`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_users
-- ---------------------------DROP TABLE IF EXISTS `cscart_users`;
CREATE TABLE `cscart_users` (
`user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`status` char(1) NOT NULL DEFAULT 'A',
`user_type` char(1) NOT NULL DEFAULT 'C',
`user_login` varchar(255) NOT NULL DEFAULT '',
`referer` varchar(255) NOT NULL DEFAULT '',
`is_root` char(1) NOT NULL DEFAULT 'N',
`company_id` int(11) unsigned NOT NULL DEFAULT '0',
`last_login` int(11) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`password` varchar(32) NOT NULL DEFAULT '',
`salt` varchar(10) NOT NULL DEFAULT '',
`firstname` varchar(128) NOT NULL DEFAULT '',
`lastname` varchar(128) NOT NULL DEFAULT '',
`company` varchar(255) NOT NULL DEFAULT '',
`email` varchar(128) NOT NULL DEFAULT '',
`phone` varchar(32) NOT NULL DEFAULT '',
`fax` varchar(32) NOT NULL DEFAULT '',
`url` varchar(128) NOT NULL DEFAULT '',
`tax_exempt` char(1) NOT NULL DEFAULT 'N',
`lang_code` char(2) NOT NULL DEFAULT '',
`birthday` int(11) NOT NULL,
`purchase_timestamp_from` int(11) NOT NULL DEFAULT '0',
`purchase_timestamp_to` int(11) NOT NULL DEFAULT '0',
`responsible_email` varchar(80) NOT NULL DEFAULT '',
`last_passwords` varchar(255) NOT NULL DEFAULT '',
`password_change_timestamp` int(11) unsigned NOT NULL DEFAULT
'0',

`api_key` varchar(32) NOT NULL DEFAULT '',


`janrain_identifier` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`user_id`),
KEY `user_login` (`user_login`),
KEY `uname` (`firstname`,`lastname`)
) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_user_data
-- ---------------------------DROP TABLE IF EXISTS `cscart_user_data`;
CREATE TABLE `cscart_user_data` (
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
`data` text NOT NULL,
PRIMARY KEY (`user_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_user_mailing_lists
-- ---------------------------DROP TABLE IF EXISTS `cscart_user_mailing_lists`;
CREATE TABLE `cscart_user_mailing_lists` (
`subscriber_id` mediumint(8) unsigned NOT NULL,
`list_id` mediumint(8) unsigned NOT NULL,
`activation_key` varchar(32) NOT NULL DEFAULT '',
`unsubscribe_key` varchar(32) NOT NULL DEFAULT '',
`confirmed` tinyint(3) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`lang_code` char(2) NOT NULL DEFAULT '',
UNIQUE KEY `subscriber_list` (`list_id`,`subscriber_id`),
KEY `subscriber_id` (`subscriber_id`),
KEY `list_id` (`list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_user_profiles
-- ---------------------------DROP TABLE IF EXISTS `cscart_user_profiles`;
CREATE TABLE `cscart_user_profiles` (
`profile_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`profile_type` char(1) NOT NULL DEFAULT 'P',
`b_firstname` varchar(128) NOT NULL DEFAULT '',
`b_lastname` varchar(128) NOT NULL DEFAULT '',
`b_address` varchar(255) NOT NULL DEFAULT '',
`b_address_2` varchar(255) NOT NULL DEFAULT '',
`b_city` varchar(64) NOT NULL DEFAULT '',
`b_county` varchar(32) NOT NULL DEFAULT '',
`b_state` varchar(32) NOT NULL DEFAULT '',
`b_country` char(2) NOT NULL DEFAULT '',
`b_zipcode` varchar(16) NOT NULL DEFAULT '',

`b_phone` varchar(32) NOT NULL DEFAULT '',


`s_firstname` varchar(128) NOT NULL DEFAULT '',
`s_lastname` varchar(128) NOT NULL DEFAULT '',
`s_address` varchar(255) NOT NULL DEFAULT '',
`s_address_2` varchar(255) NOT NULL DEFAULT '',
`s_city` varchar(255) NOT NULL DEFAULT '',
`s_county` varchar(32) NOT NULL DEFAULT '',
`s_state` varchar(32) NOT NULL DEFAULT '',
`s_country` char(2) NOT NULL DEFAULT '',
`s_zipcode` varchar(16) NOT NULL DEFAULT '',
`s_phone` varchar(32) NOT NULL DEFAULT '',
`s_address_type` varchar(255) NOT NULL DEFAULT '',
`profile_name` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`profile_id`),
KEY `uid_p` (`user_id`,`profile_type`),
KEY `profile_type` (`profile_type`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_user_session_products
-- ---------------------------DROP TABLE IF EXISTS `cscart_user_session_products`;
CREATE TABLE `cscart_user_session_products` (
`user_id` int(11) unsigned NOT NULL DEFAULT '0',
`timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT 'C',
`user_type` char(1) NOT NULL DEFAULT 'R',
`item_id` int(11) unsigned NOT NULL DEFAULT '0',
`item_type` char(1) NOT NULL DEFAULT 'P',
`product_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`amount` mediumint(8) unsigned NOT NULL DEFAULT '1',
`price` decimal(12,2) NOT NULL DEFAULT '0.00',
`extra` text NOT NULL,
`session_id` varchar(64) NOT NULL DEFAULT '',
`ip_address` varchar(15) NOT NULL DEFAULT '',
PRIMARY KEY (`user_id`,`type`,`item_id`,`user_type`),
KEY `timestamp` (`timestamp`,`user_type`),
KEY `session_id` (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_vendor_payouts
-- ---------------------------DROP TABLE IF EXISTS `cscart_vendor_payouts`;
CREATE TABLE `cscart_vendor_payouts` (
`payout_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(11) unsigned NOT NULL,
`order_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`payout_date` int(11) unsigned NOT NULL DEFAULT '0',
`start_date` int(11) unsigned NOT NULL DEFAULT '0',
`end_date` int(11) unsigned NOT NULL DEFAULT '0',
`payout_amount` decimal(12,2) NOT NULL DEFAULT '0.00',

`order_amount` decimal(12,2) NOT NULL DEFAULT '0.00',


`commission_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
`payment_method` varchar(255) NOT NULL DEFAULT '',
`comments` text NOT NULL,
`commission` decimal(12,2) NOT NULL DEFAULT '0.00',
`commission_type` char(1) NOT NULL DEFAULT 'A',
PRIMARY KEY (`payout_id`),
KEY `company_id` (`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=54 DEFAULT CHARSET=utf8;
-- ----------------------------- Table structure for cscart_views
-- ---------------------------DROP TABLE IF EXISTS `cscart_views`;
CREATE TABLE `cscart_views` (
`view_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`object` varchar(24) NOT NULL DEFAULT '',
`name` varchar(32) NOT NULL DEFAULT '',
`params` text NOT NULL,
`view_results` text NOT NULL,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`active` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`view_id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;

Potrebbero piacerti anche