Files
receipt-wrangler-api/internal/models/user.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"`
}