Schema
Owner
woodseer
Tablespace
(default)
Descriptions
Table of taxonomic referentials
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
ref_id |
serial |
|
nextval('tr_taxonomic_referential_ref_ref_id_seq'::regclass) |
Automatic identifier of the referential |
|||
|
|
ref_code |
varchar(16) |
|
|
Unique code to identify the referential (except versions) |
||
|
|
ref_label |
varchar(64) |
|
|
|
referential label |
|
|
|
ref_version |
varchar(16) |
|
|
|
Version of the referential |
|
|
|
ref_comment |
varchar(255) |
|
|
|
|
free comment |
Foreign Keys
There are no foreign keys for table tr_taxonomic_referential_ref
Check Constraints
There are no check constraints for table tr_taxonomic_referential_ref
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
ref_code |
|
The code of the referential is unique |
||
btree |
|
ref_label, ref_version |
|
The label / version pair of the referential is unique |
||
btree |
|
ref_id |
|
Triggers
There are no triggers for table tr_taxonomic_referential_ref
Rules
There are no rules for table tr_taxonomic_referential_ref
Policies
There are no policies for table tr_taxonomic_referential_ref
Referenced
Table | Schema | Foreign Key | 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 |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
1 |
Pages |
1 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_taxonomic_referential_ref (
ref_id SERIAL,
ref_code VARCHAR(16) NOT NULL,
ref_label VARCHAR(64) NOT NULL,
ref_version VARCHAR(16) NOT NULL,
ref_comment VARCHAR(255),
CONSTRAINT c_uni_code_ref UNIQUE(ref_code),
CONSTRAINT c_uni_lab_ver_ref UNIQUE(ref_label, ref_version),
CONSTRAINT tr_taxonomic_referential_ref_pkey PRIMARY KEY(ref_id)
) ;
COMMENT ON TABLE public.tr_taxonomic_referential_ref
IS 'Table of taxonomic referentials';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_id
IS 'Automatic identifier of the referential';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_code
IS 'Unique code to identify the referential (except versions)';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_label
IS 'referential label';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_version
IS 'Version of the referential';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_comment
IS 'free comment';
COMMENT ON CONSTRAINT c_uni_code_ref ON public.tr_taxonomic_referential_ref
IS 'The code of the referential is unique';
COMMENT ON CONSTRAINT c_uni_lab_ver_ref ON public.tr_taxonomic_referential_ref
IS 'The label / version pair of the referential is unique';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |