25.商品属性表(cheng_goods_attributes)
CREATE TABLE `cheng_goods_attributes` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopid` int(11) NOT NULL COMMENT '店铺ID',
`goodsid` int(11) NOT NULL COMMENT '商品ID',
`attrid` int(11) NOT NULL COMMENT '属性名称',
`attrVal` text NOT NULL COMMENT '属性值',
`create Time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
![](https://img-blog.csdnimg.cn/direct/2764f8bbc0d647feb88762dc763d5b74.png)
26.商品分类表(cheng_goods_cats)
CREATE TABLE `cheng_goods_cats` (
`catid` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`parentid` int(11) NOT NULL COMMENT '父ID',
`catName` varchar(20) NOT NULL COMMENT '分类名称',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示 0:隐藏1:显示',
`isFloor` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示楼层 0:不显示 1:显示',
`catSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志1:有效-1:删除',
`createTime` datetime NOT NULL COMMENT '建立时间',
`commissionRate` decimal(11,2) DEFAULT '-1.00' COMMENT '商品佣金比例 -1代表使用上级父类的佣金设置',
`catimg` varchar(150) DEFAULT NULL COMMENT '分类图片',
`subTitle` varchar(150) DEFAULT NULL COMMENT '二级标题',
`simpleName` varchar(20) NOT NULL COMMENT '移动端商品简称',
`seoTitle` varchar(200) NOT NULL COMMENT '分类SEO标题',
`seoKeywords` varchar(200) NOT NULL COMMENT '分类SEO关键字',
`seoDes` varchar(200) NOT NULL COMMENT '分类SEO描述',
`catListTheme` varchar(200) NOT NULL DEFAULT 'goods_list' COMMENT '电脑端商品列表模版名',
`detailTheme` varchar(200) NOT NULL DEFAULT 'goods_detail' COMMENT '电脑端商品详情模版名',
`monileCatListTheme` varchar(200) NOT NULL DEFAULT 'goods_list' COMMENT '移动端商品列表模版名',
`mobliwDetailTheme` varchar(255) NOT NULL DEFAULT 'goods_detail' COMMENT '移动端商品详情模板名',
`wechatCatListTheme` varchar(255) NOT NULL DEFAULT 'goods_list' COMMENT '微信端商品列表模版名',
`wechatDetailTheme` varchar(255) NOT NULL DEFAULT 'goods_detail' COMMENT '微信的商品详情模版名',
`showWay` tinyint(4) DEFAULT NULL COMMENT '移动端列表显示方式 0:一行两个 1:一行一个',
PRIMARY KEY (`catid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
![](https://img-blog.csdnimg.cn/direct/8110fba5c4374ca79582c7736d878d31.png)
27.商品咨询表(cheng_goods_consult)
CREATE TABLE `cheng_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) DEFAULT NULL COMMENT '咨询类型',
`consultContent` varchar(500) NOT NULL COMMENT '咨询内容',
`create Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`reply` varchar(255) NOT NULL COMMENT '商家回复内容',
`reply Time` datetime DEFAULT NULL COMMENT '回复时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效状态 1:有效-1:删除',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否显示:1:显示 0:不显示',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
![](https://img-blog.csdnimg.cn/direct/bc76d7d6e7074686bbf1d19d083dcbab.png)
28.商品评分表(cheng_goods_scores)
CREATE TABLE `cheng_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;
![](https://img-blog.csdnimg.cn/direct/fe0dcc9d2a3a4e3d9d30e995c90c4bf2.png)