simpler user field
This commit is contained in:
@@ -4,7 +4,6 @@ import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model // includes ID, CreatedAt, UpdatedAt, DeletedAt
|
||||
Name string `gorm:"uniqueIndex"`
|
||||
Email string `gorm:"uniqueIndex"`
|
||||
Password string
|
||||
Username string `gorm:"uniqueIndex"`
|
||||
Password []byte
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user