Schema
Owner
woodseer
Tablespace
(default)
Descriptions
Table of protocols referenced in the database
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
prot_id |
serial |
|
nextval('tr_protocol_prot_prot_id_seq'::regclass) |
Automatic numeric identifier of the protocol |
|||
|
prot_fil_id |
integer |
|
|
|
File identifier associated with the protocol |
||
|
|
prot_code |
varchar(25) |
|
|
Unique common code of the protocol |
||
|
|
prot_name |
varchar(50) |
|
|
Unique common name of the protocol |
||
|
|
prot_description |
varchar(255) |
|
|
|
|
Brief description of the protocol |
|
|
prot_url |
varchar(255) |
|
|
|
|
url for accessing the protocol document |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
prot_fil_id |
fil_id |
No Action |
No Action |
|
Immediate |
|
Check Constraints
There are no check constraints for table tr_protocol_prot
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
prot_code |
|
Protocol code must be unique |
||
btree |
|
prot_name |
|
Protocol name must be unique |
||
btree |
|
prot_id |
|
Triggers
There are no triggers for table tr_protocol_prot
Rules
There are no rules for table tr_protocol_prot
Policies
There are no policies for table tr_protocol_prot
Referenced
Table | Schema | Foreign Key | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
acq_prot_id |
prot_id |
No Action |
No Action |
|
Immediate |
an acquisition can be associated to one protocol |
||||
macq_prot_id |
prot_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 protocol |
||||
mdet_prot_id |
prot_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 protocol |
||||
mobj_prot_id |
prot_id |
No Action |
No Action |
|
Immediate |
a measure can be attached to O or 1 protocol |
||||
mzon_prot_id |
prot_id |
No Action |
No Action |
|
Immediate |
a measurement can be attached to O or 1 protocol |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tr_protocol_prot (
prot_id SERIAL,
prot_fil_id INTEGER NOT NULL,
prot_code VARCHAR(25) NOT NULL,
prot_name VARCHAR(50) NOT NULL,
prot_description VARCHAR(255),
prot_url VARCHAR(255),
CONSTRAINT c_uni_code_prot UNIQUE(prot_code),
CONSTRAINT c_uni_name_prot UNIQUE(prot_name),
CONSTRAINT tr_protocole_prot_pkey PRIMARY KEY(prot_id),
CONSTRAINT c_fk_fil_prot FOREIGN KEY (prot_fil_id)
REFERENCES public.tr_file_fil(fil_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tr_protocol_prot
IS 'Table of protocols referenced in the database';
COMMENT ON COLUMN public.tr_protocol_prot.prot_id
IS 'Automatic numeric identifier of the protocol';
COMMENT ON COLUMN public.tr_protocol_prot.prot_fil_id
IS 'File identifier associated with the protocol';
COMMENT ON COLUMN public.tr_protocol_prot.prot_code
IS 'Unique common code of the protocol';
COMMENT ON COLUMN public.tr_protocol_prot.prot_name
IS 'Unique common name of the protocol';
COMMENT ON COLUMN public.tr_protocol_prot.prot_description
IS 'Brief description of the protocol';
COMMENT ON COLUMN public.tr_protocol_prot.prot_url
IS 'url for accessing the protocol document';
COMMENT ON CONSTRAINT c_uni_code_prot ON public.tr_protocol_prot
IS 'Protocol code must be unique';
COMMENT ON CONSTRAINT c_uni_name_prot ON public.tr_protocol_prot
IS 'Protocol name must be unique';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |