diff --git a/services/rfq/guard/guarddb/base/model.go b/services/rfq/guard/guarddb/base/model.go index 9cac79e4e9..bf2e08d42b 100644 --- a/services/rfq/guard/guarddb/base/model.go +++ b/services/rfq/guard/guarddb/base/model.go @@ -41,7 +41,7 @@ type PendingProvenModel struct { // TxHash is the hash of the relay transaction on destination TxHash string // Status is the status of the event - Status guarddb.PendingProvenStatus + Status guarddb.PendingProvenStatus `gorm:"column:status;index:idx_guard_status_name"` // BlockNumber is the block number of the event BlockNumber uint64 } diff --git a/services/rfq/relayer/reldb/base/model.go b/services/rfq/relayer/reldb/base/model.go index c25681fc36..bc083d0b2e 100644 --- a/services/rfq/relayer/reldb/base/model.go +++ b/services/rfq/relayer/reldb/base/model.go @@ -84,7 +84,7 @@ type RequestForQuote struct { // this is not effected by the message.sender nonce. OriginNonce int `gorm:"index"` // Status is the current status of the event - Status reldb.QuoteRequestStatus + Status reldb.QuoteRequestStatus `gorm:"column:status;index:idx_rfq_status_name"` // BlockNumber is the block number of the event BlockNumber uint64 // RawRequest is the raw request, hex encoded.