From 3063a7fdffa2947b90c0ea9e1352c607737f0e80 Mon Sep 17 00:00:00 2001 From: rainzm Date: Tue, 19 Jan 2021 14:20:02 +0800 Subject: [PATCH] fix(notify): add index fro receiver_notification --- pkg/notify/models/receiver_notification.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"`