Tabelas de relatório de artefatos de controle

Verifique as instruções Postgres, Db2 para as tabelas relacionadas aos artefatos de controle.

Área de assunto Nome da tabela Descrição
Artefatos de controle governance_artifacts Os artefatos de controle definidos no sistema que estão no estado publicado.
Artefatos de controle governance_artifact_stewards Uma lista de organizadores designados a um artefato publicado.
Artefatos de controle governance_artifact_associations Os relacionamentos entre os artefatos de controle
Artefatos de controle artifact_tags As tags associadas a um artefato.
Artefatos de controle abreviações_termo_empresariais Abreviações atribuídas a artefatos de termos comerciais (do tipo glossary_term).

tabela governance_artefatos

Esta tabela contém informações sobre os artefatos de governança que são definidos no sistema que estão no estado publicado.

Esta tabela possui as seguintes colunas:

  • artifact_id -O identificador do artefato.
  • version_id -O identificador de versão do artefato
  • artifact_type -O tipo do artefato, por exemplo, glossary_term, classification, data_class, reference_data, regra ou política
  • name -O nome do artefato
  • description -A descrição do artefato
  • created_by -O identificador do usuário que criou o artefato.
  • created_on -O registro de data e hora em que o artefato foi criado
  • modified_by -O identificador do usuário que modificou pela última vez o artefato
  • modified_on -o registro de data e hora em que o artefato foi modificado pela última vez
  • primary_category_id -O identificador da categoria principal do artefato
  • effective_start_date -A data de início efetiva designada ao artefato.
  • effective_end_date -A data de encerramento efetiva designada ao artefato.
  • system_id -O identificador do sistema ou identificador global do artefato de controle associado.
  • rds_values_total_counts - A contagem de valores de dados de referência para o tipo de artefato de dados de referência.
  • version_number - Indica a versão do artefato de governança, com padrão definido como 1 para compatibilidade com versões anteriores.

Postgres

Instrução CREATE TABLE:

CREATE TABLE "globalschema".governance_artifacts(
  artifact_id varchar(128) NOT NULL,
  version_id varchar(128) NOT NULL,
  artifact_type varchar(128) NOT NULL,
  name varchar(256) NOT NULL,
  description text,
  created_on timestamp(6) NOT NULL,
  created_by varchar(128) NOT NULL,
  modified_on timestamp(6),
  modified_by varchar(128),
  primary_category_id varchar(128) NOT NULL,
  effective_start timestamp(6),
  effective_end timestamp(6),
  system_id varchar(128) DEFAULT '' NOT NULL,
  rds_values_total_counts bigint DEFAULT 0 NOT NULL,
  version_number bigint DEFAULT 1 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(artifact_id)
)

Instrução CREATE INDEX:

create index idx_governance_artifacts_1 on
governance_artifacts (artifact_type)

Instrução ALTER TABLE:

alter table governance_artifacts add constraint fk_governance_artifacts_categories_21 foreign key (primary_category_id) references categories(category_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

CREATE TABLE "globalschema".governance_artifacts(
  artifact_id varchar(128) NOT NULL,
  version_id varchar(128) NOT NULL,
  artifact_type varchar(128) NOT NULL,
  name varchar(256) NOT NULL,
  description clob,
  created_on timestamp(12) NOT NULL,
  created_by varchar(128) NOT NULL,
  modified_on timestamp(12),
  modified_by varchar(128),
  primary_category_id varchar(128) NOT NULL,
  effective_start timestamp(12),
  effective_end timestamp(12),
  system_id varchar(128) DEFAULT '' NOT NULL,
  rds_values_total_counts bigint DEFAULT 0 NOT NULL,
  version_number bigint DEFAULT 1 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(artifact_id),
  PERIOD SYSTEM_TIME (tech_start, tech_end)
)

Instrução CREATE INDEX:

create index idx_governance_artifacts_1 on
governance_artifacts (artifact_type)

Instrução ALTER TABLE:

ALTER TABLE governance_artifacts ADD CONSTRAINT fk_governance_artifacts_categories_21 FOREIGN KEY (primary_category_id) REFERENCES categories(category_id) ON DELETE CASCADE  ON UPDATE NO ACTION


MS SQL server

Instrução CREATE TABLE:

CREATE TABLE "globalschema".governance_artifacts(
  artifact_id varchar(128) NOT NULL,
  version_id varchar(128) NOT NULL,
  artifact_type varchar(128) NOT NULL,
  name varchar(256) NOT NULL,
  description varchar(MAX),
  created_on DATETIME2 NOT NULL,
  created_by varchar(128) NOT NULL,
  modified_on DATETIME2,
  modified_by varchar(128),
  primary_category_id varchar(128) NOT NULL,
  effective_start DATETIME2,
  effective_end DATETIME2,
  system_id varchar(128) DEFAULT '' NOT NULL,
  rds_values_total_counts bigint DEFAULT 0 NOT NULL,
  version_number bigint DEFAULT 1 NOT NULL,
  tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
  tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
  ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
  CONSTRAINT PK_governance_artifacts_globalschema PRIMARY KEY(artifact_id),
  PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
  SYSTEM_VERSIONING = ON (
    HISTORY_TABLE = "globalschema".hist_governance_artifacts
  )
)


tabela governance_artifact_stewards

Esta tabela contém uma lista de organizadores que são designados a um artefato publicado.

Esta tabela possui as seguintes colunas:

  • artifact_id -O identificador do artefato.
  • user_id -O identificador do usuário designado como um organizador.

Postgres

Instrução CREATE TABLE:

create table governance_artifact_stewards(artifact_id varchar(128) not null,
user_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(artifact_id,
user_id));

Instrução ALTER TABLE:

alter table governance_artifact_stewards add constraint fk_governance_artifact_stewards_governance_artifacts_3 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table governance_artifact_stewards(artifact_id varchar(128) not null,
user_id 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(artifact_id,
user_id),
period SYSTEM_TIME (tech_start,
tech_end) )

Instrução ALTER TABLE:

alter table governance_artifact_stewards add constraint fk_governance_artifact_stewards_governance_artifacts_3 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action

tabela governance_artifact_Associações

Esta tabela contém informações sobre os relacionamentos entre os artefatos de governança.

Esta tabela possui as seguintes colunas:

  • end1_artifact_id -O identificador do artefato de origem.
  • end2_artifact_id -O identificador do artefato de destino.
  • end1_artifact_type -O tipo do artefato de origem
  • end2_artifact_type -O tipo do artefato de destino
  • relationship_type -O tipo de relacionamento

Postgres

Instrução CREATE TABLE:

create table governance_artifact_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
end1_artifact_type varchar(128) not null,
end2_artifact_type varchar(128) not null,
cr_definition_id varchar(128),
reverse_relationship_type varchar(256),
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_artifact_id,
end2_artifact_id,
relationship_type))

Instrução ALTER TABLE:

alter table governance_artifact_associations add constraint fk_governance_artifact_associations_glossary_custom_relationship_def_8 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table governance_artifact_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
end1_artifact_type varchar(128) not null,
end2_artifact_type varchar(128) not null,
cr_definition_id varchar(128),
reverse_relationship_type varchar(256),
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_artifact_id,
end2_artifact_id,
relationship_type),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row

Instrução ALTER TABLE:

alter table governance_artifact_associations add constraint fk_governance_artifact_associations_glossary_custom_relationship_def_8 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
	cascade on
	update
	no action

tabela artifact_tags

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

Esta tabela possui as seguintes colunas:

  • tag_name -O nome da tag associada
  • artifact_id -O identificador do artefato.
  • artifact_type -O tipo do artefato, por exemplo, glossary_term, classification, data_class, reference_data, regra ou política

Postgres

Instrução CREATE TABLE:

create table artifact_tags(tag_name varchar(256) not null,
artifact_id varchar(128) not null,
artifact_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(tag_name,
artifact_id));

Instruções ALTER TABLE:

alter table artifact_tags add constraint fk_artifact_tags_governance_artifacts_24 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table artifact_tags add constraint fk_artifact_tags_tags_26 foreign key (tag_name) references tags(tag_name) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table artifact_tags(tag_name varchar(256) not null,
artifact_id varchar(128) not null,
artifact_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(tag_name,
artifact_id),
period SYSTEM_TIME (tech_start,
tech_end) )

Instruções ALTER TABLE:

alter table artifact_tags add constraint fk_artifact_tags_governance_artifacts_24 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
	cascade on
	update
	no action
alter table artifact_tags add constraint fk_artifact_tags_tags_26 foreign key (tag_name) references tags(tag_name) on
delete
	cascade on
	update
	no action

tabela business_term_abbreviations

Esta tabela contém informações sobre as abreviações atribuídas aos artefatos de termos comerciais (artefatos do tipo glossary_term).

Esta tabela possui as seguintes colunas:

  • artifact_id - O identificador do artefato glossary_term (termo comercial).
  • abbreviation - A abreviação do artefato. Suporta caracteres internacionais (multibyte, até 4.000 caracteres).
  • id - Identificador único (UUID) que funciona como chave primária.

Postgres

Instrução CREATE TABLE:

CREATE TABLE "globalschema".business_term_abbreviations(
  artifact_id varchar(128) NOT NULL,
  abbreviation varchar(4000) NOT NULL,
  id varchar(36) DEFAULT 'uuid' 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(id)
)



Db2

Instrução CREATE TABLE:

CREATE TABLE "globalschema".business_term_abbreviations(
  artifact_id varchar(128) NOT NULL,
  abbreviation varchar(4000 CODEUNITS32) NOT NULL,
  id varchar(36) DEFAULT 'uuid' 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(id),
  PERIOD SYSTEM_TIME (tech_start, tech_end)
)


MS SQL server

Instrução CREATE TABLE:

CREATE TABLE "globalschema".business_term_abbreviations(
  artifact_id varchar(128) NOT NULL,
  abbreviation nvarchar(4000) NOT NULL,
  id varchar(36) DEFAULT 'uuid' NOT NULL,
  tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
  tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
  ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
  CONSTRAINT PK_business_term_abbreviations_globalschema PRIMARY KEY(id),
  PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
  SYSTEM_VERSIONING = ON (
    HISTORY_TABLE = "globalschema".hist_business_term_abbreviations
  )
)


Saiba Mais