- 启用门店商品临时不可售,暂时不建AutoSaleAt相关的索引

This commit is contained in:
gazebo
2019-08-01 10:37:23 +08:00
parent 84c0b93ec4
commit a7b9a49982
3 changed files with 54 additions and 38 deletions

View File

@@ -1,5 +1,7 @@
package model
import "time"
const (
StoreSkuBindStatusNA = -2
StoreSkuBindStatusDeleted = -1
@@ -104,7 +106,7 @@ type StoreSkuBind struct {
MtwmSyncStatus int8 `orm:"default(2)"`
WscSyncStatus int8 `orm:"default(2)"`
// AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"`
AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"`
}
func (*StoreSkuBind) TableUnique() [][]string {
@@ -116,6 +118,7 @@ func (*StoreSkuBind) TableUnique() [][]string {
func (*StoreSkuBind) TableIndex() [][]string {
return [][]string{
[]string{"SkuID", "StoreID", "DeletedAt"},
// []string{"AutoSaleAt", "DeletedAt", "StoreID"},
}
}