⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 structure.sql

📁 ECSHOP是一款开源免费的通用电子商务平台构建软件
💻 SQL
📖 第 1 页 / 共 4 页
字号:
)  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `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 unsigned NOT NULL default '0',  `max_points` int 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`))  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `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 unsigned NOT NULL default '0',  `rank_points` int 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',  `salt` varchar(10) NOT NULL default '0',  `parent_id` mediumint(9) NOT NULL default '0',  `flag` TINYINT 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 UNSIGNED NOT NULL DEFAULT '0',  `credit_line` DECIMAL( 10, 2 ) UNSIGNED NOT NULL,  PRIMARY KEY  (`user_id`),  KEY `email` (`email`),  KEY `parent_id` (`parent_id`),  KEY `flag` (`flag`),  UNIQUE (`user_name`))  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `ecs_vote`--DROP TABLE IF EXISTS `ecs_vote`;CREATE TABLE `ecs_vote` (  `vote_id` smallint 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`))  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `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 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`))  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `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 unsigned NOT NULL default '0',  `option_name` varchar(250) NOT NULL default '',  `option_count` int(8) unsigned NOT NULL default '0',  PRIMARY KEY  (`option_id`),  KEY `vote_id` (`vote_id`))  TYPE=MyISAM;-- ------------------------------------------------------------ 表的结构 `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`)) TYPE=MyISAM ;-- ------------------------------------------------------------ 表的结构 `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`)) TYPE=MyISAM;---- 表的结构 `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`)) TYPE=MyISAM;-- ---------------------------------------------------------- -- 表的结构 `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,  `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`)) TYPE=MyISAM;-- ---------------------------------------------------------- -- 表的结构 `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`)) TYPE=MyISAM;-- ---------------------------------------------------------- -- 表的结构 `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,  KEY `topic_id` (`topic_id`)) TYPE=MyISAM;-- ---------------------------------------------------------- -- 表的结构 `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`)) TYPE=MyISAM;-- ----------------------------------------------------------增加分成信息纪录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), `money` DECIMAL(10,2) NOT NULL DEFAULT '0', `point` INT(10) NOT NULL DEFAULT '0', `separate_type` TINYINT(1) NOT NULL DEFAULT '0',PRIMARY KEY ( `log_id` )) TYPE = MYISAM ;-- ---------------------------------------------------------- -- 表的结构 `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,  PRIMARY KEY  (`act_id`),  KEY `act_name` (`act_name`)) TYPE=MyISAM;-- ---------------------------------------------------------- -- 表的结构 `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` int(11) NOT NULL default '0',    PRIMARY KEY  (`card_id`),    KEY `goods_id` (`goods_id`),    KEY `car_sn` (`card_sn`),    KEY `is_saled` (`is_saled`)    ) TYPE=MyISAM ;-- ---------------------------------------------------------- -- 表的结构 `ecs_wholesale`-- DROP TABLE IF EXISTS `ecs_wholesale`;CREATE TABLE IF NOT EXISTS `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`)) TYPE=MyISAM ;-- ---------------------------------------------------------- -- 表的结构 `ecs_nav`-- DROP TABLE IF EXISTS `ecs_nav`;CREATE TABLE `ecs_nav` (  `id` mediumint(8) NOT NULL auto_increment,  `ctype` VARCHAR( 10 ) NULL,  `cid` SMALLINT( 5 ) UNSIGNED 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`)) TYPE=MyISAM;--增加发送队列表DROP TABLE IF EXISTS `ecs_email_sendlist`;CREATE TABLE  `ecs_email_sendlist` ( `id` MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `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) TYPE = MYISAM ;--增加电子杂志订阅表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`)) TYPE=MyISAM;--增加自动处理的表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`)) TYPE=MyISAM;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -