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