new page layout
This commit is contained in:
@@ -4,7 +4,7 @@ import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model // includes ID, CreatedAt, UpdatedAt, DeletedAt
|
||||
Username string `gorm:"uniqueIndex"`
|
||||
Username string `gorm:"uniqueIndex" json:"username"`
|
||||
Password []byte `json:"-"`
|
||||
Admin bool
|
||||
Admin bool `json:"admin"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user