🐛 Device no longer can register

This commit is contained in:
2024-02-08 11:08:29 +08:00
parent c3636c23ff
commit e8b5b05755
2 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,6 @@ type NotificationSubscriber struct {
UserAgent string `json:"user_agent"`
Provider string `json:"provider"`
DeviceID string `json:"device_id"`
DeviceID string `json:"device_id" gorm:"uniqueIndex"`
AccountID uint `json:"account_id"`
}