0 / 0
Go back to the English version of the documentation
Kategorie tabel raportowania
Last updated: 18 sie 2023
Kategorie tabel raportowania

Sprawdź instrukcje Postgres, Db2 dla tabel powiązanych z kategoriami.

Obszar tematu Nazwa tabeli Opis
Kategorie rozwiązań Kategorie zarządzania, które są zdefiniowane.
Kategorie Współpracownik_kategorii Lista wszystkich współpracowników kategorii.
Kategorie znacznik_kategorii Znaczniki, które są powiązane z kategorią.
Kategorie powiązania_kategorii_kategorii Relacje między kategoriami.

tabela kategorii

Ta tabela zawiera informacje na temat kategorii zarządzania, które są zdefiniowane.

Ta tabela zawiera następujące kolumny:

  • category_id -identyfikator kategorii.
  • name -Nazwa kategorii.
  • description -opis kategorii.
  • created_by -identyfikator użytkownika, który utworzył kategorię.
  • created_on -znacznik czasu utworzenia kategorii.
  • modified_by -identyfikator użytkownika, który ostatnio zmodyfikował kategorię.
  • modified_on -znacznik czasu ostatniej modyfikacji kategorii.
  • Instrukcja CREATE TABLE:

    create table categories(category_id varchar(128) not null,
    name varchar(256) not null,
    description text,
    created_by varchar(128) not null,
    created_on timestamp(6) not null,
    modified_by varchar(128),
    modified_on timestamp(6),
    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));
    
    
  • Instrukcja CREATE TABLE:

    create table categories(category_id varchar(128) not null,
    name varchar(256) not null,
    description clob,
    created_by varchar(128) not null,
    created_on timestamp(12) not null,
    modified_by varchar(128),
    modified_on timestamp(12),
    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),
    period SYSTEM_TIME (tech_start,
    tech_end) )
    
    

tabela category_collaborators

Ta tabela zawiera listę wszystkich współpracowników kategorii.

Ta tabela zawiera następujące kolumny:

  • category_id -identyfikator kategorii.
  • user_id -identyfikator użytkownika.
  • role -role przypisane do tego użytkownika lub grupy użytkowników, na przykład Właściciel, Administrator, Edytor, Recenzent lub Przeglądarka.
  • Instrukcja CREATE TABLE:

    create table category_collaborators(category_id varchar(128) not null,
    user_id varchar(128) not null,
    role varchar(128) not null,
    user_type varchar(16) not null,
    tech_start TIMESTAMP(12) not null default CURRENT_TIMESTAMP,
    tech_end TIMESTAMP(12) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
    ts_id TIMESTAMP(12) not null default CURRENT_TIMESTAMP,
    primary key(category_id,
    user_id,
    role))
    
    

    Instrukcja ALTER TABLE:

    alter table category_collaborators add constraint fk_category_collaborators_categories_20 foreign key (category_id) references categories(category_id) on
    delete
    	cascade on
    	update
    	no action
    
    

    {: .codeblock}

  • Instrukcja CREATE TABLE:

    create table category_collaborators(category_id varchar(128) not null,
    user_id varchar(128) not null,
    role varchar(128) not null,
    user_type varchar(16) 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,
    user_id,
    role),
    period SYSTEM_TIME (tech_start,
    tech_end) ) ORGANIZE by row
    

    Instrukcja ALTER TABLE:

    alter table category_collaborators add constraint fk_category_collaborators_categories_20 foreign key (category_id) references categories(category_id) on
    delete
    	cascade on
    	update
    	no action
    

tabela category_tags

Ta tabela zawiera informacje o znacznikach, które są powiązane z kategorią.

Ta tabela zawiera następujące kolumny:

  • tag_name -Nazwa powiązanego znacznika.
  • category_id -identyfikator kategorii.
  • Instrukcja CREATE TABLE:

    create table category_tags(tag_name varchar(256) not null,
    category_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(tag_name,
    category_id));
    

    Instrukcje ALTER TABLE:

    alter table category_tags add constraint fk_category_tags_tags_27 foreign key (tag_name) references tags(tag_name) on
    delete
    	cascade on
    	update
    	no action
    
    alter table category_tags add constraint fk_category_tags_categories_25 foreign key (category_id) references categories(category_id) on
    delete
    	cascade on
    	update
    	no action
    
  • Instrukcja CREATE TABLE:

    create table category_tags(tag_name varchar(256) not null,
    category_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(tag_name,
    category_id),
    period SYSTEM_TIME (tech_start,
    tech_end) )
    

    Instrukcje ALTER TABLE:

    alter table category_tags add constraint fk_category_tags_tags_27 foreign key (tag_name) references tags(tag_name) on
    delete
    	cascade on
    	update
    	no action
    
    alter table category_tags add constraint fk_category_tags_categories_25 foreign key (category_id) references categories(category_id) on
    delete
    	cascade on
    	update
    	no action
    

tabela category_stowarzyszeń

Ta tabela zawiera informacje na temat relacji między kategoriami.

Ta tabela zawiera następujące kolumny:

  • end1_category_id -identyfikator kategorii źródłowej.
  • end2_category_id -identyfikator kategorii docelowej.
  • relationship_type -typ relacji między dwiema kategoriami, na przykład nadrzędna_kategoria_nadrzędna.
  • Instrukcja CREATE TABLE:

    create table category_associations(end1_category_id varchar(128) not null,
    end2_category_id varchar(128) not null,
    relationship_type varchar(256) 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_category_id,
    end2_category_id,
    relationship_type))
    

    Instrukcja ALTER TABLE:

    alter table category_associations add constraint fk_category_associations_glossary_custom_relationship_def_7 foreign key (cr_definition_id) references glossary_custom_relationship_def(cr_definition_id) on
    delete
    	cascade on
    	update
    	no action
    
  • Instrukcja CREATE TABLE:

    create table category_associations(end1_category_id varchar(128) not null,
    end2_category_id varchar(128) not null,
    relationship_type varchar(256) 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_category_id,
    end2_category_id,
    relationship_type),
    period SYSTEM_TIME (tech_start,
    tech_end) ) ORGANIZE by row 
    

    Instrukcja ALTER TABLE:

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

Więcej inform.

Temat nadrzędny: Tabele raportowania