/
deka
/
dber
Обзор
Документация
Войти
/
deka
/
dber
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
TEST_DATA.dbml
723 строки
32 KB
Maxim Ratnikov
Добавил тестовые данные
08 окт 2024, 20:57
08 окт 2024, 20:57
3035207
Код
Авторство
О чём код?
Table "tiering"."attribute_meta" { "id" serial4 [not null] "name" varchar(64) [not null, note: 'наименование свойства для использования в UI'] "code" varchar(32) [note: 'код свойства'] "data_type" varchar(10) [note: 'название типа данных свойства'] "owner_type" varchar(16) [not null, note: 'название принадлежности свойства'] "order_num" int4 [not null, default: 0, note: 'порядковый номер шаблона атрибутов для сортировки'] Indexes { code [unique, name: "attribute_meta_code_key"] name [unique, name: "attribute_meta_name_key"] id [pk, name: "pk_attributes_meta"] } Note: 'Метаданные атрибутов' } Table "tiering"."condition" { "id" serial4 [not null] "name" varchar(250) [not null, note: 'название условия'] "operator" varchar(6) [not null, note: 'оператор условия (для условий с бинарными операциями)'] "value" varchar(250) [not null, note: 'значение сохраненное в условии'] "condition_param_id" int4 [not null, note: 'ссылка на параметр для проверки условия'] Indexes { id [pk, name: "pk_condition"] name [unique, name: "uc_condition_name"] } } Table "tiering"."condition_group" { "id" serial4 [not null] "name" varchar(512) [not null, note: 'человекочитаемое название группы условий'] "code" varchar(512) [not null, note: 'код группы условий'] "type" varchar(16) [not null, note: 'тип группы условий'] Indexes { id [pk, name: "pk_condgroup"] code [unique, name: "uc_condgroup_code"] } Note: 'Категории - группы условий' } Table "tiering"."condition_param" { "id" serial4 [not null] "name" varchar(64) [not null, note: 'имя'] "code" varchar(32) [not null, note: 'код'] "datatype" varchar(10) [not null, note: 'название типа данных'] Indexes { id [pk, name: "pk_cond_prm"] code [unique, name: "uc_cond_prm_code"] } Note: 'справочник параметров условий' } Table "tiering"."databasechangelog" { "id" varchar(255) [not null] "author" varchar(255) [not null] "filename" varchar(255) [not null] "dateexecuted" timestamp [not null] "orderexecuted" int4 [not null] "exectype" varchar(10) [not null] "md5sum" varchar(35) "description" varchar(255) "comments" varchar(255) "tag" varchar(255) "liquibase" varchar(20) "contexts" varchar(255) "labels" varchar(255) "deployment_id" varchar(10) } Table "tiering"."databasechangeloglock" { "id" int4 [not null] "locked" bool [not null] "lockgranted" timestamp "lockedby" varchar(255) Indexes { id [pk, name: "databasechangeloglock_pkey"] } } Table "tiering"."efx_client_info" { "id" serial4 [not null] "trader_id" int4 [not null, note: 'идентификатор трейдера (поле userId)'] "client_murex_code" varchar(64) [not null, note: 'мюрекс код клиента (поле clientCode)'] "tier_name" varchar(32) [not null, note: 'наименование тира (поле tier)'] "class_code" varchar(64) [not null, note: 'класс (поле securityClassCode)'] "mode" varchar(64) [not null, note: 'права трейдера в Quik (поле quikMode)'] "currency_pairs" varchar(1024) [not null, note: 'валютные пары (поле securities)'] "event_id" varchar(36) [not null, note: 'идентификатор события'] "created_at" timestamp(6) [not null, default: `now()`, note: 'дата и время создания'] Indexes { id [pk, name: "pk_efx_client_info"] (trader_id, client_murex_code, currency_pairs) [type: btree, name: "efx_client_info_update_key_idx"] event_id [type: btree, name: "idx_efx_client_info_event_id"] } Note: 'информация по клиентам eFX (структура QuikRightsModa)' } Table "tiering"."efx_monitoring" { "id" serial4 [not null] "event_id" varchar(36) [not null, note: 'идентификатор события'] "status" varchar(32) [not null, note: 'статус'] "date_time" timestamp(6) [not null, note: 'дата и время получения статуса'] "comment" varchar(1024) [note: 'комментарий'] Indexes { id [pk, name: "pk_efx_monitoring"] event_id [type: btree, name: "idx_efx_monitoring_event_id"] } Note: 'мониторинг взаимодействий с eFX' } Table "tiering"."efx_tier_mapping" { "id" serial4 [not null] "tier_name" varchar(32) [not null, note: 'наимеенование тира (поле tier)'] "class_code" varchar(64) [not null, note: 'класс (поле securityClassCode)'] "currency_pairs" varchar(1024) [not null, note: 'валютные пары (поле securities)'] "created_at" timestamp(6) [not null, default: `now()`, note: 'дата и время создания'] "event_id" varchar(36) [not null, default: `'empty'::charactervarying`, note: 'идентификатор внешнего события'] Indexes { id [pk, name: "pk_efx_tier_mapping"] } Note: 'тиры eFX (структура quik_class_tier_mapping)' } Table "tiering"."fads_client_info" { "id" int4 [not null, increment] "murex_code" varchar(64) [note: 'Murex-код клиента'] "epk_id" varchar(64) [note: 'Epk ID - бизнес-идентификатор клиента'] "symbol" varchar(1024) [not null, note: 'Валютные пары'] "product" varchar(32) [not null, note: 'SPOT, FORWARD, SWAP'] "tier" varchar(16) [not null, note: 'Тир на фадсе'] "updated_by" varchar(64) [not null, note: 'Скрипт, фамилия человека, ФП Тиринг'] "updated_at" timestamp(6) [not null, default: `now()`, note: 'дата и время создания'] "event_id" varchar(36) [not null, default: `'empty'::charactervarying`, note: 'идентификатор внешнего события'] Indexes { id [pk, name: "pk_fads_tier_mapping"] } Note: 'тиры eFX (структура fads_tiers)' } Table "tiering"."fads_tier_mapping" { "id" int4 [not null, increment] "product_code" varchar(255) [not null, note: 'Код продукта'] "tier" varchar(30) [not null, note: 'Тир'] "updated_by" varchar(64) [not null, note: 'Кем создано'] "updated_at" timestamp(6) [not null, note: 'Дата и время изменения'] "event_id" varchar(36) [not null, note: 'ID события'] "epk_id" varchar(64) "murex_code" varchar(64) "product" varchar(32) "symbol" varchar(1024) Indexes { id [pk, name: "fads_tier_mapping_pkey"] event_id [type: btree, name: "fads_tier_mapping_evt_id_idx"] } Note: 'Информация о параметрах тиров по автозагрузке' } Table "tiering"."fads_tier_params" { "id" int4 [not null, increment] "symbol" varchar(64) [not null, note: 'Валютная пара'] "tier" varchar(32) [not null, note: 'Тир'] "volume" int4 [not null, note: 'Объем'] "tenor" varchar(30) [not null, note: 'Тенор'] "bid_spread" float8 [not null, note: 'Величина маркапа bid в абсолютном значении'] "ask_spread" float8 [not null, note: 'Величина маркапа ask в абсолютном значении'] "bid_bp" float8 [not null, note: 'Величина маркапа bid в %'] "ask_bp" float8 [not null, note: 'Величина маркапа ask в %'] "updated_by" varchar(64) [not null, note: 'Кем создано'] "updated_at" timestamp(6) [not null, note: 'Дата и время изменения'] "event_id" varchar(36) [not null, note: 'ID события'] Indexes { id [pk, name: "fads_tier_params_pkey"] event_id [type: btree, name: "fads_tier_params_evt_id_idx"] } Note: 'Информация о параметрах тиров по автозагрузке' } Table "tiering"."hash" { "epk_id" varchar(255) [not null] "pkap_hash" int4 Indexes { epk_id [pk, name: "pk_integration_hash"] } } Table "tiering"."import_base_log" { "type" varchar(32) [not null, note: 'тип импорта'] "initiator" varchar(60) [not null, note: 'код системы пользователя запустившего импорт'] "total" int4 [not null, note: 'общее число объектов импорта'] "successed" int4 [not null, note: 'число успешно обработанных объектов импорта'] "status" varchar(16) [not null, note: 'статус импорта'] "created_at" timestamp(6) [not null, note: 'дата/время запуска импорта'] "version" int4 [not null, note: 'техническое поле для контроля конкурентных изменений'] "id" uuid [not null, default: `gen_random_uuid()`] Indexes { id [pk, name: "pk_import_base_log"] } } Table "tiering"."import_file_log" { "initiator_user" varchar(60) [not null, note: 'пользователь-инициатор импорта'] "initiator_system" varchar(12) [not null, note: 'код системы пользователя запустившего импорт'] "total_rows" int4 [not null, note: 'общее число строк в файле'] "processed_rows" int4 [not null, note: 'число обработанных строк в файле'] "file_name" varchar(255) [not null, note: 'название исходного файла импорта'] "source_file" oid [not null, note: 'содержимое исходного файла импорта'] "mime_type" varchar(255) [not null, note: 'MIME тип файла импорта'] "result_file" oid [note: 'содержимое выходного файла импорта'] "status" varchar(16) [not null, note: 'статус импорта'] "created_at" timestamp(6) [not null, note: 'дата/время запуска импорта'] "version" int4 [not null, note: 'техническое поле для контроля конкурентных изменений'] "id" uuid [not null, default: `gen_random_uuid()`] "count_tickets" int4 [not null, default: 0, note: 'Количество созданных заявок'] Indexes { id [pk, name: "pk_import_file_log"] } } Table "tiering"."import_hash" { "epk_id" varchar(128) [not null, note: 'идентификатор клиента (EPK)'] "ok_hash" int4 [note: 'хеш-код данных импорта клиента по Общему курсу'] "ok_changed_at" timestamp(6) [not null, default: `now()`, note: 'время последних изменений по Общему курсу'] "dcb_efx_hash" int4 [note: 'хеш-код данных импорта клиента по Курсу dcb-efx'] "dcb_efx_changed_at" timestamp(6) [not null, default: `now()`, note: 'время последних изменений по Курсу dcb-efx'] "currency_pair" varchar(7) [not null, default: `'/'::charactervarying`, note: 'валютная пара, например USD/RUB или если валюты не указаны просто /'] Indexes { (epk_id, currency_pair) [pk, name: "pk_import_hash_composite"] } } Table "tiering"."liq_databasechangelog" { "id" varchar(255) [not null] "author" varchar(255) [not null] "filename" varchar(255) [not null] "dateexecuted" timestamp [not null] "orderexecuted" int4 [not null] "exectype" varchar(10) [not null] "md5sum" varchar(35) "description" varchar(255) "comments" varchar(255) "tag" varchar(255) "liquibase" varchar(20) "contexts" varchar(255) "labels" varchar(255) "deployment_id" varchar(10) } Table "tiering"."liq_databasechangeloglock" { "id" int4 [not null] "locked" bool [not null] "lockgranted" timestamp "lockedby" varchar(255) Indexes { id [pk, name: "liq_databasechangeloglock_pkey"] } } Table "tiering"."notification_log" { "id" serial4 [not null] "ticket_id" int4 [not null, note: 'идентификатор заявки'] "notify_id" varchar(36) [not null, note: 'идентификатор события нотификации'] Indexes { id [pk, name: "pk_notification_log"] notify_id [unique, name: "uc_notify_id"] } Note: 'Отслеживание нотификаций о применении заявок' } Table "tiering"."product" { "id" serial4 [not null] "name" varchar(120) [not null, note: 'название продукта'] "code" varchar(32) [not null, note: 'код продукта'] "type" varchar(32) [note: 'тип продукта'] "specialty" varchar(32) [note: 'особенность продукта'] "channel" varchar(32) [note: 'канал'] "display_name" varchar(120) [note: 'отображаемое имя продукта'] "short_name" varchar(32) [note: 'краткое наименование продукта'] "color" varchar(16) [note: 'цвет плашки'] "order_num" int4 [not null, default: 0, note: 'порядковый номер продукта для отображения'] "visible" bool [not null, default: true, note: 'признак видимости продуктов'] Indexes { id [pk, name: "pk_product"] code [unique, name: "uc_product_code"] } Note: 'Справочник продуктов' } Table "tiering"."service_property" { "id" serial4 [not null] "property_name" varchar(64) [not null, note: 'наименование свойства'] "property_value" varchar(128) [not null, note: 'значение свойства'] Indexes { id [pk, name: "pk_service_property"] property_name [unique, name: "service_property_property_name_key"] } } Table "tiering"."shedlock" { "name" varchar(64) [not null] "lock_until" timestamp [not null] "locked_at" timestamp [not null] "locked_by" varchar(255) [not null] Indexes { name [pk, name: "shedlock_pkey"] } } Table "tiering"."tier" { "id" serial4 [not null] "tier_type_id" int4 [not null] "external_name" varchar(32) [not null, note: 'название тира во внешней системе'] "params" jsonb [note: 'внешние параметры тира'] Indexes { id [pk, name: "pk_tier"] (tier_type_id, external_name) [unique, name: "uc_tier_type_ext_name"] } Note: 'Справочник тиров' } Table "tiering"."tier_mappings" { "id" serial4 [not null] "margin" varchar(32) [not null, note: 'значение маржи'] "sbbol" varchar(32) [note: 'имя тира для sbbol'] "sbm" varchar(32) [note: 'имя тира для sbm'] Indexes { id [pk, name: "pk_tier_mappings"] margin [unique, name: "uc_tier_map_margin"] } Note: 'связь маржи и тира для сббол и сбм' } Table "tiering"."wal_databasechangelog" { "id" varchar(255) [not null] "author" varchar(255) [not null] "filename" varchar(255) [not null] "dateexecuted" timestamp [not null] "orderexecuted" int4 [not null] "exectype" varchar(10) [not null] "md5sum" varchar(35) "description" varchar(255) "comments" varchar(255) "tag" varchar(255) "liquibase" varchar(20) "contexts" varchar(255) "labels" varchar(255) "deployment_id" varchar(10) } Table "tiering"."wal_databasechangelog_lock" { "id" int4 [not null] "locked" bool [not null] "lockgranted" timestamp "lockedby" varchar(255) Indexes { id [pk, name: "wal_databasechangelog_lock_pkey"] } } Table "tiering"."wal_messages" { "id" bigserial [not null, increment] "partition_hash" int4 [not null] "app_module" varchar(256) [not null] "body" jsonb [not null] "created_at" timestamptz [not null] "is_sent" bool [not null, default: false] Indexes { id [pk, name: "pk_wal_mesages"] } } Table "tiering"."attribute_product" { "id" serial4 [not null] "product_id" int4 [not null] "meta_id" int4 [not null] Indexes { id [pk, name: "pk_attribute_product"] } Note: 'Свойства продукта' } Table "tiering"."client" { "id" serial4 [not null] "type" varchar(12) [not null, note: 'тип клиента'] "name" varchar(4096) [not null, note: 'человекочитаемое название клиента'] "tin" varchar(12) [note: 'ИНН/КИО'] "ter_bank" varchar(50) [note: 'территориальный банк клиента'] "comment" varchar(1024) [note: 'комментарий клиента'] "short_name" varchar(1024) [note: 'короткое наименование клиента'] "segment" varchar(50) [note: 'сегмент'] "company_group" varchar(50) [note: 'группа компаний'] "updated_date" timestamp(6) [note: 'дата обновления клиента'] "has_tickets" bool [not null, default: false, note: 'показатель наличия открытых заявок'] "ter_bank_id" int4 [note: 'идентификатор-ссылка на клиента-тербанка'] "code" int4 [note: 'код тербанка'] "is_spliced" bool [not null, default: false, note: 'признак того, произошла ли склейка для клиента'] "no_acc" bool [default: true] Indexes { id [pk, name: "pk_client"] tin [type: btree, unique, name: "uc_client_tin"] } Note: 'Клиент' } Table "tiering"."client_alias" { "alias" varchar(64) [not null, note: 'псевдоним (или идентификатор) клиента во внешней системе'] "system_owner" varchar(12) [not null, note: 'определяет систему которой принадлежит данный псевдоним клиента'] "client_id" int4 [not null] Indexes { (alias, system_owner) [pk, name: "pk_client_alias"] client_id [type: btree, name: "idx_clialias_client"] } Note: 'Идентификаторы клиента в других системах' } Table "tiering"."client_epk" { "id" serial4 [not null] "client_id" int4 [not null, note: 'идентификатор-ссылка на клиента'] "epk_id" varchar(64) [note: 'EPK идентификатор'] "is_main" bool [note: 'признак главного EPK'] "ter_bank_id" int4 [note: 'идентификатор-ссылка на клиента-тербанка'] "name" varchar(4096) [not null, note: 'наименование клиента'] "short_name" varchar(1024) [note: 'короткое наименование клиента'] "segment" varchar(50) [note: 'сегмент'] "company_group" varchar(50) [note: 'группа компаний'] Indexes { id [pk, name: "pk_client_epk"] epk_id [unique, name: "uc_client_epk_epk_id"] client_id [type: btree, name: "idx_client_epk_client_id"] } } Table "tiering"."client_murex" { "id" serial4 [not null] "client_id" int4 [not null] "murex_code" varchar(64) [not null, note: 'murex код'] "type" varchar(16) [not null, default: `'UNKNOWN'::charactervarying`, note: 'тип мюрекс-кода'] Indexes { id [pk, name: "pk_client_murex"] client_id [type: btree, name: "idx_client_murex_client_id"] murex_code [type: btree, name: "idx_client_murex_murex_code"] } } Table "tiering"."client_product" { "id" serial4 [not null] "client_id" int4 [not null] "product_id" int4 [not null] "date_from" timestamp(6) [note: 'начало периода действия для продукта клиента'] "date_to" timestamp(6) [note: 'окончание периода действия для продукта клиента'] Indexes { id [pk, name: "pk_client_product"] } Note: 'Подключенные продукты клиента' } Table "tiering"."client_tier" { "id" serial4 [not null] "client_id" int4 [not null] "tier_id" int4 [not null] "condition_group_id" int4 [not null] "tier_lock" varchar(16) [not null, default: `'OPEN'::charactervarying`, note: 'защита от изменений'] "lock_reason" varchar(256) [note: 'причина защиты от изменений'] Indexes { (client_id, tier_id, condition_group_id) [unique, name: "client_tier_client_id_tier_id_condition_group_id_key"] id [pk, name: "pk_client_tier"] } Note: 'Актуальные тиры клиента' } Table "tiering"."condition_condition_group" { "id" serial4 [not null] "condition_group_id" int4 [not null] "condition_id" int4 [not null] Indexes { id [pk, name: "pk_condition_condition_group"] } } Table "tiering"."history_event" { "id" serial4 [not null] "type" varchar(20) [not null, note: 'тип ивента'] "source" varchar(64) [not null, note: 'источник ивента'] "event_date_time" timestamp(6) [not null, note: 'дата и время ивента'] "client_id" int4 [not null, note: 'внутренний id клиента'] "assignier" varchar(64) [not null, note: 'кто вносил изменения'] "init_comment" varchar(1024) [note: 'зачем вносили изменения'] "object_id" int4 [note: 'id атрибута (из attribute_meta) || id тира (из tier)'] "object_name" varchar(256) [not null, note: 'наименование атрибута (attribute_meta) || наименование типа тира (из tier_type)'] "object_value" varchar(1024) [not null, note: 'значение атрибута (из attribute) || externalName тира (из tier)'] "date_from" timestamp(6) [note: 'дата C'] "date_to" timestamp(6) [note: 'дата ПО'] "product_id" int4 [note: 'id продукта'] "product_code" varchar(256) [note: 'код продукта'] "product_name" varchar(256) [note: 'наименование продукта'] "group_code" varchar(512) [note: 'код группы условий'] "group_name" varchar(512) [note: 'наименование группы условий'] "ticket_id" int4 [note: 'номер заявки инициировавшей событие'] "ticket_status" varchar(20) [note: 'статус заявки инициировавшей событие'] "initiator" varchar(64) [note: 'имя пользователя создавшего заявку'] "old_object_id" int4 [note: 'идентификатор старого объекта события'] "old_object_name" varchar(256) [note: 'имя старого объекта события'] "old_object_value" varchar(1024) [note: 'значение старого объекта события'] "old_date_from" timestamp(6) [note: 'дата действия С старого объекта события'] "old_date_to" timestamp(6) [note: 'дата действия ПО старого объекта события'] "reject_comment" varchar(1024) [note: 'комментарий при отклонении заявки'] Indexes { id [pk, name: "pk_history_event"] client_id [type: btree, name: "history_event_client_id_idx"] product_id [type: btree, name: "history_event_product_id_idx"] ticket_id [type: btree, name: "history_event_ticket_id_idx"] type [type: btree, name: "history_event_type_idx"] } Note: 'события историчности' } Table "tiering"."ticket" { "id" serial4 [not null] "status" varchar(20) [not null, note: 'статус заявки'] "created_at" timestamp(6) [not null, note: 'дата и время создания заявки'] "changed_at" timestamp(6) [note: 'дата и время применения заявки'] "type" varchar(20) [not null, note: 'тип заявки'] "source" varchar(64) [not null, note: 'система источник'] "ext_id" varchar(64) [note: 'внешний id заявки'] "client_id" int4 [not null, note: 'внутренний id клиента'] "initiator" varchar(64) [not null, note: 'кто инициатор изменений'] "init_comment" varchar(1024) [note: 'зачем вносили изменения'] "assigner" varchar(64) [note: 'исполнитель'] "processing_comment" varchar(1024) [note: 'комментарий при обработке'] "error" varchar(1024) [note: 'ошибка'] "data" jsonb [not null, note: 'контент заявки'] "tariff" varchar(16) [note: 'тариф для клиента'] "parent_id" int4 [note: 'ссылка на родительскую заявку'] "group_ticket" bool [not null, default: false, note: 'признак групповой заявки (родительская или дочерняя)'] "notify_id" varchar(36) [note: 'идентификатор события нотификации'] "visible" bool [not null, default: true, note: 'признак видимости заявки'] Indexes { id [pk, name: "pk_ticket"] (status, client_id) [type: btree, name: "idx_ticket_client_status"] parent_id [type: btree, name: "ticket_parent_id_idx"] } Note: 'заявки' } Table "tiering"."ticket_attr_snapshot" { "id" serial4 [not null] "ticket_id" int4 [not null, note: 'внутренний id заявки'] "created_at" timestamp(6) [not null, note: 'дата и время создания снепшота'] "snapshot" jsonb [not null, note: 'снепшот изменений свойств по заявке'] Indexes { id [pk, name: "pk_ticket_attr_snapshot"] ticket_id [unique, name: "ticket_attr_snapshot_ticket_id_key"] } Note: 'снепшоты изменений свойств по заявкам' } Table "tiering"."ticket_snapshot" { "id" serial4 [not null] "ticket_id" int4 [not null, note: 'внутренний id заявки'] "created_at" timestamp(6) [not null, note: 'дата и время создания снепшота'] "snapshot" jsonb [not null, note: 'снепшот изменений по заявке'] Indexes { id [pk, name: "pk_ticket_snapshot"] ticket_id [unique, name: "ticket_snapshot_ticket_id_key"] } Note: 'снепшоты изменений по заявкам' } Table "tiering"."tier_condition_group" { "id" serial4 [not null] "condition_group_id" int4 [not null] "tier_id" int4 [not null] Indexes { id [pk, name: "pk_tier_condgroup"] (condition_group_id, tier_id) [unique, name: "uc_condition_group_tier"] } } Table "tiering"."tier_type" { "id" serial4 [not null] "code" varchar(32) [not null, note: 'код тира'] "name" varchar(256) [not null, note: 'наименование'] "product_id" int4 [not null, note: 'продукт к которому привязан тир'] Indexes { id [pk, name: "pk_tiertype"] code [unique, name: "uc_tiertype_code"] } Note: 'Справочник типов тиров' } Table "tiering"."attribute_client" { "id" serial4 [not null] "client_id" int4 [not null] "meta_id" int4 [not null] "value" varchar(1024) [not null, note: 'значение свойства сериализованное в строку'] "date_from" timestamp [not null, default: `'2000-01-01'::date`, note: 'начало актуального периода для свойства'] "date_to" timestamp [note: 'окончание актуального периода для свойства'] Indexes { id [pk, name: "pk_attribute_client"] } Note: 'Свойства клиента' } Table "tiering"."attribute_client_product" { "id" serial4 [not null] "client_product_id" int4 [not null] "meta_id" int4 [not null] "value" varchar(1024) [not null, note: 'значение свойства сериализованное в строку'] "date_from" timestamp [not null, default: `'2000-01-01'::date`, note: 'начало актуального периода для свойства'] "date_to" timestamp [note: 'окончание актуального периода для свойства'] Indexes { id [pk, name: "pk_attribute_client_product"] client_product_id [type: btree, name: "attribute_client_product_client_product_id_idx"] meta_id [type: btree, name: "attribute_client_product_meta_id_idx"] } Note: 'Свойства продукта клиента' } Table "tiering"."sic_client_info" { "id" uuid [not null, default: `gen_random_uuid()`] "evt_id" varchar(255) [not null, note: 'уникальный идентификатор события'] "client_id" int4 [not null, note: 'внутренний id клиента'] "ticket_id" int4 [not null, note: 'внутренний id заявки'] "contract_number" varchar(255) [not null, note: 'номер контракта'] "status" varchar(30) [not null, note: 'статус контракта'] "created_at" timestamp(6) [not null, note: 'дата и время создания'] "updated_at" timestamp(6) [not null, note: 'дата и время изменения'] Indexes { id [pk, name: "sic_client_info_pkey"] client_id [type: btree, name: "sic_client_info_client_id_idx"] contract_number [type: btree, name: "sic_client_info_contract_number_idx"] evt_id [type: btree, name: "sic_client_info_evt_id_idx"] ticket_id [type: btree, name: "sic_client_info_ticket_id_idx"] } Note: 'информация о контрактах ППРБ.СИЦ' } Ref "fk_attrprod_attributes_meta":"tiering"."attribute_meta"."id" < "tiering"."attribute_product"."meta_id" [delete: cascade] Ref "fk_attrprod_product":"tiering"."product"."id" < "tiering"."attribute_product"."product_id" [delete: cascade] Ref "fk_client_ter_bank_id":"tiering"."client"."id" < "tiering"."client"."ter_bank_id" [update: set null, delete: set null] Ref "fk_client_alias_client":"tiering"."client"."id" < "tiering"."client_alias"."client_id" [delete: cascade] Ref "fk_client_epk_client_id":"tiering"."client"."id" < "tiering"."client_epk"."client_id" [delete: cascade] Ref "fk_client_epk_ter_bank_id":"tiering"."client"."id" < "tiering"."client_epk"."ter_bank_id" [update: cascade, delete: set null] Ref "fk_client_murex_client":"tiering"."client"."id" < "tiering"."client_murex"."client_id" [delete: cascade] Ref "fk_cp_client":"tiering"."client"."id" < "tiering"."client_product"."client_id" [delete: cascade] Ref "fk_cp_product":"tiering"."product"."id" < "tiering"."client_product"."product_id" [delete: cascade] Ref "fk_ct_client":"tiering"."client"."id" < "tiering"."client_tier"."client_id" [delete: cascade] Ref "fk_ccg_condition":"tiering"."condition"."id" < "tiering"."condition_condition_group"."condition_id" Ref "fk_history_event_client":"tiering"."client"."id" < "tiering"."history_event"."client_id" [update: restrict, delete: cascade] Ref "fk_ticket_client":"tiering"."client"."id" < "tiering"."ticket"."client_id" [delete: cascade] Ref "fk_ticket_attr":"tiering"."ticket"."id" < "tiering"."ticket_attr_snapshot"."ticket_id" [delete: cascade] Ref "fk_ticket":"tiering"."ticket"."id" < "tiering"."ticket_snapshot"."ticket_id" [delete: cascade] Ref "fk_tcg_condgroup":"tiering"."condition_group"."id" < "tiering"."tier_condition_group"."condition_group_id" [delete: cascade] Ref "fk_tcg_tier":"tiering"."tier"."id" < "tiering"."tier_condition_group"."tier_id" [delete: cascade] Ref "fk_tiertype_product":"tiering"."product"."id" < "tiering"."tier_type"."product_id" [delete: cascade] Ref "fk_attrclient_attributes_meta":"tiering"."attribute_meta"."id" < "tiering"."attribute_client"."meta_id" [delete: cascade] Ref "fk_attrclient_client":"tiering"."client"."id" < "tiering"."attribute_client"."client_id" [delete: cascade] Ref "fk_attrclientprod_attributes_meta":"tiering"."attribute_meta"."id" < "tiering"."attribute_client_product"."meta_id" [delete: cascade] Ref "fk_attrclientprod_client_product":"tiering"."client_product"."id" < "tiering"."attribute_client_product"."client_product_id" [delete: cascade] Ref "fk_sic_client_info_client":"tiering"."client"."id" < "tiering"."sic_client_info"."client_id" [delete: cascade] Ref "fk_sic_client_info_ticket":"tiering"."ticket"."id" < "tiering"."sic_client_info"."ticket_id" [delete: cascade]