portal/db/models/api_key.go

11 lines
115 B
Go

package models
import "gorm.io/gorm"
type APIKey struct {
gorm.Model
UserID uint
Key string
User User
}