- change index for StoreOpRequest

This commit is contained in:
gazebo
2018-12-20 22:04:04 +08:00
parent 8fc41df791
commit 4b78cd1db0

View File

@@ -97,6 +97,13 @@ type StoreOpRequest struct {
func (*StoreOpRequest) TableUnique() [][]string { func (*StoreOpRequest) TableUnique() [][]string {
return [][]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"},
} }
} }