Add setup-flow
This commit is contained in:
@@ -4,7 +4,8 @@ import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Username string `gorm:"uniqueIndex;not null"`
|
||||
PasswordHash string `gorm:"not null"`
|
||||
Role string `gorm:"not null"`
|
||||
Username string `gorm:"uniqueIndex;not null"`
|
||||
PasswordHash string `gorm:"not null"`
|
||||
Role string `gorm:"not null"`
|
||||
ForceChangePassword bool `gorm:"default:false"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user