pggeodb.nancy.inra.fr/db_woodseer - db_woodseer on pggeodb.nancy.inra.fr
Previous topic Chapter index Next topic

Table: tr_taxon_tax

 

 

Schema

public

 

Owner

woodseer

 

Tablespace

(default)

 

Descriptions

Table of plant taxa (species) referenced in the database

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

tax_id

serial

 

nextval('tr_taxon_tax_tax_id_seq'::regclass)

Automatic identifier of the taxon

 

tax_ref_id

integer

 

 

 

Identifier of the taxomonic referential corresponding to the taxon

 

 

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

 

 

tax_label

varchar(255)

 

 

 

 

Unique common name of the taxon in its original referential

 

Foreign Keys

Name

Fields

FK Table

FK Fields

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

Fields

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

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

t_object_obj

public

c_fk_tax_obj

obj_tax_id

public.tr_taxon_tax

tax_id

No Action

No Action

 

Immediate

An object is link to 0 or 1 taxon

 

Properties

Property

Value

Inherited From

 

Rows

84600

Pages

904

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.tr_taxon_tax (
 tax_id SERIAL,
 tax_ref_id INTEGER NOT NULL,
 tax_identifier_ext VARCHAR(64) NOT NULL,
 tax_label VARCHAR(255),
 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 'Automatic identifier of the taxon';

COMMENT ON COLUMN public.tr_taxon_tax.tax_ref_id
IS 'Identifier of the taxomonic referential corresponding to the taxon';

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 COLUMN public.tr_taxon_tax.tax_label
IS 'Unique common name of the taxon in its original referential';

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) at 07/12/2018 13:23
Previous topic Chapter index Next topic