面包店
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.

sku.go 795 B

9 months ago
123456789101112
  1. package model
  2. type Sku struct {
  3. SkuId int64 `json:"sku_id" xorm:"not null pk unique BIGINT(30)"`
  4. SkuCode string `json:"sku_code" xorm:"not null comment('sku编码') VARCHAR(255)"`
  5. GoodsId int64 `json:"goods_id" xorm:"not null comment('商品id') index BIGINT(20)"`
  6. Price string `json:"price" xorm:"not null default 0.00 comment('价格') DECIMAL(12,2)"`
  7. Indexes string `json:"indexes" xorm:"not null default '' comment('规格值组合的下标') VARCHAR(100)"`
  8. Sku string `json:"sku" xorm:"not null comment('规格组合json') VARCHAR(2048)"`
  9. CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
  10. UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
  11. }