附近小店
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.

community_team_sku.go 1.2 KiB

3 months ago
1234567891011121314151617181920
  1. package model
  2. import (
  3. "time"
  4. )
  5. type CommunityTeamSku struct {
  6. SkuId int64 `json:"sku_id" xorm:"not null pk autoincr BIGINT(20)"`
  7. GoodsId int `json:"goods_id" xorm:"not null comment('商品id') INT(11)"`
  8. Price string `json:"price" xorm:"not null default 0.00 comment('价格') DECIMAL(12,2)"`
  9. CreateTime time.Time `json:"create_time" xorm:"default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
  10. UpdateTime time.Time `json:"update_time" xorm:"default CURRENT_TIMESTAMP comment('更新时间') DATETIME"`
  11. Stock int `json:"stock" xorm:"not null default 0 comment('库存') INT(11)"`
  12. Indexes string `json:"indexes" xorm:"not null default '' comment('规格值组合的下标') VARCHAR(100)"`
  13. Sku string `json:"sku" xorm:"not null comment('规格组合json') VARCHAR(2048)"`
  14. SaleCount int `json:"sale_count" xorm:"not null default 0 comment('销量') INT(11)"`
  15. Sort int `json:"sort" xorm:"not null default 0 comment('排序') INT(11)"`
  16. Discount string `json:"discount" xorm:"default 10.00 comment('折扣,为10无折扣') DECIMAL(6,2)"`
  17. SkuCode string `json:"sku_code" xorm:"default '' comment('sku编码') VARCHAR(255)"`
  18. }