27、商品咨询表
CREATE TABLE `27、goods_consult` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsId` int(10) unsigned NOT NULL COMMENT '商品ID',
`userId` int(10) unsigned DEFAULT NULL COMMENT '咨询人ID',
`consultType` tinyint(3) unsigned DEFAULT NULL COMMENT '咨询类型',
`consultContent` varchar(500) NOT NULL COMMENT '咨询内容',
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`reply` varchar(255) NOT NULL COMMENT '商家回复内容',
`replyTime` datetime DEFAULT NULL COMMENT '回复时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否显示(1:显示0:不显示)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='杜银涛 的goods_consult商品咨询表';
28、商品评分表
CREATE TABLE `28、goods_scores` (
`scoreId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsId` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`shopId` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
`totalScore` int(11) NOT NULL DEFAULT '0' COMMENT '总评分',
`totalUsers` int(11) NOT NULL DEFAULT '0' COMMENT '总评评分用户数',
`goodsScore` int(11) NOT NULL DEFAULT '0' COMMENT '商品评分',
`goodsUsers` int(11) NOT NULL DEFAULT '0' COMMENT '商品评分用户数',
`serviceScore` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分',
`serviceUsers` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分用户数',
`timeScore` int(11) NOT NULL DEFAULT '0' COMMENT '时效评分',
`timeUsers` int(11) NOT NULL DEFAULT '0' COMMENT '时效评分用户数',
PRIMARY KEY (`scoreId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='杜银涛 的goods_scores商品评分表';