Compruebe las sentencias Postgres, Db2 para las tablas relacionadas con las relaciones de artefacto.
Área temática | Nombre de tabla | Descripción |
---|---|---|
Relaciones de artefacto | secondary_category_associations | Lista de categorías secundarias a las que se asigna un artefacto. |
Relaciones de artefacto | business_term_associations | Las relaciones entre términos de negocio. |
Relaciones de artefacto | data_class_associations | Las relaciones entre clases de datos. |
Relaciones de artefacto | policy_associations | Las relaciones entre políticas. |
Relaciones de artefacto | reference_data_set_associations | Las relaciones entre conjuntos de datos de referencia. |
Relaciones de artefacto | classification_associations | Las relaciones entre clasificaciones. |
Relaciones de artefacto | governance_rule_associations | Las relaciones entre reglas de gobernabilidad. |
Relaciones de artefacto | artifact_enforcement_rule_associations | Las relaciones implícitas entre un artefacto de gobernabilidad y las reglas de aplicación. |
Relaciones de artefacto | artifact_category_asociaciones | Las relaciones entre el artefacto de gobernabilidad y la categoría. |
tabla secondary_category_asociaciones
Esta tabla contiene una lista de categorías secundarias a las que se asigna un artefacto.
Esta tabla tiene las columnas siguientes:
artifact_id
-El identificador del artefacto.category_id
-El identificador de la categoría secundaria del artefacto especificado.
Postgres
Sentencia CREATE TABLE:
create table secondary_category_associations(category_id varchar(128) not null,
artifact_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(category_id,
artifact_id));
Sentencias ALTER TABLE:
alter table secondary_category_associations add constraint fk_secondary_category_associations_categories_22 foreign key (category_id) references categories(category_id) on
delete
cascade on
update
no action
alter table secondary_category_associations add constraint fk_secondary_category_associations_governance_artifacts_23 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table secondary_category_associations(category_id varchar(128) not null,
artifact_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(category_id,
artifact_id),
period SYSTEM_TIME (tech_start,
tech_end) )
Sentencias ALTER TABLE:
alter table secondary_category_associations add constraint fk_secondary_category_associations_categories_22 foreign key (category_id) references categories(category_id) on
delete
cascade on
update
no action
alter table secondary_category_associations add constraint fk_secondary_category_associations_governance_artifacts_23 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
cascade on
update
no action
tabla business_term_asociaciones
Esta tabla contiene información sobre las relaciones entre términos empresariales.
Esta tabla tiene las columnas siguientes:
end1_term_artifact_id
-El identificador del artefacto de origen.end2_term_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table business_term_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencia ALTER TABLE:
alter table business_term_associations add constraint fk_business_term_associations_glossary_custom_relationship_def_1 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table business_term_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table business_term_associations add constraint fk_business_term_associations_glossary_custom_relationship_def_1 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
tabla data_class_asociaciones
Esta tabla contiene información sobre las relaciones entre las clases de datos.
Esta tabla tiene las columnas siguientes:
end1_data_class_artifact_id
-El identificador del artefacto de origen.end2_data_class_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table data_class_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencia ALTER TABLE:
alter table data_class_associations add constraint fk_data_class_associations_glossary_custom_relationship_def_3 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table data_class_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table data_class_associations add constraint fk_data_class_associations_glossary_custom_relationship_def_3 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
policy_associations
Esta tabla contiene información sobre las relaciones entre las políticas.
Esta tabla tiene las columnas siguientes:
end1_policy_artifact_id
-El identificador del artefacto de origen.end2_policy_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table policy_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencias ALTER TABLE:
alter table policy_associations add constraint fk_policy_associations_glossary_custom_relationship_def_4 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table policy_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table policy_associations add constraint fk_policy_associations_glossary_custom_relationship_def_4 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
tabla reference_data_set_asociaciones
Esta tabla contiene información sobre las relaciones entre conjuntos de datos de referencia.
Esta tabla tiene las columnas siguientes:
end1_rds_artifact_id
-El identificador del artefacto de origen.end2_rds_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table reference_data_set_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencia ALTER TABLE:
ALTER TABLE reference_data_set_associations ADD CONSTRAINT fk_reference_data_set_associations_glossary_custom_relationship_def_5 FOREIGN KEY (cr_definition_id) REFERENCES glossary_custom_relationship_def(cr_definition_id) ON
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table reference_data_set_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table reference_data_set_associations add constraint fk_reference_data_set_associations_glossary_custom_relationship_def_5 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
tabla classification_asociaciones
Esta tabla contiene información sobre las relaciones entre clasificaciones.
Esta tabla tiene las columnas siguientes:
end1_classifiaction_artifact_id
-El identificador del artefacto de origen.end2_classifiaction_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table classification_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencia ALTER TABLE:
alter table classification_associations add constraint fk_classification_associations_glossary_custom_relationship_def_2 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table classification_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table classification_associations add constraint fk_classification_associations_glossary_custom_relationship_def_2 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
tabla gubernamance_rule_asociaciones
Esta tabla contiene información sobre las relaciones entre las reglas de gobierno.
Esta tabla tiene las columnas siguientes:
end1_rule_artifact_id
-El identificador del artefacto de origen.end2_rule_artifact_id
-El identificador del artefacto de destino.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto de origen al artefacto de destino.reverse_relationship_type
-El tipo de relación tal como se identifica desde el artefacto de destino al artefacto de origen.
Postgres
Sentencia CREATE TABLE:
create table governance_rule_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id 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(end1_artifact_id,
end2_artifact_id,
relationship_type))
Sentencia ALTER TABLE:
alter table governance_rule_associations add constraint fk_governance_rule_associations_glossary_custom_relationship_def_6 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db
Sentencia CREATE TABLE:
create table governance_rule_associations(end1_artifact_id varchar(128) not null,
end2_artifact_id varchar(128) not null,
relationship_type varchar(256) not null,
reverse_relationship_type varchar(128),
cr_definition_id varchar(128),
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
Sentencia ALTER TABLE:
alter table governance_rule_associations add constraint fk_governance_rule_associations_glossary_custom_relationship_def_6 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Tabla artifact_enforcement_rule_asociaciones
Esta tabla contiene información sobre las relaciones implícitas entre un artefacto de gobierno y reglas de aplicación.
Esta tabla tiene las columnas siguientes:
artifact_id
-El identificador del artefacto de gobernabilidad asociado.rule_id
-El identificador de la regla de imposición de la que forma parte el artefacto asociado.
Postgres
Sentencia CREATE TABLE:
create table artifact_enforcement_rule_associations(artifact_id varchar(128) not null,
rule_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,
rule_id));
Sentencias ALTER TABLE:
alter table artifact_enforcement_rule_associations add constraint fk_artifact_enforcement_rule_associations_governance_artifacts_18 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
cascade on
update
no action
alter table artifact_enforcement_rule_associations add constraint fk_artifact_enforcement_rule_associations_enforcement_rules_19 foreign key (rule_id) references enforcement_rules(rule_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table artifact_enforcement_rule_associations(artifact_id varchar(128) not null,
rule_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,
rule_id),
period SYSTEM_TIME (tech_start,
tech_end) )
Sentencias ALTER TABLE:
alter table artifact_enforcement_rule_associations add constraint fk_artifact_enforcement_rule_associations_governance_artifacts_18 foreign key (artifact_id) references governance_artifacts(artifact_id) on
delete
cascade on
update
no action
alter table artifact_enforcement_rule_associations add constraint fk_artifact_enforcement_rule_associations_enforcement_rules_19 foreign key (rule_id) references enforcement_rules(rule_id) on
delete
cascade on
update
no action
tabla artifact_category_asociaciones
Esta tabla contiene información sobre la asociación entre el artefacto de gobernabilidad y la categoría.
Esta tabla tiene las columnas siguientes:
category_id
-Identificador de la categoría del artefacto.artifact_id
-El identificador de la definición de relación personalizada.relationship_type
-El tipo de la relación tal como se identifica desde el artefacto a la categoría.cr_definition_id
-El identificador de la definición de relación personalizada.reverse_relationship_type
-El tipo de la relación tal como se identifica de la categoría al artefacto.
Postgres
Sentencia CREATE TABLE:
create table artifact_category_associations(category_id varchar(128) not null,
artifact_id varchar(128) not null,
cr_definition_id varchar(128),
relationship_type varchar(256) not null,
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(category_id,
artifact_id,
relationship_type))
Sentencia ALTER TABLE:
alter table artifact_category_associations add constraint fk_artifact_category_associations_glossary_custom_relationship_def_9 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Db2
Sentencia CREATE TABLE:
create table artifact_category_associations(category_id varchar(128) not null,
artifact_id varchar(128) not null,
cr_definition_id varchar(128),
relationship_type varchar(256) not null,
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(category_id,
artifact_id,
relationship_type),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Sentencia ALTER TABLE:
alter table artifact_category_associations add constraint fk_artifact_category_associations_glossary_custom_relationship_def_9 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
delete
cascade on
update
no action
Más información
Tema padre: Tablas de informes