Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
CreatedAt time.Time `gorm:"not null;autoCreateTime" json:"created_at"`
UpdatedAt time.Time `gorm:"not null;autoUpdateTime" json:"updated_at"`
Email string `gorm:"uniqueIndex;not null" json:"email"`
PasswordHash string `gorm:"not null" json:"-"`
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
IsAdmin int64 `gorm:"not null;default:0" json:"is_admin"`
}
Click to show internal directories.
Click to hide internal directories.