Vérifiez les instructions Postgres, Db2 pour les tables liées aux relations d'artefact.
Domaine | Nom de la table | Descriptif |
---|---|---|
Relations entre les artefacts | secondary_category_associations | Liste des catégories secondaires auxquelles un artefact est affecté. |
Relations entre les artefacts | business_term_associations | Relations entre les termes métier. |
Relations entre les artefacts | data_class_associations | Relations entre les classes de données. |
Relations entre les artefacts | policy_associations | Relations entre les règles. |
Relations entre les artefacts | reference_data_set_associations | Relations entre les jeux de données de référence. |
Relations entre les artefacts | classification_associations | Relations entre les classifications. |
Relations entre les artefacts | governance_rule_associations | Relations entre les règles de gouvernance. |
Relations entre les artefacts | artifact_enforcement_rule_associations | Relations implicites entre un artefact de gouvernance et les règles d'application. |
Relations entre les artefacts | associations de catégorie d'artefact | Relations entre l'artefact de gouvernance et la catégorie. |
table secondary_category_associations
Ce tableau contient la liste des catégories secondaires auxquelles un artefact est affecté.
Cette table comporte les colonnes suivantes:
artifact_id
-Identificateur de l'artefact.category_id
-Identificateur de la catégorie secondaire de l'artefact spécifié.
Postgres
Instruction 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));
Instructions 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
Instruction 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) )
Instructions 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
table business_term_associations
Ce tableau contient des informations sur les relations entre les termes métier.
Cette table comporte les colonnes suivantes:
end1_term_artifact_id
-Identificateur de l'artefact source.end2_term_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
table data_class_associations
Ce tableau contient des informations sur les relations entre les classes de données.
Cette table comporte les colonnes suivantes:
end1_data_class_artifact_id
-Identificateur de l'artefact source.end2_data_class_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
Ce tableau contient des informations sur les relations entre les règles.
Cette table comporte les colonnes suivantes:
end1_policy_artifact_id
-Identificateur de l'artefact source.end2_policy_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instructions 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
Instruction 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
Instruction 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
table reference_data_set_associations
Ce tableau contient des informations sur les relations entre les ensembles de données de référence.
Cette table comporte les colonnes suivantes:
end1_rds_artifact_id
-Identificateur de l'artefact source.end2_rds_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
table classification_associations
Ce tableau contient des informations sur les relations entre les classifications.
Cette table comporte les colonnes suivantes:
end1_classifiaction_artifact_id
-Identificateur de l'artefact source.end2_classifiaction_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
table governance_rule_associations
Ce tableau contient des informations sur les relations entre les règles de gouvernance.
Cette table comporte les colonnes suivantes:
end1_rule_artifact_id
-Identificateur de l'artefact source.end2_rule_artifact_id
-Identificateur de l'artefact cible.relationship_type
-Type de la relation identifiée depuis l'artefact source vers l'artefact cible.reverse_relationship_type
-Type de la relation telle qu'identifiée entre l'artefact cible et l'artefact source.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
Table artifact_enforcement_rule_associations
Ce tableau contient des informations sur les relations implicites entre un artefact de gouvernance et les règles d'application.
Cette table comporte les colonnes suivantes:
artifact_id
-Identificateur de l'artefact de gouvernance associé.rule_id
-Identificateur de la règle d'application dont fait partie l'artefact associé.
Postgres
Instruction 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));
Instructions 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
Instruction 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) )
Instructions 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
Table artifact_category_associations
Ce tableau contient des informations sur l'association entre l'artefact de gouvernance et la catégorie.
Cette table comporte les colonnes suivantes:
category_id
-Identificateur de la catégorie de l'artefact.artifact_id
-Identificateur de la définition de relation personnalisée.relationship_type
-Type de la relation telle qu'identifiée entre l'artefact et la catégorie.cr_definition_id
-Identificateur de la définition de relation personnalisée.reverse_relationship_type
-Type de la relation telle qu'identifiée de la catégorie à l'artefact.
Postgres
Instruction 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))
Instruction 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
Instruction 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
Instruction 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
En savoir plus
Rubrique parent: Tables de génération de rapports