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

Table: tr_protocol_prot

 

 

Schema

public

 

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

c_fk_fil_prot

prot_fil_id

public.tr_file_fil

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

c_uni_code_prot

btree

 

prot_code

 

Protocol code must be unique

c_uni_name_prot

btree

 

prot_name

 

Protocol name must be unique

tr_protocole_prot_pkey

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

t_acquisition_acq

public

c_fk_prot_acq

acq_prot_id

public.tr_protocol_prot

prot_id

No Action

No Action

 

Immediate

an acquisition can be associated to one protocol

t_measure_macq

public

c_fk_prot_macq

macq_prot_id

public.tr_protocol_prot

prot_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 protocol

t_measure_mdet

public

c_fk_prot_mdet

mdet_prot_id

public.tr_protocol_prot

prot_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 protocol

t_measure_mobj

public

c_fk_prot_mobj

mobj_prot_id

public.tr_protocol_prot

prot_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 protocol

t_measure_mzon

public

c_fk_prot_mzon

mzon_prot_id

public.tr_protocol_prot

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
Previous topic Chapter index Next topic