fix(notify): add index fro receiver_notification

This commit is contained in:
rainzm
2021-01-19 15:50:20 +08:00
parent 8615a710d9
commit 3063a7fdff
+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"`