diff --git a/business/model/store_sku.go b/business/model/store_sku.go index 806e7915b..97c408c27 100644 --- a/business/model/store_sku.go +++ b/business/model/store_sku.go @@ -97,6 +97,13 @@ type StoreOpRequest struct { func (*StoreOpRequest) TableUnique() [][]string { return [][]string{ - []string{"DeletedAt", "StoreID", "Type", "ItemID"}, + []string{"StoreID", "Type", "ItemID", "DeletedAt"}, + } +} + +func (*StoreOpRequest) TableIndex() [][]string { + return [][]string{ + []string{"DeletedAt"}, + []string{"StoreID", "Status", "Type"}, } }