modified: main_dc/yalarba/api_es/internal/models/account.go
add status code to Account struct easysite102.ru
This commit is contained in:
@@ -22,4 +22,8 @@ type Account struct {
|
||||
INN string `json:"inn"` // ИНН организации
|
||||
PersonalINN string `json:"personal_inn"` // Личный ИНН
|
||||
|
||||
// Статус
|
||||
IsActive bool `gorm:"default:true" json:"is_active"`
|
||||
IsVerified bool `gorm:"default:false" json:"is_verified"`
|
||||
Role string `gorm:"default:user" json:"role"` // user, admin, moderator
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user