You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.3 KiB

  1. DROP TABLE IF EXISTS `antgoods_goods_sku`;
  2. CREATE TABLE `antgoods_goods_sku` (
  3. `id` int(11) NOT NULL AUTO_INCREMENT,
  4. `goods_id` int(11) NOT NULL COMMENT '商品id',
  5. `goods_code` varchar(50) DEFAULT NULL COMMENT '商品条码',
  6. `goods_sn` varchar(60) NOT NULL COMMENT '商品唯一货号',
  7. `goods_attr` varchar(60) DEFAULT NULL COMMENT '属性匹配',
  8. `weight` mediumint(8) DEFAULT NULL COMMENT '重量',
  9. `length` mediumint(8) DEFAULT NULL COMMENT '长度',
  10. `width` mediumint(8) DEFAULT NULL COMMENT '宽度',
  11. `height` mediumint(8) DEFAULT NULL COMMENT '高度',
  12. `diameter` mediumint(8) DEFAULT NULL COMMENT '直径',
  13. `sold_count` int(10) DEFAULT NULL COMMENT '已售数量',
  14. `stock` int(10) DEFAULT NULL COMMENT '库存',
  15. `market_price` int(20) DEFAULT NULL COMMENT '市场价',
  16. `price` int(20) DEFAULT NULL COMMENT '销售价',
  17. `model_id` int(11) DEFAULT NULL COMMENT '模型id',
  18. `is_sale` tinyint(1) DEFAULT '0' COMMENT '该商品是否开放销售,1为是,0为否',
  19. `sort_order` smallint(3) DEFAULT '0' COMMENT '排序',
  20. `is_delete` tinyint(1) DEFAULT '0' COMMENT '是否删除,1为已删除',
  21. `created_at` int(10) DEFAULT '0' COMMENT '创建时间',
  22. `updated_at` int(10) DEFAULT '0' COMMENT '更新时间',
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品sku表';