simpler user field

This commit is contained in:
2025-11-25 13:59:27 +00:00
parent 7b43b97650
commit cc84ef6a13

View File

@@ -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
} }