portal/db/models/user.go

20 lines
303 B
Go
Raw Normal View History

package models
import (
"gorm.io/gorm"
"time"
)
type User struct {
gorm.Model
Username string
Email string `gorm:"unique"`
PasswordHash string
Role string
PublicKeys []PublicKey
APIKeys []APIKey
Uploads []Upload
LastLogin *time.Time
LastLoginIP string
}