MySQL商城数据表(20-29)

发布于:2024-04-28 ⋅ 阅读:(20) ⋅ 点赞:(0)

20快递表

DROP TABLE IF EXISTS `xuge_express`;
CREATE TABLE `xuge_express` (
  `expressId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `expressName` varchar(50) NOT NULL COMMENT '快递名称',
  `-dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标记(1 : 有效 ,-1 : 删除)',
  `expressCode` varchar(50) DEFAULT NULL COMMENT '快递代码(主要用于物流插件)',
  `isShow` tinyint(4) DEFAULT '1' COMMENT '是否启用(1 : 是 ,0 : 否)',
  PRIMARY KEY (`expressId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='快递表(xuge_express)';

21关注商品表

DROP TABLE IF EXISTS `xuge_favorites`;
CREATE TABLE `xuge_favorites` (
  `favoriteId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `userId` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  `goodsId` int(11) DEFAULT NULL COMMENT '商品id',
  `currShopPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '关注时的价格',
  PRIMARY KEY (`favoriteId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='关注商品表( xuge_favorites)';

22用户反馈表

DROP TABLE IF EXISTS `xuge_feedbacks`;
CREATE TABLE `xuge_feedbacks` (
  `feedbackId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `feedbackType` int(4) NOT NULL DEFAULT '0' COMMENT '反馈类型,内容来源自系统基础数据表',
  `userId` int(11) DEFAULT NULL COMMENT '反馈者id',
  `createTime` datetime NOT NULL COMMENT '反馈时间',
  `feedbackContent` text COMMENT '反馈内容',
  `contantInfo` varchar(100) DEFAULT NULL COMMENT '联系方式',
  `dataFlag` tinyint(4) DEFAULT '1' COMMENT '删除标志(1 : 有效 ,-1 : 删除)',
  `feedbackStatus` tinyint(4) DEFAULT '0' COMMENT '反馈记录状态(0 : 待处理 ,1 : 已处理)',
  `staffId` int(11) DEFAULT '0' COMMENT '处理者ID',
  `handle Time` datetime DEFAULT NULL COMMENT '处理时间',
  `handleContent` text COMMENT '处理结果',
  PRIMARY KEY (`feedbackId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户反馈表(xuge_feedbacks)';

23友情链接表

DROP TABLE IF EXISTS `xuge_friendlinks`;
CREATE TABLE `xuge_friendlinks` (
  `friendlinkId` int(11) NOT NULL COMMENT '自增id',
  `friendlinkIco` varchar(150) DEFAULT NULL COMMENT '图标',
  `friendlinkName` varchar(50) NOT NULL COMMENT '名称',
  `friendlinkUrl` varchar(150) NOT NULL COMMENT '网址',
  `friendlinkSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  `dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(1 : 有效 ,-1 : 删除)',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`friendlinkId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='友情链接表( xuge_friendlinks)';

24商品表

DROP TABLE IF EXISTS `xuge_goods`;
CREATE TABLE `xuge_goods` (
  `goodsId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `goodsSn` varchar(20) NOT NULL COMMENT '商品编号',
  `productNo` varchar(20) NOT NULL COMMENT '商品货号',
  `goodsName` varchar(200) NOT NULL COMMENT '商品名称',
  `goodsImg` varchar(150) NOT NULL COMMENT '商品图片',
  `shopId` int(11) NOT NULL COMMENT '店铺id',
  `marketPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
  `shopPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '店铺价',
  `warnStock` int(11) NOT NULL DEFAULT '0' COMMENT '预警库存',
  `goodsStock` int(11) NOT NULL DEFAULT '0' COMMENT '商品总库存',
  `goodsUnit` char(10) NOT NULL COMMENT '单位',
  `goodsTips` text COMMENT '促销信息',
  `isSale` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否上架( 0 :不上架 ,1 ; 上架 )',
  `isBest` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否精品(0 :否 ,1 : 是 )',
  `isHot` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否热销产品(0 :否 ,1 : 是 )',
  `isNew` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否新品(0 :否 ,1 : 是 )',
  `isRecom` tinyint(4) DEFAULT '0' COMMENT '是否推荐(0 :否 ,1 : 是 )',
  `goodsCatIdPath` varchar(255) DEFAULT NULL COMMENT '商品分类id路径(catId1_catId2_catId3)',
  `goodsCatId` int(11) NOT NULL COMMENT '最后一级商品分类id',
  `shopCatId1` int(11) NOT NULL COMMENT '门店商品分类第一级id',
  `shopCatId2` int(11) NOT NULL COMMENT '门店商品分类第二级id',
  `brandId` int(11) DEFAULT '0' COMMENT '品牌id',
  `goodsDesc` text NOT NULL COMMENT '商品描述',
  `goodsStatus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '商品状态(-1 :违规 , 0 : 未审核 , 1 : 已审核 )',
  `saleNum` int(11) NOT NULL DEFAULT '0' COMMENT '总销售量',
  `saleTime` datetime NOT NULL COMMENT '上架时间',
  `visitNum` int(11) DEFAULT '0' COMMENT '访问数',
  `appraiseNum` int(11) DEFAULT '0' COMMENT '评价数',
  `isSpec` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否有规格(0 : 没有 ,1 : 有)',
  `gallery` text COMMENT '商品相册',
  `goodsSeoKeywords` varchar(200) DEFAULT NULL COMMENT '商品SEO关键字',
  `illegalRemarks` varchar(255) DEFAULT NULL COMMENT '状态说明(一般说明拒绝原因)',
  `dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(1 : 有效 ,-1 : 删除)',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  `goodsType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '商品类型( 0:实物商品 , 1 : 虚拟商品)',
  `isDistribut` int(11) DEFAULT '0' COMMENT '是否分销产品(0 : 否 ,1 : 是)',
  `commission` decimal(11,2) DEFAULT '0.00' COMMENT '分销佣金(0)',
  `isFreeShiping` tinyint(4) DEFAULT '0' COMMENT '是否包邮(0 : 否 ,1 : 是)',
  `goodsSerachKeywords` text COMMENT '商品关键字搜索(该字段由系统生成,取商品名称+属性内容)',
  `goodsVideo` varchar(150) DEFAULT NULL COMMENT '商品视频',
  `costPrice` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
  `goodsVideoThumb` varchar(150) DEFAULT NULL COMMENT '视频略缩图,未用',
  `goodsSeoDesc` varchar(600) DEFAULT NULL COMMENT '商品SEO描述',
  `shippingFeeType` tinyint(4) DEFAULT '1' COMMENT '计价方式(1 :计件 ,2 : 重量 ,3 ; 体积)',
  `goodsWeight` decimal(11,2) DEFAULT '0.00' COMMENT '商品重量',
  `goodsVolume` decimal(11,2) DEFAULT '0.00' COMMENT '商品体积',
  `shopExpressId` int(11) DEFAULT '0' COMMENT '店铺快递公司id',
  `isPifa` tinyint(4) DEFAULT '0' COMMENT '是否属于批发产品(1:是 ,0:不是)',
  `collectNum` int(11) DEFAULT '0' COMMENT '收藏该商品的人数',
  `canSaleStatus` tinyint(4) DEFAULT '1' COMMENT '是否可以批量上架(1:是, 0 :否,一般终于导入或者采集商品才会用到这个字段)',
  PRIMARY KEY (`goodsId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品表(xuge_goods)';

25商品评价表

DROP TABLE IF EXISTS `xuge_goods_appraises`;
CREATE TABLE `xuge_goods_appraises` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `shopId` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `orderId` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
  `goodsId` int(11) NOT NULL DEFAULT '0' COMMENT '评价对象id',
  `goodsSpecId` int(11) NOT NULL COMMENT '商品_规格id',
  `userId` int(11) NOT NULL DEFAULT '0' COMMENT '会员id',
  `goodsScore` int(11) NOT NULL DEFAULT '0' COMMENT '商品评分',
  `serviceScore` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分',
  `timeScore` int(11) NOT NULL DEFAULT '0' COMMENT '时效评分',
  `content` text NOT NULL COMMENT '点评内容',
  `shopReply` text COMMENT '店铺回复',
  `images` text COMMENT '上传图片',
  `isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(1 :显示 , 0 : 不显示 )',
  `dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(1 : 有效 ,-1 : 删除)',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  `replyTime` date DEFAULT NULL COMMENT '商家回复时间',
  `orderGoodaId` int(10) unsigned NOT NULL COMMENT '订单上商品表自增id',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品评价表( xuge_goods_appraises)';

26商品属性表

DROP TABLE IF EXISTS `xuge_goods_attributes`;
CREATE TABLE `xuge_goods_attributes` (
  `id` int(11) NOT NULL COMMENT '自增id',
  `shopId` int(11) NOT NULL COMMENT '店铺id',
  `goodsId` int(11) NOT NULL COMMENT '商品id',
  `attrId` int(11) NOT NULL COMMENT '属性名称',
  `attrVal` text COMMENT '属性值',
  `createTime` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品属性表(xuge_goods_attributes)'

27商品分类表

DROP TABLE IF EXISTS `xuge_goods_cats`;
CREATE TABLE `xuge_goods_cats` (
  `catId` int(11) NOT NULL 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 '分类图片',
  `sub Title` 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 '电脑端商品详情模版名',
  `mobileCatListlTheme` varchar(200) NOT NULL DEFAULT 'goods-list' COMMENT '移动端端商品列表模版名',
  `mobileDetailTheme` varchar(200) NOT NULL DEFAULT 'goods-detail' COMMENT '移动端商品详情模版名',
  `weChatCatListlTheme` varchar(200) NOT NULL DEFAULT 'goods-list' COMMENT '微信端商品列表模版名',
  `WeChatDetailTheme` varchar(200) NOT NULL DEFAULT 'goods-detail' COMMENT '微信端商品详情模版名',
  `showWay` tinyint(4) DEFAULT '0' COMMENT '移动端列表显示方式(0 : 一行两个 ,1 :一行一个)',
  PRIMARY KEY (`catId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品分类表(xuge_goods_cats)';

28商品咨询表

DROP TABLE IF EXISTS `xuge_goods_consult`;
CREATE TABLE `xuge_goods_consult` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `goodsId` int(10) unsigned NOT NULL COMMENT '商品id',
  `userId` int(10) 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='商品咨询表(xuge_goods_consult )';

29商品评分表

DROP TABLE IF EXISTS `xuge_goods_scores`;
CREATE TABLE `xuge_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 '总评评分用户数',
  `goodsScore` int(11) NOT NULL DEFAULT '0' COMMENT '商品评分',
  `goodsUsers` int(11) NOT NULL DEFAULT '0' COMMENT '商品评分用户数',
  `serviceScore` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分',
  `serviceUser` int(11) NOT NULL DEFAULT '0' COMMENT '服务评分用户数',
  `timeScore` int(11) NOT NULL DEFAULT '0' COMMENT '时效评分',
  `timeUser` int(11) NOT NULL DEFAULT '0' COMMENT '时效评分用户数',
  PRIMARY KEY (`scoreId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品评分表(xuge_goods_scores)';


网站公告

今日签到

点亮在社区的每一天
去签到