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 {
gorm.Model // includes ID, CreatedAt, UpdatedAt, DeletedAt
Name string `gorm:"uniqueIndex"`
Email string `gorm:"uniqueIndex"`
Password string
Username string `gorm:"uniqueIndex"`
Password []byte
}