Tabelas de relatório de relacionamentos de ativos

Verifique as instruções PostgreSQL, Db2 para as tabelas relacionadas aos relacionamentos de ativos.

Área de assunto Nome da tabela Descrição
Relacionamentos de ativos relações_entre_ativos_e_artefatos As associações entre ativos e artefatos de controle.
Relacionamentos de ativos container_assets_associations Os relacionamentos entre os ativos de catálogos
Relacionamentos de ativos asset_tags As tags associadas a um ativo.
Relacionamentos de ativos governance_artifact_container_Associações O artefato de controle, que está associado a um ativo de catálogos
Relacionamentos de ativos data_asset_column_artifact_associations Os artefatos de controle, associados à coluna do ativo de dados.
Relacionamentos de ativos relações_entre_colunas_e_ativos As associações entre a coluna de ativo de dados e um ativo
Relacionamentos de ativos relações_de_coluna_para_coluna As associações entre as colunas do ativo de dados
Relacionamentos de ativos relações_entre_colunas_e_artefatos As associações entre a coluna de ativo de dados e os artefatos
Relacionamentos de ativos data_asset_pk_fk_columns As associações entre a coluna do ativo de dados e qualquer ativo
Relacionamentos de ativos colunas_de_referência_da_chave_estrangeira_do_ativo_de_dados As associações entre a coluna de referência do ativo de dados e qualquer ativo

relações_entre_ativos_e_artefatos

Esta tabela contém informações sobre as associações entre os artefatos de ativo e de controle

A tabela possui as seguintes colunas:

  • end1_asset_id -O identificador do ativo end1 .
  • end2_artifact_id -O ID do artefato de destino do relacionamento ativo / artefato
  • end1_container_id -O ID do contêiner do ativo end1 .
  • end2_artifact_type -O tipo de artefato de destino do relacionamento ativo / artefato..
  • end1_relationship_type -O tipo de relacionamento identificado a partir do ativo end1 .
  • end2_relationship_type -O tipo de relacionamento identificado a partir do ativo end2 .

PostgreSQL

Instrução CREATE TABLE:

CREATE TABLE asset_artifact_relations(end1_asset_id varchar(128) NOT NULL,
end1_container_id varchar(36) NOT NULL,
end2_artifact_id varchar(128) NOT NULL,
end2_artifact_type varchar(128) NOT NULL,
end1_relationship_type varchar(256) NOT NULL,
end2_relationship_type varchar(256) NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(end1_asset_id,
end1_container_id,
end2_artifact_id,
end2_artifact_type,
end1_relationship_type))

Instruções ALTER TABLE:

alter table asset_artifact_relations add constraint fk_asset_artifact_relations_container_assets_1 foreign key (end1_container_id,
end1_asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table asset_artifact_relations add constraint fk_asset_artifact_relations_governance_artifacts_2 foreign key (end2_artifact_id) references governance_artifacts(artifact_id) on
	delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

CREATE TABLE asset_artifact_relations(end1_asset_id varchar(128) NOT NULL,
end1_container_id varchar(36) NOT NULL,
end2_artifact_id varchar(128) NOT NULL,
end2_artifact_type varchar(128) NOT NULL,
end1_relationship_type varchar(256) NOT NULL,
end2_relationship_type varchar(256) NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW
BEGIN
	,
	tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW
END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(end1_asset_id,
end1_container_id,
end2_artifact_id,
end2_artifact_type,
end1_relationship_type),
PERIOD SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE BY ROW

Instruções ALTER TABLE:

ALTER TABLE asset_artifact_relations ADD CONSTRAINT
fk_asset_artifact_relations_container_assets_1 FOREIGN KEY (end1_container_id,end1_asset_id)REFERENCES container_assets(container_id,asset_id) ON
	DELETE
	CASCADE  ON
	UPDATE
	NO ACTION
ALTER TABLE asset_artifact_relations ADD CONSTRAINT fk_asset_artifact_relations_governance_artifacts_2 FOREIGN KEY (end2_artifact_id) REFERENCES governance_artifacts(artifact_id) ON
DELETE
	CASCADE ON
	UPDATE
	NO ACTION

tabela container_assets_Associações

Esta tabela contém informações sobre os relacionamentos entre os ativos do catálogo.

Esta tabela possui as seguintes colunas:

  • end1_asset_id -O identificador do ativo de origem
  • end2_asset_id -O identificador do ativo de destino.
  • end1_container_id -O identificador da área de trabalho do ativo de origem
  • end2_container_id -O identificador da área de trabalho do ativo de destino
  • end1_relationship_type -O tipo de relacionamento identificado a partir do ativo de origem.
  • end2_relationship_type -O tipo de relacionamento identificado a partir do ativo de destino.

PostgreSQL

Instrução CREATE TABLE:

CREATE TABLE catalog_assets_associations(end1_asset_id varchar(128) NOT NULL,
end2_asset_id varchar(128) NOT NULL,
end1_container_id varchar(36) NOT NULL,
end2_container_id varchar(36) NOT NULL,
end1_relationship_type varchar(128) NOT NULL,
end2_relationship_type varchar(128) NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30','YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(end1_container_id,
end2_container_id,
end1_asset_id,
end2_asset_id,
end1_relationship_type));

Instruções ALTER TABLE:

alter table catalog_assets_associations add constraint fk_catalog_assets_associations_container_assets_7 foreign key (end1_container_id,
end1_asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table catalog_assets_associations add constraint fk_catalog_assets_associations_container_assets_8 foreign key (end2_container_id,
end2_asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table catalog_assets_associations add constraint fk_catalog_assets_associations_containers_10 foreign key (end1_container_id) references containers(container_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

CREATE TABLE catalog_assets_associations(end1_asset_id varchar(128) NOT NULL,
end2_asset_id varchar(128) NOT NULL,
end1_container_id varchar(36) NOT NULL,
end2_container_id varchar(36) NOT NULL,
end1_relationship_type varchar(128) NOT NULL,
end2_relationship_type varchar(128) NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(end1_container_id,
end2_container_id,
end1_asset_id,
end2_asset_id,
end1_relationship_type),
PERIOD SYSTEM_TIME (tech_start,
tech_end) )

Instruções ALTER TABLE:

alter table catalog_assets_associations add constraint fk_catalog_assets_associations_container_assets_7 foreign key (end1_container_id,
end1_asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table catalog_assets_associations add constraint fk_catalog_assets_associations_container_assets_8 foreign key (end2_container_id,
end2_asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table catalog_assets_associations add constraint fk_catalog_assets_associations_containers_10 foreign key (end1_container_id) references containers(container_id) on
delete
	cascade on
	update
	no action

tabela asset_tags

Esta tabela contém informações sobre as tags que estão associadas a um ativo.

Esta tabela possui as seguintes colunas:

  • tag_name -O nome da tag associada
  • asset_id -O identificador do ativo
  • container_id -O identificador do catálogo ou projeto.

PostgreSQL

Instrução CREATE TABLE:

create table asset_tags(asset_id varchar(128) not null,
container_id varchar(36) not null,
tag_name varchar(256) not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(container_id,
asset_id,
tag_name));

Instruções ALTER TABLE:

alter table asset_tags add constraint fk_asset_tags_container_assets_3 foreign key (container_id,
asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table asset_tags add constraint fk_asset_tags_tags_4 foreign key (tag_name) references tags(tag_name) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table asset_tags(asset_id varchar(128) not null,
container_id varchar(36) not null,
tag_name varchar(256) not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(container_id,
asset_id,
tag_name),
period SYSTEM_TIME (tech_start,
tech_end) )

Instruções ALTER TABLE:

alter table asset_tags add constraint fk_asset_tags_container_assets_3 foreign key (container_id,
asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action
alter table asset_tags add constraint fk_asset_tags_tags_4 foreign key (tag_name) references tags(tag_name) on
delete
	cascade on
	update
	no action

Tabela governance_artifact_container_Associações

Esta tabela contém informações sobre artefatos de governança, por exemplo, termos de negócio ou classificação, que está associada a um ativo de catálogo.

Esta tabela possui as seguintes colunas:

  • asset_id -O identificador do ativo
  • container_id -O identificador do catálogo.
  • associated_artifact_id -O identificador do artefato de controle associado.
  • associated_artifact_type -O tipo do artefato de controle associado, por exemplo, glossary_term, classificação
  • system_id -O identificador do sistema ou identificador global do artefato de controle associado.
  • assignment_state -O estado de designação do artefato com o ativo
  • assignment_date -A data de designação do artefato com o ativo
  • assigned_by -A pessoa que designou o artefato a um ativo
  • confidence -A confiança no artefato designado a um ativo.
  • specification -O algoritmo usa para designar artefato.

PostgreSQL

Instrução CREATE TABLE:

create table governance_artifact_container_associations(asset_id varchar(128) not null,
container_id varchar(36) not null,
associated_artifact_id varchar(128) not null,
associated_artifact_type varchar(128),
system_id varchar(128) not null,
assignment_state varchar(32),
assignment_date timestamp(6),
assigned_by varchar(128),
confidence float,
specification varchar(128),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(asset_id,
container_id,
associated_artifact_id))

Instruções ALTER TABLE:

alter table governance_artifact_catalog_associations add constraint fk_governance_artifact_catalog_associations_governance_artifacts_17 foreign key (associated_artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table governance_artifact_catalog_associations add constraint fk_governance_artifact_catalog_associations_container_assets_9 foreign key (container_id,
asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table governance_artifact_container_associations(asset_id varchar(128) not null,
container_id varchar(36) not null,
associated_artifact_id varchar(128) not null,
associated_artifact_type varchar(128),
system_id varchar(128) not null,
assignment_state varchar(32),
assignment_date timestamp(6),
assigned_by varchar(128),
confidence float,
specification varchar(128),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(asset_id,
container_id,
associated_artifact_id))

Instruções ALTER TABLE:

alter table governance_artifact_catalog_associations add constraint fk_governance_artifact_catalog_associations_governance_artifacts_17 foreign key (associated_artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table governance_artifact_catalog_associations add constraint fk_governance_artifact_catalog_associations_container_assets_9 foreign key (container_id,
asset_id) references container_assets(container_id,
asset_id) on
delete
	cascade on
	update
	no action

tabela data_asset_column_artifact_Associações

Esta tabela contém informações sobre artefatos de governança, por exemplo, termos de negócio ou classificações, que estão associados à coluna do ativo de dados.

Esta tabela possui as seguintes colunas:

  • name -O nome de uma coluna.
  • asset_id -O identificador do ativo
  • container_id -O identificador do catálogo.
  • associated_artifact_id -O identificador do artefato de controle associado.
  • associated_artifact_type -O tipo do artefato de controle associado, por exemplo, glossary_term, classificação
  • system_id -O identificador do sistema ou identificador global do artefato de controle associado.
  • assignment_state -O estado de designação do artefato com o ativo de coluna
  • assignment_date -A data de designação do artefato com o ativo de coluna
  • assigned_by -A pessoa que designou o artefato para o ativo de coluna
  • confidence -A confiança no artefato designado a um ativo.
  • specification -O algoritmo usa para designar artefato.

PostgreSQL

Instrução CREATE TABLE:

create table data_asset_column_artifact_associations(asset_id varchar(128) not null,
container_id varchar(36) not null,
name varchar(256) not null,
associated_artifact_type varchar(128),
associated_artifact_id varchar(128) not null,
system_id varchar(128) not null,
assignment_state varchar(32),
assignment_date timestamp(6),
assigned_by varchar(128),
confidence float,
specification varchar(128),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(container_id,
asset_id,
name,
associated_artifact_id))

Instruções ALTER TABLE:

alter table data_asset_column_artifact_associations add constraint fk_data_asset_column_artifact_associations_governance_artifacts_16 foreign key (associated_artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table data_asset_column_artifact_associations add constraint fk_data_asset_column_artifact_associations_catalog_data_asset_columns_14 foreign key (container_id,
asset_id,
name) references catalog_data_asset_columns(container_id,
asset_id,
name) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table data_asset_column_artifact_associations(asset_id varchar(128) not null,
container_id varchar(36) not null,
name varchar(256) not null,
associated_artifact_type varchar(128),
associated_artifact_id varchar(128) not null,
system_id varchar(128) not null,
assignment_state varchar(32),
assignment_date timestamp(6),
assigned_by varchar(128),
confidence float,
specification varchar(128),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(container_id,
asset_id,
name,
associated_artifact_id))

Instruções ALTER TABLE:

alter table data_asset_column_artifact_associations add constraint fk_data_asset_column_artifact_associations_governance_artifacts_16 foreign key (associated_artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table data_asset_column_artifact_associations add constraint fk_data_asset_column_artifact_associations_catalog_data_asset_columns_14 foreign key (container_id,
asset_id,
name) references catalog_data_asset_columns(container_id,
asset_id,
name) on
delete
	cascade on
	update
	no action

tabela column_to_asset_relations

Esta tabela contém informações sobre as colunas de ativo de dados associadas a ativos.

Esta tabela possui as seguintes colunas:

  • end1_container_id - Especifica o identificador de contêiner do ativo end1.
  • end2_container_id - Especifica o identificador de contêiner do ativo end2.
  • end1_asset_id - Especifica o identificador do ativo end1.
  • end2_asset_id - Especifica o identificador do ativo end2.
  • end1_column_name -Especifica o identificador da coluna de ativo de dados end1
  • end1_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end1.
  • end2_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end2.

PostgreSQL

Instrução CREATE TABLE:

CREATE TABLE column_to_asset_relations (
	end1_asset_id varchar(128) NOT NULL,
	end1_container_id varchar(36) NOT NULL,
	end1_column_name varchar(256) NOT NULL,
	end2_container_id varchar(36) NOT NULL,
	end2_asset_id varchar(128) NOT NULL,
	end1_relationship_type varchar(256) NOT NULL,
	end2_relationship_type varchar(256) NOT NULL,
	tech_start timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	tech_end timestamp(6) NOT NULL DEFAULT to_timestamp('9999-12-30'::text, 'YYYY-MM-DD'::text),
	ts_id timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT column_to_asset_relations_pkey PRIMARY KEY (end1_asset_id, end1_container_id, end1_column_name, end2_container_id, end2_asset_id, end1_relationship_type)
);

Instruções ALTER TABLE:

ALTER TABLE
  column_to_asset_relations
ADD
  CONSTRAINT fk_column_to_asset_relations_container_assets_2 FOREIGN KEY (
    end2_container_id, end2_asset_id
  ) REFERENCES container_assets(container_id, asset_id) ON DELETE CASCADE;
ALTER TABLE
  column_to_asset_relations
ADD
  CONSTRAINT fk_column_to_asset_relations_container_data_asset_columns_1 FOREIGN KEY (
    end1_container_id, end1_asset_id,
    end1_column_name
  ) REFERENCES container_data_asset_columns(container_id, asset_id, "name") ON DELETE CASCADE;


Db2

Instrução CREATE TABLE:

CREATE TABLE "COLUMN_TO_ASSET_RELATIONS"  (
		  "END1_ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END1_CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "END1_COLUMN_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "END2_ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END1_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "TECH_START" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
		  "TECH_END" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
		  "TS_ID" TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
		 PERIOD SYSTEM_TIME ("TECH_START","TECH_END") )
		 IN "USERSPACE1"
		 ORGANIZE BY ROW;

Instruções ALTER TABLE:

ALTER TABLE "COLUMN_TO_ASSET_RELATIONS"
	ADD PRIMARY KEY
		("END1_ASSET_ID",
		 "END1_CONTAINER_ID",
		 "END1_COLUMN_NAME",
		 "END2_CONTAINER_ID",
		 "END2_ASSET_ID",
		 "END1_RELATIONSHIP_TYPE")
	ENFORCED;
ALTER TABLE "COLUMN_TO_ASSET_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_ASSET_RELATIONS_CONTAINER_ASSETS_2" FOREIGN KEY
		("END2_CONTAINER_ID",
		 "END2_ASSET_ID")
	REFERENCES "CONTAINER_ASSETS"
		("CONTAINER_ID",
		 "ASSET_ID")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;
ALTER TABLE "COLUMN_TO_ASSET_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_ASSET_RELATIONS_CONTAINER_DATA_ASSET_COLUMNS_1" FOREIGN KEY
		("END1_CONTAINER_ID",
		 "END1_ASSET_ID",
		 "END1_COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;

tabela column_to_column_relations

Esta tabela contém informações sobre as colunas de ativo de dados associadas a outras colunas.

Esta tabela possui as seguintes colunas:

  • end1_container_id - Especifica o identificador de contêiner do ativo end1.
  • end2_container_id - Especifica o identificador de contêiner do ativo end2.
  • end1_asset_id - Especifica o identificador do ativo end1.
  • end2_asset_id - Especifica o identificador do ativo end2.
  • end1_column_name -Especifica o identificador da coluna de ativo de dados end1
  • end2_column_name -Especifica o identificador da coluna de ativo de dados end2 ..
  • end1_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end1.
  • end2_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end2.

PostgreSQL

Instrução CREATE TABLE:

CREATE TABLE column_to_column_relations (
	end1_asset_id varchar(128) NOT NULL,
	end1_container_id varchar(36) NOT NULL,
	end1_column_name varchar(256) NOT NULL,
	end2_container_id varchar(36) NOT NULL,
	end2_asset_id varchar(128) NOT NULL,
	end2_column_name varchar(256) NOT NULL,
	end1_relationship_type varchar(256) NOT NULL,
	end2_relationship_type varchar(256) NOT NULL,
	tech_start timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	tech_end timestamp(6) NOT NULL DEFAULT to_timestamp('9999-12-30'::text, 'YYYY-MM-DD'::text),
	ts_id timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT column_to_column_relations_pkey PRIMARY KEY (end1_asset_id, end1_container_id, end1_column_name, end2_container_id, end2_asset_id, end2_column_name, end1_relationship_type)
);

Instruções ALTER TABLE:

ALTER TABLE
  column_to_column_relations
ADD
  CONSTRAINT fk_column_to_column_relations_container_data_asset_columns_5 FOREIGN KEY (
    end1_container_id, end1_asset_id,
    end1_column_name
  ) REFERENCES container_data_asset_columns(container_id, asset_id, "name") ON DELETE CASCADE;
ALTER TABLE
  column_to_column_relations
ADD
  CONSTRAINT fk_column_to_column_relations_container_data_asset_columns_6 FOREIGN KEY (
    end2_container_id, end2_asset_id,
    end2_column_name
  ) REFERENCES container_data_asset_columns(container_id, asset_id, "name") ON DELETE CASCADE;


Db2

Instrução CREATE TABLE:

CREATE TABLE "COLUMN_TO_COLUMN_RELATIONS"  (
		  "END1_ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END1_CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "END1_COLUMN_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "END2_ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END2_COLUMN_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "END1_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "TECH_START" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
		  "TECH_END" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
		  "TS_ID" TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
		 PERIOD SYSTEM_TIME ("TECH_START","TECH_END") )
		 IN "USERSPACE1"
		 ORGANIZE BY ROW;

Instruções ALTER TABLE:

ALTER TABLE "COLUMN_TO_COLUMN_RELATIONS"
	ADD PRIMARY KEY
		("END1_ASSET_ID",
		 "END1_CONTAINER_ID",
		 "END1_COLUMN_NAME",
		 "END2_CONTAINER_ID",
		 "END2_ASSET_ID",
		 "END2_COLUMN_NAME",
		 "END1_RELATIONSHIP_TYPE")
	ENFORCED;
ALTER TABLE "COLUMN_TO_COLUMN_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_COLUMN_RELATIONS_CONTAINER_DATA_ASSET_COLUMNS_5" FOREIGN KEY
		("END1_CONTAINER_ID",
		 "END1_ASSET_ID",
		 "END1_COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;
ALTER TABLE "COLUMN_TO_COLUMN_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_COLUMN_RELATIONS_CONTAINER_DATA_ASSET_COLUMNS_6" FOREIGN KEY
		("END2_CONTAINER_ID",
		 "END2_ASSET_ID",
		 "END2_COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;

relações_entre_colunas_e_artefatos

Esta tabela contém informações sobre as colunas de ativo de dados associadas a artefatos.

Esta tabela possui as seguintes colunas:

  • end1_container_id - Especifica o identificador de contêiner do ativo end1.
  • end2_artifact_id -Especifica o ID do artefato de destino dos relacionamentos do artefato do ativo
  • end1_asset_id - Especifica o identificador do ativo end1.
  • end1_column_name -Especifica o identificador da coluna de ativo de dados end1
  • end2_artifact_type -Especifica o tipo de artefato de destino dos relacionamentos de artefato do ativo
  • end1_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end1.
  • end2_relationship_type - Especifica o tipo de relacionamento como identificado a partir do ativo end2.

PostgreSQL

Instrução CREATE TABLE:

CREATE TABLE column_to_artifact_relations (
	end1_asset_id varchar(128) NOT NULL,
	end1_container_id varchar(36) NOT NULL,
	end1_column_name varchar(256) NOT NULL,
	end2_artifact_id varchar(128) NOT NULL,
	end2_artifact_type varchar(128) NOT NULL,
	end1_relationship_type varchar(256) NOT NULL,
	end2_relationship_type varchar(256) NOT NULL,
	tech_start timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	tech_end timestamp(6) NOT NULL DEFAULT to_timestamp('9999-12-30'::text, 'YYYY-MM-DD'::text),
	ts_id timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT column_to_artifact_relations_pkey PRIMARY KEY (end1_asset_id, end1_container_id, end1_column_name, end2_artifact_type, end2_artifact_id, end1_relationship_type)
);

Instruções ALTER TABLE:

ALTER TABLE
  column_to_artifact_relations
ADD
  CONSTRAINT fk_column_to_artifact_relations_container_data_asset_columns_3 FOREIGN KEY (
    end1_container_id, end1_asset_id,
    end1_column_name
  ) REFERENCES container_data_asset_columns(container_id, asset_id, "name") ON DELETE CASCADE;
ALTER TABLE
  column_to_artifact_relations
ADD
  CONSTRAINT fk_column_to_artifact_relations_governance_artifacts_4 FOREIGN KEY (end2_artifact_id) REFERENCES governance_artifacts(artifact_id) ON DELETE CASCADE;


Db2

Instrução CREATE TABLE:

CREATE TABLE "COLUMN_TO_ARTIFACT_RELATIONS"  (
		  "END1_ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END1_CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "END1_COLUMN_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_ARTIFACT_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "END2_ARTIFACT_TYPE" VARCHAR(128 OCTETS) NOT NULL ,
		  "END1_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "END2_RELATIONSHIP_TYPE" VARCHAR(256 OCTETS) NOT NULL ,
		  "TECH_START" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
		  "TECH_END" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
		  "TS_ID" TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
		 PERIOD SYSTEM_TIME ("TECH_START","TECH_END") )
		 IN "USERSPACE1"
		 ORGANIZE BY ROW;

Instruções ALTER TABLE:

ALTER TABLE "COLUMN_TO_ARTIFACT_RELATIONS"
	ADD PRIMARY KEY
		("END1_ASSET_ID",
		 "END1_CONTAINER_ID",
		 "END1_COLUMN_NAME",
		 "END2_ARTIFACT_TYPE",
		 "END2_ARTIFACT_ID",
		 "END1_RELATIONSHIP_TYPE")
	ENFORCED;
ALTER TABLE "COLUMN_TO_ARTIFACT_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_ARTIFACT_RELATIONS_CONTAINER_DATA_ASSET_COLUMNS_3" FOREIGN KEY
		("END1_CONTAINER_ID",
		 "END1_ASSET_ID",
		 "END1_COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;
ALTER TABLE "COLUMN_TO_ARTIFACT_RELATIONS"
	ADD CONSTRAINT "FK_COLUMN_TO_ARTIFACT_RELATIONS_GOVERNANCE_ARTIFACTS_4" FOREIGN KEY
		("END2_ARTIFACT_ID")
	REFERENCES "GOVERNANCE_ARTIFACTS"
		("ARTIFACT_ID")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;

data_asset_pk_fk_columns

Esta tabela contém informações sobre as associações entre a coluna de ativo de dados e qualquer ativo

Esta tabela possui as seguintes colunas:

  • constraint_id -O identificador da restrição definida para uma tabela de ativo de dados
  • column_index -O identificador do índice de coluna para um ativo de dados
  • container_id -O identificador do catálogo ou projeto no qual o ativo existe.
  • column_name -Especifica o identificador da coluna de ativo de dados
  • asset_id -O identificador do ativo
  • constraint_type -Especifica o tipo de contrato que é PRIMARY_KEY ou FOREIGN_KEY ".
  • constraint_name -Especifica o identificador da coluna de ativo de dados source/end1 .

PostgreSQL

Instrução CREATE TABLE:

create table data_asset_pk_fk_columns(
  constraint_id varchar(128) not null,
  column_index integer not null,
  container_id varchar(36) not null,
  column_name varchar(256) not null,
  asset_id varchar(128) not null,
  constraint_type varchar(32) not null,
  constraint_name varchar(256) not null,
  tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
  tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
  ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
  primary key(
    constraint_id, container_id, column_index
  )
)

Instruções ALTER TABLE:

alter table
  data_asset_pk_fk_columns
add
  constraint fk_data_asset_pk_fk_columns_container_data_asset_columns_1 foreign key (
    container_id, asset_id, column_name
  ) references container_data_asset_columns(container_id, asset_id, name) on delete cascade on
update
  no action
alter table
  data_asset_pk_fk_columns
add
  constraint fk_data_asset_pk_fk_columns_container_assets_2 foreign key (container_id, constraint_id) references container_assets(container_id, asset_id) on delete cascade on
update
  no action


Db2

Instrução CREATE TABLE:

CREATE TABLE "DATA_ASSET_PK_FK_COLUMNS"  (
		  "CONSTRAINT_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "COLUMN_INDEX" INTEGER NOT NULL ,
		  "CONTAINER_ID" VARCHAR(36 OCTETS) NOT NULL ,
		  "COLUMN_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "CONSTRAINT_TYPE" VARCHAR(32 OCTETS) NOT NULL ,
		  "CONSTRAINT_NAME" VARCHAR(256 OCTETS) NOT NULL ,
		  "TECH_START" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
		  "TECH_END" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
		  "TS_ID" TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
		 PERIOD SYSTEM_TIME ("TECH_START","TECH_END") )
		 IN "USERSPACE1"
		 ORGANIZE BY ROW;

Instruções ALTER TABLE:

ALTER TABLE "DATA_ASSET_PK_FK_COLUMNS"
	ADD PRIMARY KEY
		("CONSTRAINT_ID",
		 "CONTAINER_ID",
		 "COLUMN_INDEX")
	ENFORCED;
ALTER TABLE "DATA_ASSET_PK_FK_COLUMNS"
	ADD CONSTRAINT "FK_DATA_ASSET_PK_FK_COLUMNS_CONTAINER_ASSETS_2" FOREIGN KEY
		("CONTAINER_ID",
		 "CONSTRAINT_ID")
	REFERENCES "CONTAINER_ASSETS"
		("CONTAINER_ID",
		 "ASSET_ID")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;
ALTER TABLE "DATA_ASSET_PK_FK_COLUMNS"
	ADD CONSTRAINT "FK_DATA_ASSET_PK_FK_COLUMNS_CONTAINER_DATA_ASSET_COLUMNS_1" FOREIGN KEY
		("CONTAINER_ID",
		 "ASSET_ID",
		 "COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;

colunas_de_referência_da_chave_estrangeira_do_ativo_de_dados

Esta tabela contém informações sobre as associações entre a coluna de referência de ativo de dados e qualquer ativo

Esta tabela possui as seguintes colunas:

  • constraint_id -O identificador da restrição definida para uma tabela de ativo de dados
  • column_index -O identificador do índice de coluna para um ativo de dados
  • container_id -O identificador do catálogo ou projeto no qual o ativo existe.
  • column_name -Especifica o identificador da coluna de ativo de dados
  • asset_id -O identificador do ativo

PostgreSQL

Instrução CREATE TABLE:

create table data_asset_fk_ref_columns(
  constraint_id varchar(128) not null,
  column_index integer not null,
  container_id varchar(256) not null,
  column_name varchar(36) not null,
  asset_id varchar(128) not null,
  tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
  tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
  ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
  primary key(
    constraint_id, container_id, column_index
  )
)

Instruções ALTER TABLE:

alter table
  data_asset_fk_ref_columns
add
  constraint fk_data_asset_fk_ref_columns_data_asset_pk_fk_columns_3 foreign key (
    container_id, constraint_id, column_index
  ) references data_asset_pk_fk_columns(
    container_id, constraint_id, column_index
  ) on delete cascade on
update
  no action
alter table
  data_asset_fk_ref_columns
add
  constraint fk_data_asset_fk_ref_columns_container_data_asset_columns_4 foreign key (
    container_id, asset_id, column_name
  ) references container_data_asset_columns(container_id, asset_id, name) on delete cascade on
update
  no action


Db2

Instrução CREATE TABLE:

CREATE TABLE "DATA_ASSET_FK_REF_COLUMNS"  (
		  "CONSTRAINT_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "COLUMN_INDEX" INTEGER NOT NULL ,
		  "CONTAINER_ID" VARCHAR(256 OCTETS) NOT NULL ,
		  "COLUMN_NAME" VARCHAR(36 OCTETS) NOT NULL ,
		  "ASSET_ID" VARCHAR(128 OCTETS) NOT NULL ,
		  "TECH_START" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
		  "TECH_END" TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
		  "TS_ID" TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
		 PERIOD SYSTEM_TIME ("TECH_START","TECH_END") )
		 IN "USERSPACE1"
		 ORGANIZE BY ROW;

Instruções ALTER TABLE:

ALTER TABLE "DATA_ASSET_FK_REF_COLUMNS"
	ADD PRIMARY KEY
		("CONSTRAINT_ID",
		 "CONTAINER_ID",
		 "COLUMN_INDEX")
	ENFORCED;
ALTER TABLE "DATA_ASSET_FK_REF_COLUMNS"
	ADD CONSTRAINT "FK_DATA_ASSET_FK_REF_COLUMNS_CONTAINER_DATA_ASSET_COLUMNS_4" FOREIGN KEY
		("CONTAINER_ID",
		 "ASSET_ID",
		 "COLUMN_NAME")
	REFERENCES "CONTAINER_DATA_ASSET_COLUMNS"
		("CONTAINER_ID",
		 "ASSET_ID",
		 "NAME")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;
ALTER TABLE "DATA_ASSET_FK_REF_COLUMNS"
	ADD CONSTRAINT "FK_DATA_ASSET_FK_REF_COLUMNS_DATA_ASSET_PK_FK_COLUMNS_3" FOREIGN KEY
		("CONSTRAINT_ID",
		 "CONTAINER_ID",
		 "COLUMN_INDEX")
	REFERENCES "DATA_ASSET_PK_FK_COLUMNS"
		("CONSTRAINT_ID",
		 "CONTAINER_ID",
		 "COLUMN_INDEX")
	ON DELETE CASCADE
	ON UPDATE NO ACTION
	ENFORCED
	ENABLE QUERY OPTIMIZATION;

Saiba Mais