leads_custom_fields_values_legal_entity

-1 rows


Description

Таблица значений кастомных полей с типом Юр. лицо

Columns

Column Type Size Nulls Auto Default Children Parents Comments
entity_id int4 10 null
leads.id leads_custom_fields_values_legal_entity_entity_id_fkey R

id сделки

custom_field_id int4 10 null
custom_fields.id leads_custom_fields_values_legal_entity_custom_field_id_fkey R

id кастомного поля

name text 2147483647 √ null

Название организации

entity_type int2 5 √ null

Тип юридического лица. 1 – Частное, 2 – Юридическое.

address text 2147483647 √ null

Адрес

real_address text 2147483647 √ null

Факт. адрес

bank_account_number text 2147483647 √ null

Рассчетный счет

director text 2147483647 √ null

ФИО директора организации

vat_id text 2147483647 √ null

ИНН организации (Россия)

tax_registration_reason_code text 2147483647 √ null

ОГРНИП (Россия)

kpp text 2147483647 √ null

КПП организации (Россия)

bank_code text 2147483647 √ null

БИК

bin text 2147483647 √ null

БИН организации (Казахстан)

unp text 2147483647 √ null

УНП организации (Белоруссия)

egrpou text 2147483647 √ null

ЕГРПОУ организации (Украина)

mfo text 2147483647 √ null

МФО организации (Украина/Узбекистан)

oked text 2147483647 √ null

ОКЭД организации (Узбекистан)

external_uid uuid 2147483647 √ null

Идентификатор внешней системы

Indexes

Constraint Name Type Sort Column(s)
leads_custom_fields_values_legal_entity_pkey Primary key Asc/Asc entity_id + custom_field_id
index_leads_custom_fields_values_legal_entity_custom_field_id Performance Asc custom_field_id

Check Constraints

Constraint Name Constraint
leads_custom_fields_values_legal_entity_entity_type_check ((entity_type > 0))

Relationships