Documentation
¶
Index ¶
Constants ¶
View Source
const UserTableName = "user"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserTable ¶
type UserTable struct {
ID string `gorm:"column:id;primary_key" json:"id"`
Username string `gorm:"column:username;unique" json:"username"`
Nickname string `gorm:"column:nickname" json:"nickname"`
Password string `gorm:"column:password" json:"password"`
Email string `gorm:"column:email" json:"email"`
Role string `gorm:"column:role" json:"role"`
CreateTime *time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL" json:"create_time"`
}
Click to show internal directories.
Click to hide internal directories.