customers

-1 rows


Description

Таблица покупателей

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 null
company_to_customers.customer_id company_to_customers_customer_id_fkey R
customers_custom_fields_values_chained_list.entity_id customers_custom_fields_values_chained_list_entity_id_fkey R
customers_custom_fields_values_checkbox.entity_id customers_custom_fields_values_checkbox_entity_id_fkey R
customers_custom_fields_values_date.entity_id customers_custom_fields_values_date_entity_id_fkey R
customers_custom_fields_values_file.entity_id customers_custom_fields_values_file_entity_id_fkey R
customers_custom_fields_values_numeric.entity_id customers_custom_fields_values_numeric_entity_id_fkey R
customers_custom_fields_values_select.entity_id customers_custom_fields_values_select_entity_id_fkey R
customers_custom_fields_values_text.entity_id customers_custom_fields_values_text_entity_id_fkey R
customers_to_segments.entity_id customers_to_segments_entity_id_fkey R
customers_to_tags.entity_id customers_to_tags_entity_id_fkey R

id покупателя

name text 2147483647 null

Название покупателя

responsible_user_id int4 10 null
users.id customers_responsible_user_id_fkey R

id пользователя, ответственного за покупателя

status_id int4 10 null

ID статуса покупателя в аккаунте

purchases_count int4 10 null

Количество покупок

periodicity int4 10 null

Периодичность

next_date timestamp 29,6 null

Ожидаемая дата следующей покупки

next_price numeric 0 null

Ожидаемая сумма покупки

ltv int4 10 null

Сумма покупок

labor_cost int4 10 null

Стоимость труда

average_check int4 10 null

Средний размер покупки

is_deleted bool 1 null

Удален ли покупатель

closest_task_at timestamp 29,6 null

Дата ближайшей задачи к выполнению

created_at timestamp 29,6 null

Дата создания покупателя

updated_at timestamp 29,6 null

Дата изменения покупателя

created_by int4 10 null

id пользователя, создавшего покупателя

updated_by int4 10 null

id пользователя, изменившего покупателя

Indexes

Constraint Name Type Sort Column(s)
customers_pkey Primary key Asc id

Check Constraints

Constraint Name Constraint
customers_created_by_check ((created_by >= 0))
customers_updated_by_check ((updated_by >= 0))

Relationships