refactor validation and add admin system
This commit is contained in:
@@ -53,4 +53,5 @@ type User struct {
|
||||
Base
|
||||
Name string `gorm:"not null;unique_index"`
|
||||
Password string
|
||||
IsAdmin bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user