Описание таблицы boi.boi__boi_ref
create table boi_ref
(
company_id varchar(20) not null,
from_instance_id varchar(20) not null,
from_bo_id varchar(20) not null,
from_field_id varchar(20) not null,
target_instance_id varchar(20) not null,
target_bo_id varchar(20) not null,
from_removed boolean default false not null,
target_removed boolean default false not null,
primary key (from_instance_id, from_field_id, target_instance_id)
);
comment on table boi_ref is 'Сохраняет перекрёстные ссылки между бизнес-объектами';
comment on column boi_ref.company_id is 'Идентификатор компании';
comment on column boi_ref.from_instance_id is 'Идентификатор исходной инстанции';
comment on column boi_ref.from_bo_id is 'Идентификатор бизнес-объекта исходной инстанции';
comment on column boi_ref.from_field_id is 'Идентификатор поля исходной инстанции';
comment on column boi_ref.target_instance_id is 'Идентификатор инстанции назначения';
comment on column boi_ref.target_bo_id is 'Идентификатор бизнес-объекта инстанции назначения';
comment on column boi_ref.from_removed is 'Признак удалённости исходной инстанции';
comment on column boi_ref.target_removed is 'Признак удалённости инстанции назначения';