a228adebc7
add account main info
18 lines
597 B
Go
18 lines
597 B
Go
package models
|
|
|
|
import ()
|
|
|
|
type Account struct {
|
|
/*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/
|
|
Base Base `gorm:"embedded"`
|
|
|
|
// Основная информация
|
|
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"`
|
|
}
|