portal/db/models/api_key.go

15 lines
158 B
Go
Raw Normal View History

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