diff --git a/pkg/notify/models/receiver_notification.go b/pkg/notify/models/receiver_notification.go index 072abf7835..be4051963e 100644 --- a/pkg/notify/models/receiver_notification.go +++ b/pkg/notify/models/receiver_notification.go @@ -39,10 +39,10 @@ const ( type SReceiverNotification struct { db.SJointResourceBase - ReceiverID string `width:"128" charset:"ascii" nullable:"false"` - NotificationID string `width:"128" charset:"ascii" nullable:"false"` + ReceiverID string `width:"128" charset:"ascii" nullable:"false" index:"true"` + NotificationID string `width:"128" charset:"ascii" nullable:"false" index:"true"` // ignore if ReceiverID is not empty or default - Contact string `width:"128" nullable:"false"` + Contact string `width:"128" nullable:"false" index:"true"` SendAt time.Time `nullable:"false"` SendBy string `width:"128" nullable:"false"` Status string `width:"36" charset:"ascii"`