Tabelas de relatório de customizações.

Verifique as instruções Postgres, Db2 para as tabelas que contêm funções customizadas, relacionamentos, atributos, propriedades e outros.

Área de assunto Nome da tabela Descrição
Customizações categoria_funções_personalizadas As funções de categoria customizadas
Customizações glossário_relação_personalizada_def As definições de relacionamento customizadas
Customizações glossário_ca_atributo_tipo_de_artefato_associação Os tipos de artefatos suportados para definição de atributo customizado.
Customizações glossário_nós_de_relação_personalizada O tipo de artefato de origem e destino para definições de relacionamento customizado.
Customizações glossário_atributo_personalizado_definição As definições de atributo customizadas.
Customizações glossário_ca_lista_de_enumerações As definições de atributo customizado do tipo ENUM
Customizações valores_de_atributos_personalizados_de_artefato_de_governança Os valores de atributo customizado
Customizações propriedades personalizadas de ativos O grupo de propriedades customizadas designado a um tipo de ativo, e a propriedade sob esse grupo
Customizações propriedades_personalizadas_do_tipo_de_ativo O tipo de propriedade customizada e seu grupo customizado associado.
Customizações lista_de_enumerações_de_propriedades_de_ativos A propriedade customizada do tipo enumeration..
Customizações valores_propostos_personalizados do ativo Os valores designados para as propriedades customizadas que são definidas no ativo.

tabela category_custom_roles

Esta tabela contém informações sobre as funções de categoria customizadas

Esta tabela possui as seguintes colunas:

  • role_id -O identificador da função customizada da categoria.
  • role_name -O nome da função customizada da categoria..

Postgres

Instrução CREATE TABLE:

create table category_custom_roles(role_id varchar(32) not null,
role_name varchar(128) not null,
primary key(role_id))


Db2

Instrução CREATE TABLE:

create table category_custom_roles(role_id varchar(32) not null,
role_name varchar(128) not null,
primary key(role_id)) ORGANIZE by row

Tabela glossary_custom_relationship_def

Esta tabela contém informações sobre as definições de relacionamento customizadas

Esta tabela possui as seguintes colunas:

  • cr_definition_id -O identificador da definição de relacionamento customizado.
  • artifact_id -O identificador da definição de relacionamento customizado.
  • name -O nome da definição de relacionamento customizado
  • created_on -A data de criação de uma definição de relacionamento customizado
  • created_by -A pessoa que criou a definição de relacionamento customizado
  • modified_on -A data de modificação da definição de relacionamento customizado
  • modified_by -A pessoa que modificou a definição de relacionamento customizado
  • system_id -O identificador do sistema no qual a definição de relacionamento customizado é criada.
  • type -O tipo de definição de relacionamento customizado
  • reverse_name -O nome do relacionamento reverso da definição de relacionamento customizado
  • description -A descrição da definição de relacionamento customizado
  • read_only -Especifica se a definição de relacionamento customizado é somente leitura ou não
  • default_value -O valor padrão de definição de relacionamento customizado.
  • multiple_values -Especifica se a definição de relacionamento customizado pode ter diversos valores ou não

Postgres

Instrução CREATE TABLE:

create table glossary_custom_relationship_def(cr_definition_id varchar(128) not null,
artifact_id varchar(128) not null,
name varchar(256) not null,
created_on timestamp(6) not null,
created_by varchar(128) not null,
modified_on timestamp(6),
modified_by varchar(128),
system_id varchar(128),
type varchar(128) not null,
reverse_name varchar(256) not null,
description varchar(256),
read_only boolean not null,
default_value text,
multiple_values boolean 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(cr_definition_id))


Db2

Instrução CREATE TABLE:

create table glossary_custom_relationship_def(cr_definition_id varchar(128) not null,
artifact_id varchar(128) not null,
name varchar(256) not null,
created_on timestamp(12) not null,
created_by varchar(128) not null,
modified_on timestamp(12),
modified_by varchar(128),
system_id varchar(128),
type varchar(128) not null,
reverse_name varchar(256) not null,
description varchar(256),
read_only boolean not null,
default_value clob(128),
multiple_values boolean 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(cr_definition_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row

glossary_ca_attr_artifact_type_assoc tabela

Esta tabela contém informações sobre os tipos de artefatos suportados para definição de atributo customizado.

Esta tabela possui as seguintes colunas:

  • ca_definition_id -O identificador da definição de atributo customizado.
  • artifact_type -O tipo de artefato para o qual a definição de relacionamento customizado é aplicável

Postgres

Instrução CREATE TABLE:

create table glossary_ca_attr_artifact_type_assoc(ca_definition_id varchar(128) not null,
artifact_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(ca_definition_id,
artifact_type))

Instrução ALTER TABLE:

alter table glossary_ca_attr_artifact_type_assoc add constraint fk_glossary_ca_attr_artifact_type_assoc_glossary_custom_attr_def_1 foreign key (ca_definition_id) references glossary_custom_attr_def(ca_definition_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

create table glossary_ca_attr_artifact_type_assoc(ca_definition_id varchar(128) not null,
artifact_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(ca_definition_id,
artifact_type),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row

Instrução ALTER TABLE:

ALTER TABLE "BITNT2DBSAVIKASH1".glossary_ca_attr_artifact_type_assoc ADD CONSTRAINT fk_glossary_ca_attr_artifact_type_assoc_glossary_custom_attr_def_1 FOREIGN KEY (ca_definition_id) REFERENCES "BITNT2DBSAVIKASH1".glossary_custom_attr_def(ca_definition_id) ON DELETE CASCADE  ON UPDATE NO ACTION 

tabela glossary_custom_relationship_nodes

Esta tabela contém informações sobre o tipo de artefato de origem e de destino para definições de relacionamentos customizados

Esta tabela possui as seguintes colunas:

  • cr_definition_id -O identificador da definição de relacionamento customizado.
  • end1_artifact_type -O tipo de artefato de origem dos relacionamentos customizados
  • end2_artifact_type -O tipo de artefato de destino dos relacionamentos customizados

Postgres

Instrução CREATE TABLE:

create table glossary_custom_relationship_nodes(cr_definition_id varchar(128) not null,
end1_artifact_type varchar(128) not null,
end2_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(cr_definition_id,
end1_artifact_type,
end2_artifact_type))

Instrução ALTER TABLE

alter table glossary_custom_relationship_nodes add constraint fk_glossary_custom_relationship_nodes_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

Instrução CREATE TABLE:

create table glossary_custom_relationship_nodes(cr_definition_id varchar(128) not null,
end1_artifact_type varchar(128) not null,
end2_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(cr_definition_id,
end1_artifact_type,
end2_artifact_type),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row

Instrução ALTER TABLE

alter table glossary_custom_relationship_nodes add constraint fk_glossary_custom_relationship_nodes_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

glossary_custom_attr_def tabela

Esta tabela contém informações sobre as definições de atributo customizado

Esta tabela possui as seguintes colunas:

  • ca_definition_id -O identificador da definição de atributo customizado.
  • global_id -O identificador global da definição de atributos customizados.
  • name -O nome da definição de atributo customizado
  • created_on -A data de criação da definição de atributo customizado
  • created_by -A pessoa que criou a definição de atributo customizado
  • modified_on -A data de modificação da definição do atributo customizado
  • modified_by -A pessoa que modificou a definição de atributo customizado
  • system_id -O sistema identificado no qual a definição de atributo customizado é criada
  • type -O tipo de definição de atributo customizado
  • read_only -Especifica se a definição de atributo customizado é somente leitura ou não..
  • default_value -O valor padrão da definição de atributo customizado.
  • multiple_values -Especifica se a definição de atributo customizado pode ter diversos valores ou não

Postgres

Instrução CREATE TABLE:

create table glossary_custom_attr_def(ca_definition_id varchar(128) not null,
global_id varchar(256) not null,
name varchar(256) not null,
created_on timestamp(6) not null,
created_by varchar(128) not null,
modified_on timestamp(6),
modified_by varchar(128),
system_id varchar(128),
type varchar(128) not null,
read_only boolean not null,
default_value text,
multiple_values boolean 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(ca_definition_id))


Db2

Instrução CREATE TABLE:

create table glossary_custom_attr_def(ca_definition_id varchar(128) not null,
global_id varchar(256) not null,
name varchar(256) not null,
created_on timestamp(12) not null,
created_by varchar(128) not null,
modified_on timestamp(12),
modified_by varchar(128),
system_id varchar(128),
type varchar(128) not null,
read_only boolean not null,
default_value clob,
multiple_values boolean 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(ca_definition_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row

tabela glossary_ca_enum_list

Esta tabela contém informações sobre as definições de atributo customizado do tipo ENUM

Esta tabela possui as seguintes colunas:

  • ca_definition_id -O identificador da definição de atributo customizado do tipo enum.
  • value -O valor da definição de atributo customizado do tipo de enumeração Suporta caracteres internacionais (multibyte, até 256 caracteres).
  • description -A descrição da definição de atributo customizado Suporta caracteres internacionais (multibyte, até 256 caracteres).

Postgres

Instrução CREATE TABLE:

CREATE TABLE "globalschema".glossary_ca_enum_list(ca_definition_id varchar(128) NOT NULL,
value varchar(256) NOT NULL,
description 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(ca_definition_id,value))

Instrução ALTER TABLE:

alter table "BITNT2DBSAVIKASH1".glossary_ca_enum_list add constraint fk_glossary_ca_enum_list_glossary_custom_attr_def_2 foreign key (ca_definition_id) references "BITNT2DBSAVIKASH1".glossary_custom_attr_def(ca_definition_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

CREATE TABLE "globalschema".glossary_ca_enum_list(ca_definition_id varchar(128) NOT NULL,
value varchar(256 CODEUNITS32) NOT NULL,
description varchar(256 CODEUNITS32),
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(ca_definition_id,value),
PERIOD SYSTEM_TIME (tech_start,tech_end) )

Instrução ALTER TABLE:

alter table glossary_ca_enum_list add constraint fk_glossary_ca_enum_list_glossary_custom_attr_def_2 foreign key (ca_definition_id) references glossary_custom_attr_def(ca_definition_id) on
delete
	cascade on
	update
	no action


MS SQL server

Instrução CREATE TABLE:

CREATE TABLE "globalschema".glossary_ca_enum_list(ca_definition_id varchar(128) NOT NULL,
value nvarchar(256) NOT NULL,
description nvarchar(256),
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_glossary_ca_enum_list_globalschema PRIMARY KEY(ca_definition_id,value),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end) )
WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = "globalschema".hist_glossary_ca_enum_list))

Instrução ALTER TABLE:

ALTER TABLE "globalschema".glossary_ca_enum_list ADD CONSTRAINT fk_glossary_ca_enum_list_glossary_custom_attr_def_2 FOREIGN KEY (ca_definition_id) REFERENCES "globalschema".glossary_custom_attr_def(ca_definition_id) ON DELETE CASCADE

tabela governance_artifact_custom_attr_values

Esta tabela contém informações sobre os valores de atributos customizados

Esta tabela possui as seguintes colunas:

  • artifact_id -O identificador da definição de relacionamento customizado.
  • ca_definition_id -O identificador da definição de atributo customizado.
  • value_id -O identificador do valor de atributo customizado.
  • text_value -O valor de texto do atributo customizado
  • num_value -O valor numérico do atributo customizado.
  • date_value -O valor de data do atributo customizado.
  • value_type - O tipo de valor das propriedades personalizadas.

Postgres

Instrução CREATE TABLE:

CREATE TABLE governance_artifact_custom_attr_values(
  artifact_id varchar(128) NOT NULL,ca_definition_id varchar(128) NOT NULL,
  value_id varchar(128) NOT NULL,text_value text,num_value double precision,
  date_value timestamp(6),value_type varchar(16),
  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,ca_definition_id,value_id))

Instrução ALTER TABLE:

alter table governance_artifact_custom_attr_values add constraint fk_governance_artifact_custom_attr_values_glossary_custom_attr_def_12 foreign key (ca_definition_id) references glossary_custom_attr_def(ca_definition_id) on
delete
	cascade on
	update
	no action


Db2

Instrução CREATE TABLE:

CREATE TABLE governance_artifact_custom_attr_values(
  artifact_id varchar(128) NOT NULL,ca_definition_id
  varchar(128) NOT NULL,value_id varchar(128) NOT NULL,
  text_value text,num_value double precision,
  date_value timestamp(6),value_type varchar(16),
  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,ca_definition_id,value_id))

Instrução ALTER TABLE:

alter table governance_artifact_custom_attr_values add constraint fk_governance_artifact_custom_attr_values_glossary_custom_attr_def_12 foreign key (ca_definition_id) references glossary_custom_attr_def(ca_definition_id) on
delete
	cascade on
	update
	no action

tabela asset_custom_properties

Esta tabela possui as seguintes colunas:

  • property_id -O identificador para a propriedade customizada.
  • group_id -O identificador para o tipo de grupo que possui propriedades definidas nele.
  • property_type -Define o tipo para a propriedade customizada
  • property_is_array -Define se uma propriedade possui diversos valores
  • property_name -` O nome da propriedade customizada do ativo
  • description -A descrição de uma propriedade customizada do ativo
  • property_group_name -O nome do grupo de uma propriedade customizada do ativo
  • is_column_property -Identifique a propriedade da coluna configurada.

Postgres

Instrução CREATE TABLE:

CREATE TABLE asset_custom_properties (
	property_id varchar(256) NOT NULL,
	property_group_id varchar(256) NOT NULL,
	property_type varchar(128) NOT NULL,
	property_name varchar(256) NOT NULL,
	property_group_name varchar(256) NOT NULL,
	property_is_array numeric(1) NOT NULL,
	description varchar(256) NULL,
	is_column_property numeric(1) 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 asset_custom_properties_is_column_property_check CHECK ((is_column_property = ANY (ARRAY[(0)::numeric, (1)::numeric]))),
	CONSTRAINT asset_custom_properties_pkey PRIMARY KEY (property_id, property_group_id),
	CONSTRAINT asset_custom_properties_property_is_array_check CHECK ((property_is_array = ANY (ARRAY[(0)::numeric, (1)::numeric])))
);

Instrução ALTER TABLE:

ALTER TABLE IF EXISTS  asset_custom_properties
    OWNER to postgres;


Db2

Instrução CREATE TABLE:

CREATE TABLE asset_custom_properties(property_id varchar(256) NOT NULL,
property_group_id varchar(256) NOT NULL,
property_type varchar(128) NOT NULL,
property_name varchar(256) NOT NULL,
property_group_name varchar(256) NOT NULL,
property_is_array decimal(1) CHECK (property_is_array IN (0, 1)) NOT NULL,
description varchar(256),
is_column_property decimal(1) CHECK (is_column_property IN (0, 1)), 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(property_id,
property_group_id),
PERIOD SYSTEM_TIME (tech_start,
tech_end) )

Instrução ALTER TABLE:

ALTER TABLE IF EXISTS  asset_custom_properties
    OWNER to postgres;

Tabela asset_type_custom_properties

Esta tabela possui as seguintes colunas:

  • property_id -O identificador para a propriedade customizada.
  • group_id -O identificador do tipo de grupo que possui propriedade definida abaixo.
  • asset_type -O tipo de ativo para o qual a propriedade customizada é definida

Postgres

Instrução CREATE TABLE:

CREATE TABLE IF NOT EXISTS asset_type_custom_properties (
  property_id character varying(256) COLLATE pg_catalog.default NOT NULL,
  property_group_id character varying(256) COLLATE pg_catalog.default NOT NULL,
  asset_type character varying(128) COLLATE pg_catalog.default NOT NULL,
  tech_start timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
  tech_end timestamp(6) without time zone NOT NULL DEFAULT to_timestamp('9999-12-30' :: text, 'YYYY-MM-DD' :: text),
  ts_id timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
  CONSTRAINT asset_type_custom_properties_pkey PRIMARY KEY (property_id, property_group_id, asset_type),
  CONSTRAINT fk_asset_type_custom_properties_asset_custom_properties_1 FOREIGN KEY (property_id, property_group_id) REFERENCES asset_custom_properties (property_id, property_group_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
)

Instrução ALTER TABLE:

ALTER TABLE IF EXISTS  asset_type_custom_properties
    OWNER to postgres;


Db2

Instrução CREATE TABLE:

CREATE TABLE ASSET_TYPE_CUSTOM_PROPERTIES (
  PROPERTY_ID VARCHAR(256 OCTETS) NOT NULL,
  PROPERTY_GROUP_ID VARCHAR(256 OCTETS) NOT NULL,
  ASSET_TYPE 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
  ASSET_TYPE_CUSTOM_PROPERTIES
ADD
  PRIMARY KEY (
    PROPERTY_ID,
    PROPERTY_GROUP_ID,
    ASSET_TYPE
  ) ENFORCED;
ALTER TABLE
  ASSET_TYPE_CUSTOM_PROPERTIES
ADD
  CONSTRAINT FK_ASSET_TYPE_CUSTOM_PROPERTIES_ASSET_CUSTOM_PROPERTIES_1 FOREIGN KEY (PROPERTY_ID, PROPERTY_GROUP_ID) REFERENCES ASSET_CUSTOM_PROPERTIES (PROPERTY_ID, PROPERTY_GROUP_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;

Tabela asset_prop_enum_list

A propriedade customizada do tipo enumeration..

Esta tabela possui as seguintes colunas:

  • property_id -O identificador para a propriedade customizada.
  • group_id -O identificador do tipo de grupo que possui propriedade definida abaixo.
  • value -O valor designado à propriedade customizada. Suporta caracteres internacionais (multibyte, até 256 caracteres).
  • description -A descrição da propriedade enum .. Suporta caracteres internacionais (multibyte, até 256 caracteres).

Postgres

Instrução CREATE TABLE:

CREATE TABLE "globalschema".asset_prop_enum_list(property_id varchar(256) NOT NULL,
property_group_id varchar(256) NOT NULL,
value varchar(256) NOT NULL,
description 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(property_id,property_group_id,value))

Instrução ALTER TABLE:

ALTER TABLE IF EXISTS asset_prop_enum_list
    OWNER to postgres;


Db2

Instrução CREATE TABLE:

CREATE TABLE "globalschema".asset_prop_enum_list(property_id varchar(256) NOT NULL,
property_group_id varchar(256) NOT NULL,
value varchar(256 CODEUNITS32) NOT NULL,
description varchar(256 CODEUNITS32),
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(property_id,property_group_id,value),
PERIOD SYSTEM_TIME (tech_start,tech_end) )

Instrução ALTER TABLE:

ALTER TABLE
  ASSET_PROP_ENUM_LIST
ADD
  PRIMARY KEY (PROPERTY_ID, PROPERTY_GROUP_ID, VALUE) ENFORCED;
ALTER TABLE
  ASSET_PROP_ENUM_LIST
ADD
  CONSTRAINT FK_ASSET_PROP_ENUM_LIST_ASSET_CUSTOM_PROPERTIES_2 FOREIGN KEY (PROPERTY_ID, PROPERTY_GROUP_ID) REFERENCES ASSET_CUSTOM_PROPERTIES (PROPERTY_ID, PROPERTY_GROUP_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;


MS SQL server

Instrução CREATE TABLE:

CREATE TABLE "globalschema".asset_prop_enum_list(property_id varchar(256) NOT NULL,
property_group_id varchar(256) NOT NULL,
value nvarchar(256) NOT NULL,
description nvarchar(256),
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_asset_prop_enum_list_globalschema PRIMARY KEY(property_id,property_group_id,value),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end) )
WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = "globalschema".hist_asset_prop_enum_list))

Instrução ALTER TABLE:

ALTER TABLE asset_prop_enum_list ADD CONSTRAINT fk_asset_prop_enum_list_asset_custom_properties_2 FOREIGN KEY (property_id,
property_group_id) REFERENCES asset_custom_properties(property_id,
property_group_id) ON
DELETE
	CASCADE

tabela asset_custom_prop_values

Esta tabela possui as seguintes colunas:

  • container_id - Especifica o identificador do catálogo ou do projeto.
  • asset_id -O identificador de um ativo ao qual a propriedade customizada está associada.
  • property_id -O identificador para uma propriedade customizada.
  • property_group_id -O identificador para o grupo que possui uma propriedade definida abaixo dele
  • asset_type -o tipo de ativo ao qual a propriedade customizada é aplicável.
  • value_id -O identificador de valor para uma determinada propriedade customizada
  • property_text_value -O valor da propriedade customizada text .
  • property_num_value -O valor da propriedade customizada number .
  • property_date_value -O valor da propriedade customizada date .
  • property_value_type -O tipo do valor, ou seja, sequência, número, data, usuário, grupo

Postgres

Instrução CREATE TABLE:

CREATE TABLE asset_custom_prop_values(
  container_id varchar(36) NOT NULL,
  asset_id varchar(128) NOT NULL,
  property_id varchar(256) NOT NULL,
  property_group_id varchar(256) NOT NULL,
  value_id varchar(256) NOT NULL,
  asset_type varchar(256) NOT NULL,
  property_text_value text,
  property_num_value double precision,
  property_date_value timestamp(6),
  property_value_type varchar(16),
  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, property_id,
    property_group_id, value_id, asset_type
  )
)

Instrução ALTER TABLE:

ALTER TABLE IF EXISTS asset_custom_prop_values
OWNER to postgres;


Db2

Instrução CREATE TABLE:

CREATE TABLE asset_custom_prop_values(
  container_id varchar(36) NOT NULL,
  asset_id varchar(128) NOT NULL,
  property_id varchar(256) NOT NULL,
  property_group_id varchar(256) NOT NULL,
  value_id varchar(256) NOT NULL,
  asset_type varchar(256) NOT NULL,
  property_text_value text,
  property_num_value double precision,
  property_date_value timestamp(6),
  property_value_type varchar(16),
  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, property_id,
    property_group_id, value_id, asset_type
  )
)

Instruções ALTER TABLE:

ALTER TABLE
  ASSET_CUSTOM_PROP_VALUES
ADD
  PRIMARY KEY (
    CONTAINER_ID,
    ASSET_ID,
    PROPERTY_ID,
    PROPERTY_GROUP_ID,
    VALUE_ID,
    ASSET_TYPE
  ) ENFORCED;
ALTER TABLE
  ASSET_CUSTOM_PROP_VALUES
ADD
  CONSTRAINT FK_ASSET_CUSTOM_PROP_VALUES_ASSET_TYPE_CUSTOM_PROPERTIES_2 FOREIGN KEY (
    PROPERTY_ID,
    PROPERTY_GROUP_ID,
    ASSET_TYPE
  ) REFERENCES ASSET_TYPE_CUSTOM_PROPERTIES (
    PROPERTY_ID,
    PROPERTY_GROUP_ID,
    ASSET_TYPE
  ) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;
ALTER TABLE
  ASSET_CUSTOM_PROP_VALUES
ADD
  CONSTRAINT FK_ASSET_CUSTOM_PROP_VALUES_CONTAINER_ASSETS_1 FOREIGN KEY (CONTAINER_ID, ASSET_ID) REFERENCES CONTAINER_ASSETS (CONTAINER_ID, ASSET_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;

Saiba Mais