From 4b78cd1db03f676ee9d0c36e59154c013e919894 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 20 Dec 2018 22:04:04 +0800 Subject: [PATCH] - change index for StoreOpRequest --- business/model/store_sku.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"}, } }