Anda di halaman 1dari 28

/* SQLyog Ultimate v9.02 MySQL - 5.6.10 : Database - hkkind ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!

40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`hkkind` /*!40100 DEFAULT CHARACTER SET latin1 */; /*Table structure for table `ecs_account_log` */ DROP TABLE IF EXISTS `ecs_account_log`; CREATE TABLE `ecs_account_log` ( `log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL, `user_money` decimal(10,2) NOT NULL, `frozen_money` decimal(10,2) NOT NULL, `rank_points` mediumint(9) NOT NULL, `pay_points` mediumint(9) NOT NULL, `change_time` int(10) unsigned NOT NULL, `change_desc` varchar(255) NOT NULL, `change_type` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`log_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_ad` */ DROP TABLE IF EXISTS `ecs_ad`; CREATE TABLE `ecs_ad` ( `ad_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `position_id` smallint(5) unsigned NOT NULL DEFAULT '0', `media_type` tinyint(3) unsigned NOT NULL DEFAULT '0', `ad_name` varchar(60) NOT NULL DEFAULT '', `ad_link` varchar(255) NOT NULL DEFAULT '', `ad_code` text NOT NULL, `start_time` int(11) NOT NULL DEFAULT '0', `end_time` int(11) NOT NULL DEFAULT '0', `link_man` varchar(60) NOT NULL DEFAULT '', `link_email` varchar(60) NOT NULL DEFAULT '', `link_phone` varchar(60) NOT NULL DEFAULT '', `click_count` mediumint(8) unsigned NOT NULL DEFAULT '0', `enabled` tinyint(3) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`ad_id`), KEY `position_id` (`position_id`), KEY `enabled` (`enabled`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_ad_custom` */

DROP TABLE IF EXISTS `ecs_ad_custom`; CREATE TABLE `ecs_ad_custom` ( `ad_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `ad_type` tinyint(1) unsigned NOT NULL DEFAULT '1', `ad_name` varchar(60) DEFAULT NULL, `add_time` int(10) unsigned NOT NULL DEFAULT '0', `content` mediumtext, `url` varchar(255) DEFAULT NULL, `ad_status` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ad_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_ad_position` */ DROP TABLE IF EXISTS `ecs_ad_position`; CREATE TABLE `ecs_ad_position` ( `position_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `position_name` varchar(60) NOT NULL DEFAULT '', `ad_width` smallint(5) unsigned NOT NULL DEFAULT '0', `ad_height` smallint(5) unsigned NOT NULL DEFAULT '0', `position_desc` varchar(255) NOT NULL DEFAULT '', `position_style` text NOT NULL, PRIMARY KEY (`position_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_admin_action` */ DROP TABLE IF EXISTS `ecs_admin_action`; CREATE TABLE `ecs_admin_action` ( `action_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `parent_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `action_code` varchar(20) NOT NULL DEFAULT '', `relevance` varchar(20) NOT NULL DEFAULT '', PRIMARY KEY (`action_id`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM AUTO_INCREMENT=136 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_admin_log` */ DROP TABLE IF EXISTS `ecs_admin_log`; CREATE TABLE `ecs_admin_log` ( `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `log_time` int(10) unsigned NOT NULL DEFAULT '0', `user_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `log_info` varchar(255) NOT NULL DEFAULT '', `ip_address` varchar(15) NOT NULL DEFAULT '', PRIMARY KEY (`log_id`), KEY `log_time` (`log_time`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=505 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_admin_message` */ DROP TABLE IF EXISTS `ecs_admin_message`;

CREATE TABLE `ecs_admin_message` ( `message_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `sender_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `receiver_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `sent_time` int(11) unsigned NOT NULL DEFAULT '0', `read_time` int(11) unsigned NOT NULL DEFAULT '0', `readed` tinyint(1) unsigned NOT NULL DEFAULT '0', `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', `title` varchar(150) NOT NULL DEFAULT '', `message` text NOT NULL, PRIMARY KEY (`message_id`), KEY `sender_id` (`sender_id`,`receiver_id`), KEY `receiver_id` (`receiver_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_admin_user` */ DROP TABLE IF EXISTS `ecs_admin_user`; CREATE TABLE `ecs_admin_user` ( `user_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(60) NOT NULL DEFAULT '', `email` varchar(60) NOT NULL DEFAULT '', `password` varchar(32) NOT NULL DEFAULT '', `ec_salt` varchar(10) DEFAULT NULL, `add_time` int(11) NOT NULL DEFAULT '0', `last_login` int(11) NOT NULL DEFAULT '0', `last_ip` varchar(15) NOT NULL DEFAULT '', `action_list` text NOT NULL, `nav_list` text NOT NULL, `lang_type` varchar(50) NOT NULL DEFAULT '', `agency_id` smallint(5) unsigned NOT NULL, `suppliers_id` smallint(5) unsigned DEFAULT '0', `todolist` longtext, `role_id` smallint(5) DEFAULT NULL, PRIMARY KEY (`user_id`), KEY `user_name` (`user_name`), KEY `agency_id` (`agency_id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_adsense` */ DROP TABLE IF EXISTS `ecs_adsense`; CREATE TABLE `ecs_adsense` ( `from_ad` smallint(5) NOT NULL DEFAULT '0', `referer` varchar(255) NOT NULL DEFAULT '', `clicks` int(10) unsigned NOT NULL DEFAULT '0', KEY `from_ad` (`from_ad`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_affiliate_log` */ DROP TABLE IF EXISTS `ecs_affiliate_log`; CREATE TABLE `ecs_affiliate_log` ( `log_id` mediumint(8) NOT NULL AUTO_INCREMENT, `order_id` mediumint(8) NOT NULL, `time` int(10) NOT NULL, `user_id` mediumint(8) NOT NULL,

`user_name` varchar(60) DEFAULT NULL, `money` decimal(10,2) NOT NULL DEFAULT '0.00', `point` int(10) NOT NULL DEFAULT '0', `separate_type` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`log_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_agency` */ DROP TABLE IF EXISTS `ecs_agency`; CREATE TABLE `ecs_agency` ( `agency_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `agency_name` varchar(255) NOT NULL, `agency_desc` text NOT NULL, PRIMARY KEY (`agency_id`), KEY `agency_name` (`agency_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_area_region` */ DROP TABLE IF EXISTS `ecs_area_region`; CREATE TABLE `ecs_area_region` ( `shipping_area_id` smallint(5) unsigned NOT NULL DEFAULT '0', `region_id` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`shipping_area_id`,`region_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_article` */ DROP TABLE IF EXISTS `ecs_article`; CREATE TABLE `ecs_article` ( `article_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `cat_id` smallint(5) NOT NULL DEFAULT '0', `title` varchar(150) NOT NULL DEFAULT '', `content` longtext NOT NULL, `author` varchar(30) NOT NULL DEFAULT '', `author_email` varchar(60) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', `article_type` tinyint(1) unsigned NOT NULL DEFAULT '2', `is_open` tinyint(1) unsigned NOT NULL DEFAULT '1', `add_time` int(10) unsigned NOT NULL DEFAULT '0', `file_url` varchar(255) NOT NULL DEFAULT '', `open_type` tinyint(1) unsigned NOT NULL DEFAULT '0', `link` varchar(255) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, PRIMARY KEY (`article_id`), KEY `cat_id` (`cat_id`) ) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_article_cat` */ DROP TABLE IF EXISTS `ecs_article_cat`; CREATE TABLE `ecs_article_cat` ( `cat_id` smallint(5) NOT NULL AUTO_INCREMENT, `cat_name` varchar(255) NOT NULL DEFAULT '', `cat_type` tinyint(1) unsigned NOT NULL DEFAULT '1',

`keywords` varchar(255) NOT NULL DEFAULT '', `cat_desc` varchar(255) NOT NULL DEFAULT '', `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '50', `show_in_nav` tinyint(1) unsigned NOT NULL DEFAULT '0', `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`cat_id`), KEY `cat_type` (`cat_type`), KEY `sort_order` (`sort_order`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_attribute` */ DROP TABLE IF EXISTS `ecs_attribute`; CREATE TABLE `ecs_attribute` ( `attr_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0', `attr_name` varchar(60) NOT NULL DEFAULT '', `attr_input_type` tinyint(1) unsigned NOT NULL DEFAULT '1', `attr_type` tinyint(1) unsigned NOT NULL DEFAULT '1', `attr_values` text NOT NULL, `attr_index` tinyint(1) unsigned NOT NULL DEFAULT '0', `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '0', `is_linked` tinyint(1) unsigned NOT NULL DEFAULT '0', `attr_group` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`attr_id`), KEY `cat_id` (`cat_id`) ) ENGINE=MyISAM AUTO_INCREMENT=211 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_auction_log` */ DROP TABLE IF EXISTS `ecs_auction_log`; CREATE TABLE `ecs_auction_log` ( `log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `act_id` mediumint(8) unsigned NOT NULL, `bid_user` mediumint(8) unsigned NOT NULL, `bid_price` decimal(10,2) unsigned NOT NULL, `bid_time` int(10) unsigned NOT NULL, PRIMARY KEY (`log_id`), KEY `act_id` (`act_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_auto_manage` */ DROP TABLE IF EXISTS `ecs_auto_manage`; CREATE TABLE `ecs_auto_manage` ( `item_id` mediumint(8) NOT NULL, `type` varchar(10) NOT NULL, `starttime` int(10) NOT NULL, `endtime` int(10) NOT NULL, PRIMARY KEY (`item_id`,`type`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_back_goods` */ DROP TABLE IF EXISTS `ecs_back_goods`;

CREATE TABLE `ecs_back_goods` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `back_id` mediumint(8) unsigned DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `product_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `product_sn` varchar(60) DEFAULT NULL, `goods_name` varchar(120) DEFAULT NULL, `brand_name` varchar(60) DEFAULT NULL, `goods_sn` varchar(60) DEFAULT NULL, `is_real` tinyint(1) unsigned DEFAULT '0', `send_number` smallint(5) unsigned DEFAULT '0', `goods_attr` text, PRIMARY KEY (`rec_id`), KEY `back_id` (`back_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_back_order` */ DROP TABLE IF EXISTS `ecs_back_order`; CREATE TABLE `ecs_back_order` ( `back_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `delivery_sn` varchar(20) NOT NULL, `order_sn` varchar(20) NOT NULL, `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `invoice_no` varchar(50) DEFAULT NULL, `add_time` int(10) unsigned DEFAULT '0', `shipping_id` tinyint(3) unsigned DEFAULT '0', `shipping_name` varchar(120) DEFAULT NULL, `user_id` mediumint(8) unsigned DEFAULT '0', `action_user` varchar(30) DEFAULT NULL, `consignee` varchar(60) DEFAULT NULL, `address` varchar(250) DEFAULT NULL, `country` smallint(5) unsigned DEFAULT '0', `province` smallint(5) unsigned DEFAULT '0', `city` smallint(5) unsigned DEFAULT '0', `district` smallint(5) unsigned DEFAULT '0', `sign_building` varchar(120) DEFAULT NULL, `email` varchar(60) DEFAULT NULL, `zipcode` varchar(60) DEFAULT NULL, `tel` varchar(60) DEFAULT NULL, `mobile` varchar(60) DEFAULT NULL, `best_time` varchar(120) DEFAULT NULL, `postscript` varchar(255) DEFAULT NULL, `how_oos` varchar(120) DEFAULT NULL, `insure_fee` decimal(10,2) unsigned DEFAULT '0.00', `shipping_fee` decimal(10,2) unsigned DEFAULT '0.00', `update_time` int(10) unsigned DEFAULT '0', `suppliers_id` smallint(5) DEFAULT '0', `status` tinyint(1) unsigned NOT NULL DEFAULT '0', `return_time` int(10) unsigned DEFAULT '0', `agency_id` smallint(5) unsigned DEFAULT '0', PRIMARY KEY (`back_id`), KEY `user_id` (`user_id`), KEY `order_id` (`order_id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_bonus_type` */

DROP TABLE IF EXISTS `ecs_bonus_type`; CREATE TABLE `ecs_bonus_type` ( `type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `type_name` varchar(60) NOT NULL DEFAULT '', `type_money` decimal(10,2) NOT NULL DEFAULT '0.00', `send_type` tinyint(3) unsigned NOT NULL DEFAULT '0', `min_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `max_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `send_start_date` int(11) NOT NULL DEFAULT '0', `send_end_date` int(11) NOT NULL DEFAULT '0', `use_start_date` int(11) NOT NULL DEFAULT '0', `use_end_date` int(11) NOT NULL DEFAULT '0', `min_goods_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', PRIMARY KEY (`type_id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_booking_goods` */ DROP TABLE IF EXISTS `ecs_booking_goods`; CREATE TABLE `ecs_booking_goods` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `email` varchar(60) NOT NULL DEFAULT '', `link_man` varchar(60) NOT NULL DEFAULT '', `tel` varchar(60) NOT NULL DEFAULT '', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_desc` varchar(255) NOT NULL DEFAULT '', `goods_number` smallint(5) unsigned NOT NULL DEFAULT '0', `booking_time` int(10) unsigned NOT NULL DEFAULT '0', `is_dispose` tinyint(1) unsigned NOT NULL DEFAULT '0', `dispose_user` varchar(30) NOT NULL DEFAULT '', `dispose_time` int(10) unsigned NOT NULL DEFAULT '0', `dispose_note` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`rec_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_brand` */ DROP TABLE IF EXISTS `ecs_brand`; CREATE TABLE `ecs_brand` ( `brand_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brand_name` varchar(60) NOT NULL DEFAULT '', `brand_logo` varchar(80) NOT NULL DEFAULT '', `brand_desc` text NOT NULL, `site_url` varchar(255) NOT NULL DEFAULT '', `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '50', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`brand_id`), KEY `is_show` (`is_show`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_card` */ DROP TABLE IF EXISTS `ecs_card`; CREATE TABLE `ecs_card` (

`card_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `card_name` varchar(120) NOT NULL DEFAULT '', `card_img` varchar(255) NOT NULL DEFAULT '', `card_fee` decimal(6,2) unsigned NOT NULL DEFAULT '0.00', `free_money` decimal(6,2) unsigned NOT NULL DEFAULT '0.00', `card_desc` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`card_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_cart` */ DROP TABLE IF EXISTS `ecs_cart`; CREATE TABLE `ecs_cart` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `session_id` char(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_sn` varchar(60) NOT NULL DEFAULT '', `product_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_name` varchar(120) NOT NULL DEFAULT '', `market_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00', `goods_number` smallint(5) unsigned NOT NULL DEFAULT '0', `goods_attr` text NOT NULL, `is_real` tinyint(1) unsigned NOT NULL DEFAULT '0', `extension_code` varchar(30) NOT NULL DEFAULT '', `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `rec_type` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_gift` smallint(5) unsigned NOT NULL DEFAULT '0', `is_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0', `can_handsel` tinyint(3) unsigned NOT NULL DEFAULT '0', `goods_attr_id` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`rec_id`), KEY `session_id` (`session_id`) ) ENGINE=MyISAM AUTO_INCREMENT=80 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_cat_recommend` */ DROP TABLE IF EXISTS `ecs_cat_recommend`; CREATE TABLE `ecs_cat_recommend` ( `cat_id` smallint(5) NOT NULL, `recommend_type` tinyint(1) NOT NULL, PRIMARY KEY (`cat_id`,`recommend_type`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_category` */ DROP TABLE IF EXISTS `ecs_category`; CREATE TABLE `ecs_category` ( `cat_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `cat_name` varchar(90) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', `cat_desc` varchar(255) NOT NULL DEFAULT '', `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', `sort_order` tinyint(1) unsigned NOT NULL DEFAULT '50', `template_file` varchar(50) NOT NULL DEFAULT '', `measure_unit` varchar(15) NOT NULL DEFAULT '',

`show_in_nav` tinyint(1) NOT NULL DEFAULT '0', `style` varchar(150) NOT NULL, `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1', `grade` tinyint(4) NOT NULL DEFAULT '0', `filter_attr` varchar(255) NOT NULL DEFAULT '0', PRIMARY KEY (`cat_id`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_collect_goods` */ DROP TABLE IF EXISTS `ecs_collect_goods`; CREATE TABLE `ecs_collect_goods` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `add_time` int(11) unsigned NOT NULL DEFAULT '0', `is_attention` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`rec_id`), KEY `user_id` (`user_id`), KEY `goods_id` (`goods_id`), KEY `is_attention` (`is_attention`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_comment` */ DROP TABLE IF EXISTS `ecs_comment`; CREATE TABLE `ecs_comment` ( `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `comment_type` tinyint(3) unsigned NOT NULL DEFAULT '0', `id_value` mediumint(8) unsigned NOT NULL DEFAULT '0', `email` varchar(60) NOT NULL DEFAULT '', `user_name` varchar(60) NOT NULL DEFAULT '', `content` text NOT NULL, `comment_rank` tinyint(1) unsigned NOT NULL DEFAULT '0', `add_time` int(10) unsigned NOT NULL DEFAULT '0', `ip_address` varchar(15) NOT NULL DEFAULT '', `status` tinyint(3) unsigned NOT NULL DEFAULT '0', `parent_id` int(10) unsigned NOT NULL DEFAULT '0', `user_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`comment_id`), KEY `parent_id` (`parent_id`), KEY `id_value` (`id_value`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_crons` */ DROP TABLE IF EXISTS `ecs_crons`; CREATE TABLE `ecs_crons` ( `cron_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `cron_code` varchar(20) NOT NULL, `cron_name` varchar(120) NOT NULL, `cron_desc` text, `cron_order` tinyint(3) unsigned NOT NULL DEFAULT '0', `cron_config` text NOT NULL, `thistime` int(10) NOT NULL DEFAULT '0', `nextime` int(10) NOT NULL,

`day` tinyint(2) NOT NULL, `week` varchar(1) NOT NULL, `hour` varchar(2) NOT NULL, `minute` varchar(255) NOT NULL, `enable` tinyint(1) NOT NULL DEFAULT '1', `run_once` tinyint(1) NOT NULL DEFAULT '0', `allow_ip` varchar(100) NOT NULL DEFAULT '', `alow_files` varchar(255) NOT NULL, PRIMARY KEY (`cron_id`), KEY `nextime` (`nextime`), KEY `enable` (`enable`), KEY `cron_code` (`cron_code`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_delivery_goods` */ DROP TABLE IF EXISTS `ecs_delivery_goods`; CREATE TABLE `ecs_delivery_goods` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `delivery_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `product_id` mediumint(8) unsigned DEFAULT '0', `product_sn` varchar(60) DEFAULT NULL, `goods_name` varchar(120) DEFAULT NULL, `brand_name` varchar(60) DEFAULT NULL, `goods_sn` varchar(60) DEFAULT NULL, `is_real` tinyint(1) unsigned DEFAULT '0', `extension_code` varchar(30) DEFAULT NULL, `parent_id` mediumint(8) unsigned DEFAULT '0', `send_number` smallint(5) unsigned DEFAULT '0', `goods_attr` text, PRIMARY KEY (`rec_id`), KEY `delivery_id` (`delivery_id`,`goods_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_delivery_order` */ DROP TABLE IF EXISTS `ecs_delivery_order`; CREATE TABLE `ecs_delivery_order` ( `delivery_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `delivery_sn` varchar(20) NOT NULL, `order_sn` varchar(20) NOT NULL, `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `invoice_no` varchar(50) DEFAULT NULL, `add_time` int(10) unsigned DEFAULT '0', `shipping_id` tinyint(3) unsigned DEFAULT '0', `shipping_name` varchar(120) DEFAULT NULL, `user_id` mediumint(8) unsigned DEFAULT '0', `action_user` varchar(30) DEFAULT NULL, `consignee` varchar(60) DEFAULT NULL, `address` varchar(250) DEFAULT NULL, `country` smallint(5) unsigned DEFAULT '0', `province` smallint(5) unsigned DEFAULT '0', `city` smallint(5) unsigned DEFAULT '0', `district` smallint(5) unsigned DEFAULT '0', `sign_building` varchar(120) DEFAULT NULL, `email` varchar(60) DEFAULT NULL,

`zipcode` varchar(60) DEFAULT NULL, `tel` varchar(60) DEFAULT NULL, `mobile` varchar(60) DEFAULT NULL, `best_time` varchar(120) DEFAULT NULL, `postscript` varchar(255) DEFAULT NULL, `how_oos` varchar(120) DEFAULT NULL, `insure_fee` decimal(10,2) unsigned DEFAULT '0.00', `shipping_fee` decimal(10,2) unsigned DEFAULT '0.00', `update_time` int(10) unsigned DEFAULT '0', `suppliers_id` smallint(5) DEFAULT '0', `status` tinyint(1) unsigned NOT NULL DEFAULT '0', `agency_id` smallint(5) unsigned DEFAULT '0', PRIMARY KEY (`delivery_id`), KEY `user_id` (`user_id`), KEY `order_id` (`order_id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_email_list` */ DROP TABLE IF EXISTS `ecs_email_list`; CREATE TABLE `ecs_email_list` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `email` varchar(60) NOT NULL, `stat` tinyint(1) NOT NULL DEFAULT '0', `hash` varchar(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_email_sendlist` */ DROP TABLE IF EXISTS `ecs_email_sendlist`; CREATE TABLE `ecs_email_sendlist` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `email` varchar(100) NOT NULL, `template_id` mediumint(8) NOT NULL, `email_content` text NOT NULL, `error` tinyint(1) NOT NULL DEFAULT '0', `pri` tinyint(10) NOT NULL, `last_send` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_error_log` */ DROP TABLE IF EXISTS `ecs_error_log`; CREATE TABLE `ecs_error_log` ( `id` int(10) NOT NULL AUTO_INCREMENT, `info` varchar(255) NOT NULL, `file` varchar(100) NOT NULL, `time` int(10) NOT NULL, PRIMARY KEY (`id`), KEY `time` (`time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_exchange_goods` */ DROP TABLE IF EXISTS `ecs_exchange_goods`;

CREATE TABLE `ecs_exchange_goods` ( `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `exchange_integral` int(10) unsigned NOT NULL DEFAULT '0', `is_exchange` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`goods_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_favourable_activity` */ DROP TABLE IF EXISTS `ecs_favourable_activity`; CREATE TABLE `ecs_favourable_activity` ( `act_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `act_name` varchar(255) NOT NULL, `start_time` int(10) unsigned NOT NULL, `end_time` int(10) unsigned NOT NULL, `user_rank` varchar(255) NOT NULL, `act_range` tinyint(3) unsigned NOT NULL, `act_range_ext` varchar(255) NOT NULL, `min_amount` decimal(10,2) unsigned NOT NULL, `max_amount` decimal(10,2) unsigned NOT NULL, `act_type` tinyint(3) unsigned NOT NULL, `act_type_ext` decimal(10,2) unsigned NOT NULL, `gift` text NOT NULL, `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '50', PRIMARY KEY (`act_id`), KEY `act_name` (`act_name`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_feedback` */ DROP TABLE IF EXISTS `ecs_feedback`; CREATE TABLE `ecs_feedback` ( `msg_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `user_name` varchar(60) NOT NULL DEFAULT '', `user_email` varchar(60) NOT NULL DEFAULT '', `msg_title` varchar(200) NOT NULL DEFAULT '', `msg_type` tinyint(1) unsigned NOT NULL DEFAULT '0', `msg_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `msg_content` text NOT NULL, `msg_time` int(10) unsigned NOT NULL DEFAULT '0', `message_img` varchar(255) NOT NULL DEFAULT '0', `order_id` int(11) unsigned NOT NULL DEFAULT '0', `msg_area` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`msg_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_friend_link` */ DROP TABLE IF EXISTS `ecs_friend_link`; CREATE TABLE `ecs_friend_link` ( `link_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `link_name` varchar(255) NOT NULL DEFAULT '',

`link_url` varchar(255) NOT NULL DEFAULT '', `link_logo` varchar(255) NOT NULL DEFAULT '', `show_order` tinyint(3) unsigned NOT NULL DEFAULT '50', PRIMARY KEY (`link_id`), KEY `show_order` (`show_order`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods` */ DROP TABLE IF EXISTS `ecs_goods`; CREATE TABLE `ecs_goods` ( `goods_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0', `goods_sn` varchar(60) NOT NULL DEFAULT '', `goods_name` varchar(120) NOT NULL DEFAULT '', `goods_name_style` varchar(60) NOT NULL DEFAULT '+', `click_count` int(10) unsigned NOT NULL DEFAULT '0', `brand_id` smallint(5) unsigned NOT NULL DEFAULT '0', `provider_name` varchar(100) NOT NULL DEFAULT '', `goods_number` smallint(5) unsigned NOT NULL DEFAULT '0', `goods_weight` decimal(10,3) unsigned NOT NULL DEFAULT '0.000', `market_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `shop_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `promote_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `promote_start_date` int(11) unsigned NOT NULL DEFAULT '0', `promote_end_date` int(11) unsigned NOT NULL DEFAULT '0', `warn_number` tinyint(3) unsigned NOT NULL DEFAULT '1', `keywords` varchar(255) NOT NULL DEFAULT '', `goods_brief` varchar(255) NOT NULL DEFAULT '', `goods_desc` text NOT NULL, `goods_thumb` varchar(255) NOT NULL DEFAULT '', `goods_img` varchar(255) NOT NULL DEFAULT '', `original_img` varchar(255) NOT NULL DEFAULT '', `is_real` tinyint(3) unsigned NOT NULL DEFAULT '1', `extension_code` varchar(30) NOT NULL DEFAULT '', `is_on_sale` tinyint(1) unsigned NOT NULL DEFAULT '1', `is_alone_sale` tinyint(1) unsigned NOT NULL DEFAULT '1', `is_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0', `integral` int(10) unsigned NOT NULL DEFAULT '0', `add_time` int(10) unsigned NOT NULL DEFAULT '0', `sort_order` smallint(4) unsigned NOT NULL DEFAULT '100', `is_delete` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_best` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_new` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_promote` tinyint(1) unsigned NOT NULL DEFAULT '0', `bonus_type_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `last_update` int(10) unsigned NOT NULL DEFAULT '0', `goods_type` smallint(5) unsigned NOT NULL DEFAULT '0', `seller_note` varchar(255) NOT NULL DEFAULT '', `give_integral` int(11) NOT NULL DEFAULT '-1', `rank_integral` int(11) NOT NULL DEFAULT '-1', `suppliers_id` smallint(5) unsigned DEFAULT NULL, `is_check` tinyint(1) unsigned DEFAULT NULL, PRIMARY KEY (`goods_id`), KEY `goods_sn` (`goods_sn`), KEY `cat_id` (`cat_id`), KEY `last_update` (`last_update`), KEY `brand_id` (`brand_id`),

KEY `goods_weight` (`goods_weight`), KEY `promote_end_date` (`promote_end_date`), KEY `promote_start_date` (`promote_start_date`), KEY `goods_number` (`goods_number`), KEY `sort_order` (`sort_order`) ) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_activity` */ DROP TABLE IF EXISTS `ecs_goods_activity`; CREATE TABLE `ecs_goods_activity` ( `act_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `act_name` varchar(255) NOT NULL, `act_desc` text NOT NULL, `act_type` tinyint(3) unsigned NOT NULL, `goods_id` mediumint(8) unsigned NOT NULL, `product_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_name` varchar(255) NOT NULL, `start_time` int(10) unsigned NOT NULL, `end_time` int(10) unsigned NOT NULL, `is_finished` tinyint(3) unsigned NOT NULL, `ext_info` text NOT NULL, PRIMARY KEY (`act_id`), KEY `act_name` (`act_name`,`act_type`,`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_article` */ DROP TABLE IF EXISTS `ecs_goods_article`; CREATE TABLE `ecs_goods_article` ( `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `article_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `admin_id` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`goods_id`,`article_id`,`admin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_attr` */ DROP TABLE IF EXISTS `ecs_goods_attr`; CREATE TABLE `ecs_goods_attr` ( `goods_attr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `attr_id` smallint(5) unsigned NOT NULL DEFAULT '0', `attr_value` text NOT NULL, `attr_price` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`goods_attr_id`), KEY `goods_id` (`goods_id`), KEY `attr_id` (`attr_id`) ) ENGINE=MyISAM AUTO_INCREMENT=241 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_cat` */ DROP TABLE IF EXISTS `ecs_goods_cat`; CREATE TABLE `ecs_goods_cat` ( `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0',

PRIMARY KEY (`goods_id`,`cat_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_gallery` */ DROP TABLE IF EXISTS `ecs_goods_gallery`; CREATE TABLE `ecs_goods_gallery` ( `img_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `img_url` varchar(255) NOT NULL DEFAULT '', `img_desc` varchar(255) NOT NULL DEFAULT '', `thumb_url` varchar(255) NOT NULL DEFAULT '', `img_original` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`img_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=44 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_goods_type` */ DROP TABLE IF EXISTS `ecs_goods_type`; CREATE TABLE `ecs_goods_type` ( `cat_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `cat_name` varchar(60) NOT NULL DEFAULT '', `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1', `attr_group` varchar(255) NOT NULL, PRIMARY KEY (`cat_id`) ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_group_goods` */ DROP TABLE IF EXISTS `ecs_group_goods`; CREATE TABLE `ecs_group_goods` ( `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', `admin_id` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`parent_id`,`goods_id`,`admin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_keywords` */ DROP TABLE IF EXISTS `ecs_keywords`; CREATE TABLE `ecs_keywords` ( `date` date NOT NULL DEFAULT '0000-00-00', `searchengine` varchar(20) NOT NULL DEFAULT '', `keyword` varchar(90) NOT NULL DEFAULT '', `count` mediumint(8) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`date`,`searchengine`,`keyword`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_link_goods` */ DROP TABLE IF EXISTS `ecs_link_goods`; CREATE TABLE `ecs_link_goods` ( `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0',

`link_goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `is_double` tinyint(1) unsigned NOT NULL DEFAULT '0', `admin_id` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`goods_id`,`link_goods_id`,`admin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_mail_templates` */ DROP TABLE IF EXISTS `ecs_mail_templates`; CREATE TABLE `ecs_mail_templates` ( `template_id` tinyint(1) unsigned NOT NULL AUTO_INCREMENT, `template_code` varchar(30) NOT NULL DEFAULT '', `is_html` tinyint(1) unsigned NOT NULL DEFAULT '0', `template_subject` varchar(200) NOT NULL DEFAULT '', `template_content` text NOT NULL, `last_modify` int(10) unsigned NOT NULL DEFAULT '0', `last_send` int(10) unsigned NOT NULL DEFAULT '0', `type` varchar(10) NOT NULL, PRIMARY KEY (`template_id`), UNIQUE KEY `template_code` (`template_code`), KEY `type` (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_member_price` */ DROP TABLE IF EXISTS `ecs_member_price`; CREATE TABLE `ecs_member_price` ( `price_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `user_rank` tinyint(3) NOT NULL DEFAULT '0', `user_price` decimal(10,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`price_id`), KEY `goods_id` (`goods_id`,`user_rank`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_nav` */ DROP TABLE IF EXISTS `ecs_nav`; CREATE TABLE `ecs_nav` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `ctype` varchar(10) DEFAULT NULL, `cid` smallint(5) unsigned DEFAULT NULL, `name` varchar(255) NOT NULL, `ifshow` tinyint(1) NOT NULL, `vieworder` tinyint(1) NOT NULL, `opennew` tinyint(1) NOT NULL, `url` varchar(255) NOT NULL, `type` varchar(10) NOT NULL, PRIMARY KEY (`id`), KEY `type` (`type`), KEY `ifshow` (`ifshow`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_order_action` */ DROP TABLE IF EXISTS `ecs_order_action`;

CREATE TABLE `ecs_order_action` ( `action_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `action_user` varchar(30) NOT NULL DEFAULT '', `order_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `shipping_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `pay_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `action_place` tinyint(1) unsigned NOT NULL DEFAULT '0', `action_note` varchar(255) NOT NULL DEFAULT '', `log_time` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`action_id`), KEY `order_id` (`order_id`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_order_goods` */ DROP TABLE IF EXISTS `ecs_order_goods`; CREATE TABLE `ecs_order_goods` ( `rec_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_name` varchar(120) NOT NULL DEFAULT '', `goods_sn` varchar(60) NOT NULL DEFAULT '', `product_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_number` smallint(5) unsigned NOT NULL DEFAULT '1', `market_price` decimal(10,2) NOT NULL DEFAULT '0.00', `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00', `goods_attr` text NOT NULL, `send_number` smallint(5) unsigned NOT NULL DEFAULT '0', `is_real` tinyint(1) unsigned NOT NULL DEFAULT '0', `extension_code` varchar(30) NOT NULL DEFAULT '', `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `is_gift` smallint(5) unsigned NOT NULL DEFAULT '0', `goods_attr_id` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`rec_id`), KEY `order_id` (`order_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_order_info` */ DROP TABLE IF EXISTS `ecs_order_info`; CREATE TABLE `ecs_order_info` ( `order_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `order_sn` varchar(20) NOT NULL DEFAULT '', `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `order_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `shipping_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `pay_status` tinyint(1) unsigned NOT NULL DEFAULT '0', `consignee` varchar(60) NOT NULL DEFAULT '', `country` smallint(5) unsigned NOT NULL DEFAULT '0', `province` smallint(5) unsigned NOT NULL DEFAULT '0', `city` smallint(5) unsigned NOT NULL DEFAULT '0', `district` smallint(5) unsigned NOT NULL DEFAULT '0', `address` varchar(255) NOT NULL DEFAULT '', `zipcode` varchar(60) NOT NULL DEFAULT '', `tel` varchar(60) NOT NULL DEFAULT '', `mobile` varchar(60) NOT NULL DEFAULT '',

`email` varchar(60) NOT NULL DEFAULT '', `best_time` varchar(120) NOT NULL DEFAULT '', `sign_building` varchar(120) NOT NULL DEFAULT '', `postscript` varchar(255) NOT NULL DEFAULT '', `shipping_id` tinyint(3) NOT NULL DEFAULT '0', `shipping_name` varchar(120) NOT NULL DEFAULT '', `pay_id` tinyint(3) NOT NULL DEFAULT '0', `pay_name` varchar(120) NOT NULL DEFAULT '', `how_oos` varchar(120) NOT NULL DEFAULT '', `how_surplus` varchar(120) NOT NULL DEFAULT '', `pack_name` varchar(120) NOT NULL DEFAULT '', `card_name` varchar(120) NOT NULL DEFAULT '', `card_message` varchar(255) NOT NULL DEFAULT '', `inv_payee` varchar(120) NOT NULL DEFAULT '', `inv_content` varchar(120) NOT NULL DEFAULT '', `goods_amount` decimal(10,2) NOT NULL DEFAULT '0.00', `shipping_fee` decimal(10,2) NOT NULL DEFAULT '0.00', `insure_fee` decimal(10,2) NOT NULL DEFAULT '0.00', `pay_fee` decimal(10,2) NOT NULL DEFAULT '0.00', `pack_fee` decimal(10,2) NOT NULL DEFAULT '0.00', `card_fee` decimal(10,2) NOT NULL DEFAULT '0.00', `money_paid` decimal(10,2) NOT NULL DEFAULT '0.00', `surplus` decimal(10,2) NOT NULL DEFAULT '0.00', `integral` int(10) unsigned NOT NULL DEFAULT '0', `integral_money` decimal(10,2) NOT NULL DEFAULT '0.00', `bonus` decimal(10,2) NOT NULL DEFAULT '0.00', `order_amount` decimal(10,2) NOT NULL DEFAULT '0.00', `from_ad` smallint(5) NOT NULL DEFAULT '0', `referer` varchar(255) NOT NULL DEFAULT '', `add_time` int(10) unsigned NOT NULL DEFAULT '0', `confirm_time` int(10) unsigned NOT NULL DEFAULT '0', `pay_time` int(10) unsigned NOT NULL DEFAULT '0', `shipping_time` int(10) unsigned NOT NULL DEFAULT '0', `pack_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `card_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `bonus_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `invoice_no` varchar(255) NOT NULL DEFAULT '', `extension_code` varchar(30) NOT NULL DEFAULT '', `extension_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `to_buyer` varchar(255) NOT NULL DEFAULT '', `pay_note` varchar(255) NOT NULL DEFAULT '', `agency_id` smallint(5) unsigned NOT NULL, `inv_type` varchar(60) NOT NULL, `tax` decimal(10,2) NOT NULL, `is_separate` tinyint(1) NOT NULL DEFAULT '0', `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `discount` decimal(10,2) NOT NULL, PRIMARY KEY (`order_id`), UNIQUE KEY `order_sn` (`order_sn`), KEY `user_id` (`user_id`), KEY `order_status` (`order_status`), KEY `shipping_status` (`shipping_status`), KEY `pay_status` (`pay_status`), KEY `shipping_id` (`shipping_id`), KEY `pay_id` (`pay_id`), KEY `extension_code` (`extension_code`,`extension_id`), KEY `agency_id` (`agency_id`) ) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_pack` */

DROP TABLE IF EXISTS `ecs_pack`; CREATE TABLE `ecs_pack` ( `pack_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `pack_name` varchar(120) NOT NULL DEFAULT '', `pack_img` varchar(255) NOT NULL DEFAULT '', `pack_fee` decimal(6,2) unsigned NOT NULL DEFAULT '0.00', `free_money` smallint(5) unsigned NOT NULL DEFAULT '0', `pack_desc` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`pack_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_package_goods` */ DROP TABLE IF EXISTS `ecs_package_goods`; CREATE TABLE `ecs_package_goods` ( `package_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `product_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_number` smallint(5) unsigned NOT NULL DEFAULT '1', `admin_id` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`package_id`,`goods_id`,`admin_id`,`product_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_pay_log` */ DROP TABLE IF EXISTS `ecs_pay_log`; CREATE TABLE `ecs_pay_log` ( `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `order_amount` decimal(10,2) unsigned NOT NULL, `order_type` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_paid` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`log_id`) ) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_payment` */ DROP TABLE IF EXISTS `ecs_payment`; CREATE TABLE `ecs_payment` ( `pay_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `pay_code` varchar(20) NOT NULL DEFAULT '', `pay_name` varchar(120) NOT NULL DEFAULT '', `pay_fee` varchar(10) NOT NULL DEFAULT '0', `pay_desc` text NOT NULL, `pay_order` tinyint(3) unsigned NOT NULL DEFAULT '0', `pay_config` text NOT NULL, `enabled` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_cod` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_online` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pay_id`), UNIQUE KEY `pay_code` (`pay_code`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_plugins` */

DROP TABLE IF EXISTS `ecs_plugins`; CREATE TABLE `ecs_plugins` ( `code` varchar(30) NOT NULL DEFAULT '', `version` varchar(10) NOT NULL DEFAULT '', `library` varchar(255) NOT NULL DEFAULT '', `assign` tinyint(1) unsigned NOT NULL DEFAULT '0', `install_date` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`code`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_products` */ DROP TABLE IF EXISTS `ecs_products`; CREATE TABLE `ecs_products` ( `product_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_attr` varchar(50) DEFAULT NULL, `product_sn` varchar(60) DEFAULT NULL, `product_number` smallint(5) unsigned DEFAULT '0', PRIMARY KEY (`product_id`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_reg_extend_info` */ DROP TABLE IF EXISTS `ecs_reg_extend_info`; CREATE TABLE `ecs_reg_extend_info` ( `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL, `reg_field_id` int(10) unsigned NOT NULL, `content` text NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_reg_fields` */ DROP TABLE IF EXISTS `ecs_reg_fields`; CREATE TABLE `ecs_reg_fields` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `reg_field_name` varchar(60) NOT NULL, `dis_order` tinyint(3) unsigned NOT NULL DEFAULT '100', `display` tinyint(1) unsigned NOT NULL DEFAULT '1', `type` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_need` tinyint(1) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_region` */ DROP TABLE IF EXISTS `ecs_region`; CREATE TABLE `ecs_region` ( `region_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', `region_name` varchar(120) NOT NULL DEFAULT '', `region_type` tinyint(1) NOT NULL DEFAULT '2', `agency_id` smallint(5) unsigned NOT NULL DEFAULT '0',

PRIMARY KEY (`region_id`), KEY `parent_id` (`parent_id`), KEY `region_type` (`region_type`), KEY `agency_id` (`agency_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3409 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_role` */ DROP TABLE IF EXISTS `ecs_role`; CREATE TABLE `ecs_role` ( `role_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `role_name` varchar(60) NOT NULL DEFAULT '', `action_list` text NOT NULL, `role_describe` text, PRIMARY KEY (`role_id`), KEY `user_name` (`role_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_searchengine` */ DROP TABLE IF EXISTS `ecs_searchengine`; CREATE TABLE `ecs_searchengine` ( `date` date NOT NULL DEFAULT '0000-00-00', `searchengine` varchar(20) NOT NULL DEFAULT '', `count` mediumint(8) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`date`,`searchengine`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_sessions` */ DROP TABLE IF EXISTS `ecs_sessions`; CREATE TABLE `ecs_sessions` ( `sesskey` char(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `expiry` int(10) unsigned NOT NULL DEFAULT '0', `userid` mediumint(8) unsigned NOT NULL DEFAULT '0', `adminid` mediumint(8) unsigned NOT NULL DEFAULT '0', `ip` char(15) NOT NULL DEFAULT '', `user_name` varchar(60) NOT NULL, `user_rank` tinyint(3) NOT NULL, `discount` decimal(3,2) NOT NULL, `email` varchar(60) NOT NULL, `data` char(255) NOT NULL DEFAULT '', PRIMARY KEY (`sesskey`), KEY `expiry` (`expiry`) ) ENGINE=MEMORY DEFAULT CHARSET=utf8; /*Table structure for table `ecs_sessions_data` */ DROP TABLE IF EXISTS `ecs_sessions_data`; CREATE TABLE `ecs_sessions_data` ( `sesskey` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `expiry` int(10) unsigned NOT NULL DEFAULT '0', `data` longtext NOT NULL, PRIMARY KEY (`sesskey`), KEY `expiry` (`expiry`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

/*Table structure for table `ecs_shipping` */ DROP TABLE IF EXISTS `ecs_shipping`; CREATE TABLE `ecs_shipping` ( `shipping_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `shipping_code` varchar(20) NOT NULL DEFAULT '', `shipping_name` varchar(120) NOT NULL DEFAULT '', `shipping_desc` varchar(255) NOT NULL DEFAULT '', `insure` varchar(10) NOT NULL DEFAULT '0', `support_cod` tinyint(1) unsigned NOT NULL DEFAULT '0', `enabled` tinyint(1) unsigned NOT NULL DEFAULT '0', `shipping_print` text NOT NULL, `print_bg` varchar(255) DEFAULT NULL, `config_lable` text, `print_model` tinyint(1) DEFAULT '0', `shipping_order` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`shipping_id`), KEY `shipping_code` (`shipping_code`,`enabled`) ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_shipping_area` */ DROP TABLE IF EXISTS `ecs_shipping_area`; CREATE TABLE `ecs_shipping_area` ( `shipping_area_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `shipping_area_name` varchar(150) NOT NULL DEFAULT '', `shipping_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `configure` text NOT NULL, PRIMARY KEY (`shipping_area_id`), KEY `shipping_id` (`shipping_id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_shop_config` */ DROP TABLE IF EXISTS `ecs_shop_config`; CREATE TABLE `ecs_shop_config` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', `code` varchar(30) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT '', `store_range` varchar(255) NOT NULL DEFAULT '', `store_dir` varchar(255) NOT NULL DEFAULT '', `value` text NOT NULL, `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM AUTO_INCREMENT=904 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_snatch_log` */ DROP TABLE IF EXISTS `ecs_snatch_log`; CREATE TABLE `ecs_snatch_log` ( `log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `snatch_id` tinyint(3) unsigned NOT NULL DEFAULT '0',

`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `bid_price` decimal(10,2) NOT NULL DEFAULT '0.00', `bid_time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`log_id`), KEY `snatch_id` (`snatch_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_stats` */ DROP TABLE IF EXISTS `ecs_stats`; CREATE TABLE `ecs_stats` ( `access_time` int(10) unsigned NOT NULL DEFAULT '0', `ip_address` varchar(15) NOT NULL DEFAULT '', `visit_times` smallint(5) unsigned NOT NULL DEFAULT '1', `browser` varchar(60) NOT NULL DEFAULT '', `system` varchar(20) NOT NULL DEFAULT '', `language` varchar(20) NOT NULL DEFAULT '', `area` varchar(30) NOT NULL DEFAULT '', `referer_domain` varchar(100) NOT NULL DEFAULT '', `referer_path` varchar(200) NOT NULL DEFAULT '', `access_url` varchar(255) NOT NULL DEFAULT '', KEY `access_time` (`access_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_suppliers` */ DROP TABLE IF EXISTS `ecs_suppliers`; CREATE TABLE `ecs_suppliers` ( `suppliers_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `suppliers_name` varchar(255) DEFAULT NULL, `suppliers_desc` mediumtext, `is_check` tinyint(1) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`suppliers_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_tag` */ DROP TABLE IF EXISTS `ecs_tag`; CREATE TABLE `ecs_tag` ( `tag_id` mediumint(8) NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `tag_words` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`tag_id`), KEY `user_id` (`user_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_template` */ DROP TABLE IF EXISTS `ecs_template`; CREATE TABLE `ecs_template` ( `filename` varchar(30) NOT NULL DEFAULT '', `region` varchar(40) NOT NULL DEFAULT '', `library` varchar(40) NOT NULL DEFAULT '', `sort_order` tinyint(1) unsigned NOT NULL DEFAULT '0',

`id` smallint(5) unsigned NOT NULL DEFAULT '0', `number` tinyint(1) unsigned NOT NULL DEFAULT '5', `type` tinyint(1) unsigned NOT NULL DEFAULT '0', `theme` varchar(60) NOT NULL DEFAULT '', `remarks` varchar(30) NOT NULL DEFAULT '', KEY `filename` (`filename`,`region`), KEY `theme` (`theme`), KEY `remarks` (`remarks`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_topic` */ DROP TABLE IF EXISTS `ecs_topic`; CREATE TABLE `ecs_topic` ( `topic_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL DEFAULT '''''', `intro` text NOT NULL, `start_time` int(11) NOT NULL DEFAULT '0', `end_time` int(10) NOT NULL DEFAULT '0', `data` text NOT NULL, `template` varchar(255) NOT NULL DEFAULT '''''', `css` text NOT NULL, `topic_img` varchar(255) DEFAULT NULL, `title_pic` varchar(255) DEFAULT NULL, `base_style` char(6) DEFAULT NULL, `htmls` mediumtext, `keywords` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, KEY `topic_id` (`topic_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_user_account` */ DROP TABLE IF EXISTS `ecs_user_account`; CREATE TABLE `ecs_user_account` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `admin_user` varchar(255) NOT NULL, `amount` decimal(10,2) NOT NULL, `add_time` int(10) NOT NULL DEFAULT '0', `paid_time` int(10) NOT NULL DEFAULT '0', `admin_note` varchar(255) NOT NULL, `user_note` varchar(255) NOT NULL, `process_type` tinyint(1) NOT NULL DEFAULT '0', `payment` varchar(90) NOT NULL, `is_paid` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `is_paid` (`is_paid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_user_address` */ DROP TABLE IF EXISTS `ecs_user_address`; CREATE TABLE `ecs_user_address` ( `address_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `address_name` varchar(50) NOT NULL DEFAULT '',

`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `consignee` varchar(60) NOT NULL DEFAULT '', `email` varchar(60) NOT NULL DEFAULT '', `country` smallint(5) NOT NULL DEFAULT '0', `province` smallint(5) NOT NULL DEFAULT '0', `city` smallint(5) NOT NULL DEFAULT '0', `district` smallint(5) NOT NULL DEFAULT '0', `address` varchar(120) NOT NULL DEFAULT '', `zipcode` varchar(60) NOT NULL DEFAULT '', `tel` varchar(60) NOT NULL DEFAULT '', `mobile` varchar(60) NOT NULL DEFAULT '', `sign_building` varchar(120) NOT NULL DEFAULT '', `best_time` varchar(120) NOT NULL DEFAULT '', PRIMARY KEY (`address_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_user_bonus` */ DROP TABLE IF EXISTS `ecs_user_bonus`; CREATE TABLE `ecs_user_bonus` ( `bonus_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `bonus_type_id` tinyint(3) unsigned NOT NULL DEFAULT '0', `bonus_sn` bigint(20) unsigned NOT NULL DEFAULT '0', `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `used_time` int(10) unsigned NOT NULL DEFAULT '0', `order_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `emailed` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`bonus_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_user_feed` */ DROP TABLE IF EXISTS `ecs_user_feed`; CREATE TABLE `ecs_user_feed` ( `feed_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `value_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `feed_type` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_feed` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`feed_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_user_rank` */ DROP TABLE IF EXISTS `ecs_user_rank`; CREATE TABLE `ecs_user_rank` ( `rank_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `rank_name` varchar(30) NOT NULL DEFAULT '', `min_points` int(10) unsigned NOT NULL DEFAULT '0', `max_points` int(10) unsigned NOT NULL DEFAULT '0', `discount` tinyint(3) unsigned NOT NULL DEFAULT '0', `show_price` tinyint(1) unsigned NOT NULL DEFAULT '1', `special_rank` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`rank_id`)

) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_users` */ DROP TABLE IF EXISTS `ecs_users`; CREATE TABLE `ecs_users` ( `user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(60) NOT NULL DEFAULT '', `user_name` varchar(60) NOT NULL DEFAULT '', `password` varchar(32) NOT NULL DEFAULT '', `question` varchar(255) NOT NULL DEFAULT '', `answer` varchar(255) NOT NULL DEFAULT '', `sex` tinyint(1) unsigned NOT NULL DEFAULT '0', `birthday` date NOT NULL DEFAULT '0000-00-00', `user_money` decimal(10,2) NOT NULL DEFAULT '0.00', `frozen_money` decimal(10,2) NOT NULL DEFAULT '0.00', `pay_points` int(10) unsigned NOT NULL DEFAULT '0', `rank_points` int(10) unsigned NOT NULL DEFAULT '0', `address_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `reg_time` int(10) unsigned NOT NULL DEFAULT '0', `last_login` int(11) unsigned NOT NULL DEFAULT '0', `last_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `last_ip` varchar(15) NOT NULL DEFAULT '', `visit_count` smallint(5) unsigned NOT NULL DEFAULT '0', `user_rank` tinyint(3) unsigned NOT NULL DEFAULT '0', `is_special` tinyint(3) unsigned NOT NULL DEFAULT '0', `ec_salt` varchar(10) DEFAULT NULL, `salt` varchar(10) NOT NULL DEFAULT '0', `parent_id` mediumint(9) NOT NULL DEFAULT '0', `flag` tinyint(3) unsigned NOT NULL DEFAULT '0', `alias` varchar(60) NOT NULL, `msn` varchar(60) NOT NULL, `qq` varchar(20) NOT NULL, `office_phone` varchar(20) NOT NULL, `home_phone` varchar(20) NOT NULL, `mobile_phone` varchar(20) NOT NULL, `is_validated` tinyint(3) unsigned NOT NULL DEFAULT '0', `credit_line` decimal(10,2) unsigned NOT NULL, `passwd_question` varchar(50) DEFAULT NULL, `passwd_answer` varchar(255) DEFAULT NULL, PRIMARY KEY (`user_id`), UNIQUE KEY `user_name` (`user_name`), KEY `email` (`email`), KEY `parent_id` (`parent_id`), KEY `flag` (`flag`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_virtual_card` */ DROP TABLE IF EXISTS `ecs_virtual_card`; CREATE TABLE `ecs_virtual_card` ( `card_id` mediumint(8) NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `card_sn` varchar(60) NOT NULL DEFAULT '', `card_password` varchar(60) NOT NULL DEFAULT '', `add_date` int(11) NOT NULL DEFAULT '0', `end_date` int(11) NOT NULL DEFAULT '0', `is_saled` tinyint(1) NOT NULL DEFAULT '0',

`order_sn` varchar(20) NOT NULL DEFAULT '', `crc32` varchar(12) NOT NULL DEFAULT '0', PRIMARY KEY (`card_id`), KEY `goods_id` (`goods_id`), KEY `car_sn` (`card_sn`), KEY `is_saled` (`is_saled`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_volume_price` */ DROP TABLE IF EXISTS `ecs_volume_price`; CREATE TABLE `ecs_volume_price` ( `price_type` tinyint(1) unsigned NOT NULL, `goods_id` mediumint(8) unsigned NOT NULL, `volume_number` smallint(5) unsigned NOT NULL DEFAULT '0', `volume_price` decimal(10,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`price_type`,`goods_id`,`volume_number`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_vote` */ DROP TABLE IF EXISTS `ecs_vote`; CREATE TABLE `ecs_vote` ( `vote_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `vote_name` varchar(250) NOT NULL DEFAULT '', `start_time` int(11) unsigned NOT NULL DEFAULT '0', `end_time` int(11) unsigned NOT NULL DEFAULT '0', `can_multi` tinyint(1) unsigned NOT NULL DEFAULT '0', `vote_count` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`vote_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*Table structure for table `ecs_vote_log` */ DROP TABLE IF EXISTS `ecs_vote_log`; CREATE TABLE `ecs_vote_log` ( `log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `vote_id` smallint(5) unsigned NOT NULL DEFAULT '0', `ip_address` varchar(15) NOT NULL DEFAULT '', `vote_time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`log_id`), KEY `vote_id` (`vote_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*Table structure for table `ecs_vote_option` */ DROP TABLE IF EXISTS `ecs_vote_option`; CREATE TABLE `ecs_vote_option` ( `option_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `vote_id` smallint(5) unsigned NOT NULL DEFAULT '0', `option_name` varchar(250) NOT NULL DEFAULT '', `option_count` int(8) unsigned NOT NULL DEFAULT '0', `option_order` tinyint(3) unsigned NOT NULL DEFAULT '100', PRIMARY KEY (`option_id`), KEY `vote_id` (`vote_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

/*Table structure for table `ecs_wholesale` */ DROP TABLE IF EXISTS `ecs_wholesale`; CREATE TABLE `ecs_wholesale` ( `act_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `goods_id` mediumint(8) unsigned NOT NULL, `goods_name` varchar(255) NOT NULL, `rank_ids` varchar(255) NOT NULL, `prices` text NOT NULL, `enabled` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`act_id`), KEY `goods_id` (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 /*!40014 /*!40014 /*!40111 SET SET SET SET SQL_MODE=@OLD_SQL_MODE */; FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; SQL_NOTES=@OLD_SQL_NOTES */;

Anda mungkin juga menyukai