mirror of
https://github.com/Receipt-Wrangler/receipt-wrangler-api.git
synced 2026-01-24 12:19:09 -06:00
18 lines
528 B
Go
18 lines
528 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// User in the system
|
|
//
|
|
// swagger:model
|
|
type User struct {
|
|
BaseModel
|
|
DefaultAvatarColor string `json:"defaultAvatarColor gorm:"default:'#27b1ff'"`
|
|
DisplayName string `json:"displayName"`
|
|
IsDummyUser bool `json:"isDummyUser"`
|
|
Password string `gorm:"not null"`
|
|
Username string `gorm:"not null; uniqueIndex"`
|
|
UserRole UserRole `gorm:"default:'USER'" json:"userRole"`
|
|
LastLoginDate *time.Time `json:"lastLoginDate"`
|
|
}
|