modified: main_dc/yalarba/api_es/internal/models/account.go
add account main info
This commit is contained in:
@@ -5,10 +5,13 @@ import ()
|
||||
type Account struct {
|
||||
/*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/
|
||||
Base Base `gorm:"embedded"`
|
||||
|
||||
FirstName string
|
||||
LastName string
|
||||
Email string
|
||||
Password string
|
||||
IsAdmin bool
|
||||
|
||||
// Основная информация
|
||||
Email string `gorm:"uniqueIndex;not null" json:"email"`
|
||||
PasswordHash string `gorm:"not null" json:"-"`
|
||||
FullName string `gorm:"not null;default:'Unknown'" json:"full_name"`
|
||||
FirstName string `gorm:"not null;default:'FirstName'" json:"first_name"`
|
||||
LastName string `gorm:"not null;default:'LastName'" json:"last_name"`
|
||||
Phone string `json:"phone"`
|
||||
City string `json:"city"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user