refactor: ensure key is unique

This commit is contained in:
Derrick Hammer 2024-02-14 00:13:28 -05:00
parent 41a6772c9f
commit 593d8ea381
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,6 @@ import "gorm.io/gorm"
type PublicKey struct { type PublicKey struct {
gorm.Model gorm.Model
UserID uint UserID uint
Key string Key string `gorm:"unique;not null"`
User User User User
} }