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