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.
25 lines
1.0 KiB
25 lines
1.0 KiB
package promotion
|
|
|
|
import (
|
|
"github.com/shopspring/decimal"
|
|
"time"
|
|
)
|
|
|
|
type Sku struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
|
|
PromotionGoodsID uint `gorm:"column:promotion_goods_id" json:"promotionGoodsId"`
|
|
GoodsID uint `gorm:"column:goods_id" json:"goodsId,omitempty"`
|
|
SkuID uint `gorm:"column:sku_id" json:"skuId"`
|
|
SkuName string `gorm:"column:sku_name" json:"skuName"`
|
|
SkuCode string `gorm:"column:sku_code" json:"skuCode"`
|
|
DiscountPrice decimal.Decimal `gorm:"column:discount_price" json:"discountPrice"` // 折扣价
|
|
Commission decimal.Decimal `gorm:"column:commission" json:"commission"` // 佣金
|
|
SalesVolume uint `gorm:"column:sales_volume" json:"salesVolume"`
|
|
Inventory uint `gorm:"column:inventory" json:"inventory"`
|
|
DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"`
|
|
}
|
|
|
|
func (r *Sku) TableName() string {
|
|
return "recook_promotion_sku"
|
|
}
|