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