portal/db/models/api_key.go

15 lines
158 B
Go
Raw Permalink Normal View History

package models
import "gorm.io/gorm"
func init() {
registerModel(&APIKey{})
}
type APIKey struct {
gorm.Model
UserID uint
Key string
User User
}