♻️ Improved the notification subscriber API

This commit is contained in:
2024-05-07 21:00:20 +08:00
parent fe27b0bf1c
commit 18a4321685
4 changed files with 42 additions and 19 deletions

View File

@ -31,8 +31,9 @@ const (
type NotificationSubscriber struct {
BaseModel
UserAgent string `json:"user_agent"`
Provider string `json:"provider"`
DeviceID string `json:"device_id" gorm:"uniqueIndex"`
AccountID uint `json:"account_id"`
UserAgent string `json:"user_agent"`
Provider string `json:"provider"`
DeviceID string `json:"device_id" gorm:"uniqueIndex"`
DeviceToken string `json:"device_token"`
AccountID uint `json:"account_id"`
}