removed alphaunicode constraint from names

This commit is contained in:
$(pass /github/name)
2024-07-13 12:22:42 +02:00
parent 05745ec831
commit a1a43f1f32

View File

@@ -13,10 +13,10 @@ type User struct {
Salt *string `json:"-"`
Phone string `json:"phone" validate:"omitempty,omitnil"`
Notes *string `json:"notes"`
FirstName string `gorm:"not null" json:"first_name" validate:"required,alphaunicode"`
FirstName string `gorm:"not null" json:"first_name" validate:"required"`
Password string `json:"password"`
Email string `gorm:"unique;not null" json:"email" validate:"required,email"`
LastName string `gorm:"not null" json:"last_name" validate:"required,alphaunicode"`
LastName string `gorm:"not null" json:"last_name" validate:"required"`
ProfilePicture string `json:"profile_picture" validate:"omitempty,image"`
Address string `gorm:"not null" json:"address" validate:"required"`
ZipCode string `gorm:"not null" json:"zip_code" validate:"required,alphanum"`