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.

36 lines
2.0 KiB

  1. DROP TABLE IF EXISTS `ats_goods`;
  2. CREATE TABLE `ats_goods` (
  3. `id` int(11) NOT NULL AUTO_INCREMENT,
  4. `pid` int(11) DEFAULT NULL COMMENT '父级id',
  5. `cat_id` int(11) DEFAULT NULL COMMENT '后台商品类别id',
  6. `brand_id` int(11) DEFAULT NULL COMMENT '品牌id',
  7. `shop_cat_id` int(11) DEFAULT NULL COMMENT '前端商品类别id',
  8. `name` varchar(120) DEFAULT NULL COMMENT '商品名称',
  9. `sn` varchar(60) DEFAULT NULL COMMENT '商品唯一货号',
  10. `code` varchar(50) DEFAULT NULL COMMENT '商品货码',
  11. `supplier_id` int(11) DEFAULT NULL COMMENT '供应商id',
  12. `weight` mediumint(8) DEFAULT NULL COMMENT '重量',
  13. `length` mediumint(8) DEFAULT NULL COMMENT '长度',
  14. `width` mediumint(8) DEFAULT NULL COMMENT '宽度',
  15. `height` mediumint(8) DEFAULT NULL COMMENT '高度',
  16. `diameter` mediumint(8) DEFAULT NULL COMMENT '直径',
  17. `unit` varchar(16) DEFAULT NULL COMMENT '单位',
  18. `sold_count` int(10) DEFAULT NULL COMMENT '已售数量',
  19. `limit_count` int(10) DEFAULT NULL COMMENT '限购数量',
  20. `stock` int(10) DEFAULT NULL COMMENT '库存',
  21. `stock_warn` int(10) DEFAULT NULL COMMENT '库存警告',
  22. `market_price` int(20) DEFAULT NULL COMMENT '市场价',
  23. `price` int(20) DEFAULT NULL COMMENT '销售价',
  24. `brief` varchar(255) DEFAULT NULL COMMENT '简介',
  25. `description` text COMMENT '详细介绍',
  26. `image` int(11) DEFAULT NULL COMMENT '图片id',
  27. `model_id` int(11) DEFAULT NULL COMMENT '模型id',
  28. `is_sale` tinyint(1) DEFAULT '0' COMMENT '该商品是否开放销售,1为是,0为否',
  29. `sort_order` smallint(3) DEFAULT NULL COMMENT '排序',
  30. `bouns_points` mediumint(8) DEFAULT NULL COMMENT '奖励积分',
  31. `experience_points` mediumint(8) DEFAULT NULL COMMENT '经验值',
  32. `is_delete` tinyint(1) DEFAULT '0' COMMENT '是否删除,1为已删除',
  33. `express_template` int(11) DEFAULT NULL COMMENT '配送详情id',
  34. `created_at` int(10) DEFAULT '0' COMMENT '创建时间',
  35. `updated_at` int(10) DEFAULT '0' COMMENT '更新时间',
  36. PRIMARY KEY (`id`)
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品表';