portal/db/models/public_key.go

11 lines
143 B
Go

package models
import "gorm.io/gorm"
type PublicKey struct {
gorm.Model
UserID uint
Key string `gorm:"unique;not null"`
User User
}