Merge pull request #9945 from rainzm/automated-cherry-pick-of-#9944-upstream-release-3.7

Automated cherry pick of #9944: fix(notify): add index fro receiver_notification
This commit is contained in:
Zexi Li
2021-01-27 09:05:55 +08:00
committed by GitHub
+3 -3
View File
@@ -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"`