db_globoxylo
Previous topic Chapter index Next topic

Table: tr_taxon_tax

 

 

Schema

public

 

Owner

postgres

 

Tablespace

(default)

 

Descriptions

Table of plant taxa (species) referenced in the database

 

Columns

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

tax_id

serial

 

nextval('tr_taxon_tax_tax_id_seq'::regclass)

digital automatic identifier of the taxon

 

tax_ref_id

integer

 

 

 

Automatic numeric identifier of the home referential

 

 

tax_label

varchar(255)

 

 

 

Unique common name of the taxon in its original referential

 

 

tax_identifier_ext

varchar(64)

 

 

 

Identifier in the information source (original referential). For example the ' CD_NOM field of a taxref table '. This field should allow monitoring of the evolution of benchmarks over time.

 

Foreign Keys

Name

Columns

FK Table

FK Columns

Delete Action

Update Action

Deferrable

Check Time

Description

c_fk_ref_tax

tax_ref_id

public.tr_taxonomic_referential_ref

ref_id

No Action

No Action

 

Immediate

A taxon is linked to 1 and 1 single referential

 

Check Constraints

There are no check constraints for table tr_taxon_tax

 

Indices

Name

Type

Function

Columns

Primary Key

Unique

Description

c_uni_ref_identifier_ext_tax

btree

 

tax_ref_id, tax_identifier_ext

 

The referential / external identifier pair is unique

c_uni_ref_label_tax

btree

 

tax_ref_id, tax_label

 

The referential / label pair is unique

tr_taxon_tax_pkey

btree

 

tax_id

 

x_btr_fkey_ref_tax

btree

 

tax_ref_id

 

 

Foreign key index to speed up updates / deletion

 

Triggers

There are no triggers for table tr_taxon_tax

 

Rules

There are no rules for table tr_taxon_tax

 

Policies

There are no policies for table tr_taxon_tax

 

Referenced

Table

Schema

Foreign Key

Columns

FK Table

FK Columns

Delete Action

Update Action

Deferrable

Check Time

Description

t_tree_tre

public

c_fk_tax_tre

tre_tax_id

public.tr_taxon_tax

tax_id

No Action

No Action

 

Immediate

A tree is attached to one and only one taxon

 

Properties

Property

Value

Inherited From

 

Rows

-1

Pages

0

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.tr_taxon_tax (
 tax_id SERIAL,
 tax_ref_id INTEGER NOT NULL,
 tax_label VARCHAR(255) NOT NULL,
 tax_identifier_ext VARCHAR(64) NOT NULL,
 CONSTRAINT c_uni_ref_identifier_ext_tax UNIQUE(tax_ref_id, tax_identifier_ext),
 CONSTRAINT c_uni_ref_label_tax UNIQUE(tax_ref_id, tax_label),
 CONSTRAINT tr_taxon_tax_pkey PRIMARY KEY(tax_id),
 CONSTRAINT c_fk_ref_tax FOREIGN KEY (tax_ref_id)
   REFERENCES public.tr_taxonomic_referential_ref(ref_id)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE

) ;

COMMENT ON TABLE public.tr_taxon_tax
IS 'Table of plant taxa (species) referenced in the database';

COMMENT ON COLUMN public.tr_taxon_tax.tax_id
IS 'digital automatic identifier of the taxon';

COMMENT ON COLUMN public.tr_taxon_tax.tax_ref_id
IS 'Automatic numeric identifier of the home referential';

COMMENT ON COLUMN public.tr_taxon_tax.tax_label
IS 'Unique common name of the taxon in its original referential';

COMMENT ON COLUMN public.tr_taxon_tax.tax_identifier_ext
IS 'Identifier in the information source (original referential). For example the '' CD_NOM field of a taxref table ''. This field should allow monitoring of the evolution of benchmarks over time.';

COMMENT ON CONSTRAINT c_fk_ref_tax ON public.tr_taxon_tax
IS 'A taxon is linked to 1 and 1 single referential';

COMMENT ON CONSTRAINT c_uni_ref_identifier_ext_tax ON public.tr_taxon_tax
IS 'The referential / external identifier pair is unique';

COMMENT ON CONSTRAINT c_uni_ref_label_tax ON public.tr_taxon_tax
IS 'The referential / label pair is unique';

CREATE INDEX x_btr_fkey_ref_tax ON public.tr_taxon_tax
 USING btree (tax_ref_id);

COMMENT ON INDEX public.x_btr_fkey_ref_tax
IS 'Foreign key index to speed up updates / deletion';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com)
Previous topic Chapter index Next topic