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 {
|
type Account struct {
|
||||||
/*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/
|
/*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/
|
||||||
Base Base `gorm:"embedded"`
|
Base Base `gorm:"embedded"`
|
||||||
|
|
||||||
FirstName string
|
// Основная информация
|
||||||
LastName string
|
Email string `gorm:"uniqueIndex;not null" json:"email"`
|
||||||
Email string
|
PasswordHash string `gorm:"not null" json:"-"`
|
||||||
Password string
|
FullName string `gorm:"not null;default:'Unknown'" json:"full_name"`
|
||||||
IsAdmin bool
|
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