b33127055a
add business info into Account easysite102.ru
26 lines
1.0 KiB
Go
26 lines
1.0 KiB
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"`
|
|
|
|
// Бизнес информация (для владельцев объектов)
|
|
OrganizationForm string `json:"organization_form"` // ИП, ООО и т.д.
|
|
OrganizationName string `json:"organization_name"`
|
|
OrganizationShort string `json:"organization_short"`
|
|
INN string `json:"inn"` // ИНН организации
|
|
PersonalINN string `json:"personal_inn"` // Личный ИНН
|
|
|
|
}
|