<pre lang='sql' line='1'> -- -- 表的结构 `ecs_goods_activity`促销活动 -- CREATE TABLE IF NOT EXISTS `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,--商品id `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 DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ; -- -- 表的结构 `ecs_favourable_activity` -- CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- 表的结构 `ecs_shipping`配送方式 -- CREATE TABLE IF NOT EXISTS `ecs_shipping` ( `shipping_id` tinyint(3) unsigned NOT NULL auto_increment,--id `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',---是否支持货到付款,1,支持;0,不支持 `enabled` tinyint(1) unsigned NOT NULL default '0',---该配送方式是否被禁用,1,可用;0,禁用 `shipping_print` text NOT NULL,---我理解为打印 PRIMARY KEY (`shipping_id`), KEY `shipping_code` (`shipping_code`,`enabled`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;