Schema
Owner
postgres
Tablespace
(default)
Descriptions
Table of references
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
ref_id |
serial |
|
nextval('tr_taxonomic_referential_ref_ref_id_seq'::regclass) |
Digital automatic identifier of the referential |
|||
|
|
ref_label |
varchar(128) |
|
|
|
referential name |
|
|
|
ref_version |
varchar(16) |
|
|
|
Version of the referential |
|
|
|
ref_code |
varchar(16) |
|
|
Unique code to identify the referential (except versions) |
||
|
|
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 | Columns | 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 | Columns | FK Table | FK Columns | 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 |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_taxonomic_referential_ref (
ref_id SERIAL,
ref_label VARCHAR(128) NOT NULL,
ref_version VARCHAR(16) NOT NULL,
ref_code 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 references';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_id
IS 'Digital automatic identifier of the referential';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_label
IS 'referential name';
COMMENT ON COLUMN public.tr_taxonomic_referential_ref.ref_version
IS 'Version 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_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) |