portal/db/models/public_key.go

15 lines
189 B
Go
Raw Permalink Normal View History

package models
import "gorm.io/gorm"
func init() {
registerModel(&PublicKey{})
}
type PublicKey struct {
gorm.Model
UserID uint
2024-02-14 05:13:28 +00:00
Key string `gorm:"unique;not null"`
User User
}