modified: main_dc/yalarba/api_es/internal/models/user.go
add full name to user model
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user