u o
This commit is contained in:
@@ -33,6 +33,7 @@ type User struct {
|
||||
Email string `gorm:"size:255" json:"email"`
|
||||
Status int `gorm:"default:1" json:"status"`
|
||||
Role string `gorm:"size:32;default:author" json:"role"`
|
||||
Articles []Article `gorm:"foreignKey:AuthorID" json:"-"`
|
||||
}
|
||||
|
||||
// SetPassword hashes the plain-text password with bcrypt and stores it.
|
||||
|
||||
Reference in New Issue
Block a user