监控网页实现
This commit is contained in:
@@ -9,4 +9,6 @@ type User struct {
|
||||
gorm.Model
|
||||
Username string `gorm:"uniqueIndex;not null"`
|
||||
Password string `gorm:"not null"` // Hashed password
|
||||
Role string `gorm:"type:varchar(20);not null;default:user"`
|
||||
Enabled bool `gorm:"not null;default:true"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user