modified: main_dc/yalarba/api_es/internal/models/user.go

add full name to user model
This commit is contained in:
2025-11-12 04:41:30 +05:00
parent d08b94dbb0
commit 15d8faf53e
@@ -14,6 +14,7 @@ type User struct {
// Основная информация // Основная информация
Email string `gorm:"uniqueIndex;not null" json:"email"` Email string `gorm:"uniqueIndex;not null" json:"email"`
PasswordHash string `gorm:"not null" json:"-"` PasswordHash string `gorm:"not null" json:"-"`
FullName string `gorm:"not null" json:"full_name"`
FirstName string `gorm:"not null" json:"first_name"` FirstName string `gorm:"not null" json:"first_name"`
LastName string `gorm:"not null" json:"last_name"` LastName string `gorm:"not null" json:"last_name"`
Phone string `json:"phone"` Phone string `json:"phone"`
@@ -49,6 +50,7 @@ type UserStats struct {
type UserResponse struct { type UserResponse struct {
ID uint `json:"id"` ID uint `json:"id"`
Email string `json:"email"` Email string `json:"email"`
FullName string `json:"full_name"`
FirstName string `json:"first_name"` FirstName string `json:"first_name"`
LastName string `json:"last_name"` LastName string `json:"last_name"`
Phone string `json:"phone"` Phone string `json:"phone"`