portal/db/models/user.go

21 lines
324 B
Go
Raw Normal View History

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