Compruebe las sentencias Postgres, Db2 para las tablas relacionadas con artefactos de gobernabilidad.
Área temática | Nombre de tabla | Descripción |
---|---|---|
Artefactos de gobernabilidad | governance_artifacts | Los artefactos de gobernabilidad definidos en el sistema que están en estado publicado. |
Artefactos de gobernabilidad | governance_artifact_stewards | Una lista de representantes asignados a un artefacto publicado. |
Artefactos de gobernabilidad | governance_artifact_associations | Las relaciones entre los artefactos de gobernabilidad. |
Artefactos de gobernabilidad | artifact_tags | Las etiquetas que están asociadas con un artefacto. |
Artefactos de gobernabilidad | abreviaturas_de_negocios | Abreviaturas asignadas a artefactos de términos empresariales (de tipo glossary_term). |
tabla gubernamente_artefactos
Esta tabla contiene información sobre los artefactos de gobierno definidos en el sistema que se encuentran en el estado publicado.
Esta tabla tiene las columnas siguientes:
artifact_id
-El identificador del artefacto.version_id
-El identificador de versión del artefacto.artifact_type
-El tipo del artefacto, por ejemplo glossary_term, classification, data_class, reference_data, rule o policy.name
-El nombre del artefacto.description
-La descripción del artefacto.created_by
-El identificador del usuario que ha creado el artefacto.created_on
-Indicación de fecha y hora en que se creó el artefacto.modified_by
-El identificador del usuario que ha modificado por última vez el artefactomodified_on
-Indicación de fecha y hora de la última modificación del artefacto.primary_category_id
-Identificador de la categoría primaria del artefacto.workflow_id
-El identificador de la configuración de flujo de trabajo que se ha utilizado para publicar el artefacto.effective_start_date
-La fecha de inicio efectiva que se asigna al artefacto.effective_end_date
-La fecha de finalización efectiva que se asigna al artefacto.system_id
-Identificador del sistema o identificador global del artefacto de gobernabilidad asociado.rds_values_total_counts
- Recuento de valores de datos de referencia para el tipo de artefacto de datos de referencia.
Postgres
Sentencia 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,
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)
)
Sentencia CREATE INDEX:
create index idx_governance_artifacts_1 on
governance_artifacts (artifact_type)
Sentencia 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
Sentencia 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,
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)
)
Sentencia CREATE INDEX:
create index idx_governance_artifacts_1 on
governance_artifacts (artifact_type)
Sentencia 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
Servidor SQL MS
Sentencia 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,
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
)
)
tabla gubernamance_artifact_stewards
Esta tabla contiene una lista de representantes asignados a un artefacto publicado.
Esta tabla tiene las columnas siguientes:
artifact_id
-El identificador del artefacto.user_id
-El identificador del usuario que se asigna como representante.
Postgres
Sentencia 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));
Sentencia 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
Sentencia 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) )
Sentencia 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
tabla gubernamance_artifact_asociaciones
Esta tabla contiene información sobre las relaciones entre los artefactos de gobierno.
Esta tabla tiene las columnas siguientes:
end1_artifact_id
-El identificador del artefacto de origen.end2_artifact_id
-El identificador del artefacto de destino.end1_artifact_type
: el tipo del artefacto de origen.end2_artifact_type
-El tipo del artefacto de destino.relationship_type
-El tipo de relación.
Postgres
Sentencia 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))
Sentencia 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
Sentencia 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
Sentencia 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
tabla artifact_tags
Esta tabla contiene información sobre los códigos que están asociados con un artefacto.
Esta tabla tiene las columnas siguientes:
tag_name
-El nombre de la etiqueta asociada.artifact_id
-El identificador del artefacto.artifact_type
-El tipo del artefacto, por ejemplo glossary_term, classification, data_class, reference_data, rule o policy.
Postgres
Sentencia 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));
Sentencias 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
Sentencia 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) )
Sentencias 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
tabla business_term_abbreviations
Esta tabla contiene información sobre las abreviaturas asignadas a los artefactos de términos empresariales (artefactos de tipo glossary_term).
Esta tabla tiene las columnas siguientes:
artifact_id
- Identificador del artefacto glossary_term (término comercial).abbreviation
- Abreviatura del artefacto.
Postgres
Sentencia CREATE TABLE:
CREATE TABLE "globalschema".business_term_abbreviations(
artifact_id varchar(128) NOT NULL,
abbreviation 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, abbreviation)
)
Db2
Sentencia CREATE TABLE:
CREATE TABLE "globalschema".business_term_abbreviations(
artifact_id varchar(128) NOT NULL,
abbreviation 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, abbreviation)
)
Servidor SQL MS
Sentencia CREATE TABLE:
CREATE TABLE "globalschema".business_term_abbreviations(
artifact_id varchar(128) NOT NULL,
abbreviation varchar(128) 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(artifact_id, abbreviation),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_business_term_abbreviations
)
)
Más información
Tema padre: Tablas de informes