Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
ID string `gorm:"primaryKey;type:char(32);index:,type:hash" json:"id"`
CreatedAt time.Time
UpdatedAt time.Time
Username string `gorm:"not null;uniqueIndex;type:varchar(32)"`
HashedPassword []byte `gorm:"not null"`
Role user.Role `gorm:"not null;default:0"`
Status user.Status `gorm:"not null;default:0"`
}
Click to show internal directories.
Click to hide internal directories.