完成88张表

CREATE TABLE `dong_order_goods` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  `orderId` int(11) NOT NULL COMMENT '订单ID',
  `goodsId` int(11) NOT NULL COMMENT '商品ID',
  `goodsNum` int(11) NOT NULL DEFAULT '0' COMMENT '商品数量',
  `goodsPrice` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
  `goodsSpecld` int(11) DEFAULT '0' COMMENT '商品规格ID',
  `goodsSpecNames` varchar(500) DEFAULT NULL COMMENT '商品规格值列表',
  `goodsNames` varchar(200) NOT NULL COMMENT '商品名称',
  `goodsImg` varchar(255) NOT NULL COMMENT '商品图',
  `commissionRate` decimal(11,2) DEFAULT '0.00' COMMENT '商品佣金比例',
  `extraJson` text COMMENT '额外信息(目前用来存放虚拟商品的卡券号)',
  `goodsType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '商品类型(0:实物商品 1:虚拟商品)',
  `commission` decimal(11,2) DEFAULT '0.00' COMMENT '分销佣金',
  `goodsCode` varchar(20) DEFAULT NULL COMMENT '商品标记(gift-赠品)',
  `promotionJson` text COMMENT '商品所参与的优惠活动json记录',
  `couponVal` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '优惠券减免金额',
  `rewardVal` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '满减减免金额',
  `useScoreVal` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品使用积分',
  `scoreMoney` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '积分抵扣金额',
  `getsScoreVal` int(10) unsigned NOT NULL COMMENT '购买该商品所获得积分',
  `getScoreMoney` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '获得的积分数可抵扣的金额',
  `orderGoodscommission` decimal(11,2) DEFAULT '0.00' COMMENT '订单商品押金',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `orderId` (`orderId`),
  CONSTRAINT `dong_order_goods_ibfk_1` FOREIGN KEY (`id`) REFERENCES `dong_order_refunds` (`orderId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='冬的订单商品表';

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值