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

Table: t_acquisition_acq

 

 

Schema

public

 

Owner

woodseer

 

Tablespace

(default)

 

Descriptions

Table of acquisitions (images, cloud of plots, ...)

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

acq_id

serial

 

nextval('t_acquisition_acq_acq_id_seq'::regclass)

automatic numeric identifier of the acquisition

 

acq_obj_id

integer

 

 

 

Identifier of the object corresponding to the acquisition

 

acq_adm_id

integer

 

 

 

 

Identifier of the acquisition mean used

 

acq_prot_id

integer

 

 

 

 

Identifier of the protocol used for the acquisition

 

acq_fil_id

integer

 

 

 

Identifier of the file corresponding to the acquisition

 

 

acq_date

date

 

 

 

Date of the acquisition

 

 

acq_observation

varchar(255)

 

 

 

 

Additional information about the acquisition

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

c_fk_adm_acq

acq_adm_id

public.tr_acquisition_detection_mean_adm

adm_id

No Action

No Action

 

Immediate

an acquisition can be associated to one mean of acquisition

c_fk_fil_acq

acq_fil_id

public.tr_file_fil

fil_id

No Action

No Action

 

Immediate

an acquisition must be associated to one source file

c_fk_obj_acq

acq_obj_id

public.t_object_obj

obj_id

No Action

No Action

 

Immediate

an acquisition must be associated to one and only one object

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

 

Check Constraints

There are no check constraints for table t_acquisition_acq

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

c_uni_obj_fil_acq

btree

 

acq_obj_id, acq_fil_id

 

The couple acq_obj_id and acq_fil_id is unique

t_acquisition_acq_pkey

btree

 

acq_id

 

x_btr_fkey_adm_acq

btree

 

acq_adm_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_fil_acq

btree

 

acq_fil_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_obj_acq

btree

 

acq_obj_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_prot_acq

btree

 

acq_prot_id

 

 

Foreign key index to speed up updates / deletion

 

Triggers

There are no triggers for table t_acquisition_acq

 

Rules

There are no rules for table t_acquisition_acq

 

Policies

There are no policies for table t_acquisition_acq

 

Referenced

Table

Schema

Foreign Key

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

t_detection_singularity_det

public

c_fk_acq_det

det_acq_id

public.t_acquisition_acq

acq_id

No Action

No Action

 

Immediate

a singularity detection is associated to one and only one acquisition

t_measure_macq

public

c_fk_acq_macq

macq_acq_id

public.t_acquisition_acq

acq_id

No Action

No Action

 

Immediate

a measure must be attached to one and only one acquisition

tj_transformation_matrix_tra

public

c_fk_acq_source_tra

tra_acq_id_source

public.t_acquisition_acq

acq_id

No Action

No Action

 

Immediate

Identifier of the source acquisition of the transformation is required

tj_transformation_matrix_tra

public

c_fk_acq_target_tra

tra_acq_id_target

public.t_acquisition_acq

acq_id

No Action

No Action

 

Immediate

identifier of the target acquisition of the transformation is required

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.t_acquisition_acq (
 acq_id SERIAL,
 acq_obj_id INTEGER NOT NULL,
 acq_adm_id INTEGER,
 acq_prot_id INTEGER,
 acq_fil_id INTEGER NOT NULL,
 acq_date DATE NOT NULL,
 acq_observation VARCHAR(255),
 CONSTRAINT c_uni_obj_fil_acq UNIQUE(acq_obj_id, acq_fil_id),
 CONSTRAINT t_acquisition_acq_pkey PRIMARY KEY(acq_id),
 CONSTRAINT c_fk_adm_acq FOREIGN KEY (acq_adm_id)
   REFERENCES public.tr_acquisition_detection_mean_adm(adm_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_fil_acq FOREIGN KEY (acq_fil_id)
   REFERENCES public.tr_file_fil(fil_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_obj_acq FOREIGN KEY (acq_obj_id)
   REFERENCES public.t_object_obj(obj_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_prot_acq FOREIGN KEY (acq_prot_id)
   REFERENCES public.tr_protocol_prot(prot_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE

) ;

COMMENT ON TABLE public.t_acquisition_acq
IS 'Table of acquisitions (images, cloud of plots, ...)';

COMMENT ON COLUMN public.t_acquisition_acq.acq_id
IS 'automatic numeric identifier of the acquisition';

COMMENT ON COLUMN public.t_acquisition_acq.acq_obj_id
IS 'Identifier of the object corresponding to the acquisition';

COMMENT ON COLUMN public.t_acquisition_acq.acq_adm_id
IS 'Identifier of the acquisition mean used';

COMMENT ON COLUMN public.t_acquisition_acq.acq_prot_id
IS 'Identifier of the protocol used for the acquisition';

COMMENT ON COLUMN public.t_acquisition_acq.acq_fil_id
IS 'Identifier of the file corresponding to the acquisition';

COMMENT ON COLUMN public.t_acquisition_acq.acq_date
IS 'Date of the acquisition';

COMMENT ON COLUMN public.t_acquisition_acq.acq_observation
IS 'Additional information about the acquisition';

COMMENT ON CONSTRAINT c_fk_adm_acq ON public.t_acquisition_acq
IS 'an acquisition can be associated to one mean of acquisition';

COMMENT ON CONSTRAINT c_fk_fil_acq ON public.t_acquisition_acq
IS 'an acquisition must be associated to one source file';

COMMENT ON CONSTRAINT c_fk_obj_acq ON public.t_acquisition_acq
IS 'an acquisition must be associated to one and only one object';

COMMENT ON CONSTRAINT c_fk_prot_acq ON public.t_acquisition_acq
IS 'an acquisition can be associated to one protocol';

COMMENT ON CONSTRAINT c_uni_obj_fil_acq ON public.t_acquisition_acq
IS 'The couple acq_obj_id and acq_fil_id is unique';

CREATE INDEX x_btr_fkey_adm_acq ON public.t_acquisition_acq
 USING btree (acq_adm_id);

COMMENT ON INDEX public.x_btr_fkey_adm_acq
IS 'Foreign key index to speed up updates / deletion';

CREATE INDEX x_btr_fkey_fil_acq ON public.t_acquisition_acq
 USING btree (acq_fil_id);

COMMENT ON INDEX public.x_btr_fkey_fil_acq
IS 'Foreign key index to speed up updates / deletion';

CREATE INDEX x_btr_fkey_obj_acq ON public.t_acquisition_acq
 USING btree (acq_obj_id);

COMMENT ON INDEX public.x_btr_fkey_obj_acq
IS 'Foreign key index to speed up updates / deletion';

CREATE INDEX x_btr_fkey_prot_acq ON public.t_acquisition_acq
 USING btree (acq_prot_id);

COMMENT ON INDEX public.x_btr_fkey_prot_acq
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
Previous topic Chapter index Next topic