Schema
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 |
---|---|---|---|---|---|---|---|---|
tax_ref_id |
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 |
---|---|---|---|---|---|---|
btree |
|
tax_ref_id, tax_identifier_ext |
|
The referential / external identifier pair is unique |
||
btree |
|
tax_ref_id, tax_label |
|
The referential / label pair is unique |
||
btree |
|
tax_id |
|
|||
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 |
---|---|---|---|---|---|---|---|---|---|---|
obj_tax_id |
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 |