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

Table: t_measure_mobj

 

 

Schema

public

 

Owner

woodseer

 

Tablespace

(default)

 

Descriptions

Table of measurements for objects

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

mobj_id

serial

 

nextval('t_measure_mobj_mobj_id_seq'::regclass)

Digital automatic identifier of the object measurement

 

mobj_obj_id

integer

 

 

 

Identifier of the corresponding singularity detection

 

mobj_var_id

integer

 

 

 

Identifier of the corresponding variable measured

 

mobj_uni_id

integer

 

 

 

 

Identifier of the corresponding unit of the variable measured

 

mobj_fil_id

integer

 

 

 

Identifier of the file in which the measurement has been provided

 

mobj_std_id

integer

 

 

 

 

Identifier of the associated standard to the measurement

 

mobj_tym_id

integer

 

 

 

 

Identifier of the type of measurement

 

mobj_prot_id

integer

 

 

 

 

Identifier of the protocol applied for the measurement

 

 

mobj_value_num

double precision

 

 

 

 

value of the measurement if numeric type

 

 

mobj_value_text

varchar

 

 

 

 

value of the measurement if text type

 

 

mobj_value_date

date

 

 

 

 

value of the measurement if date type

 

 

mobj_date_measure

date

 

 

 

 

date of the measurement

 

 

mobj_precision_date_measure

double precision

 

 

 

 

Accuracy of the date measurement

 

 

mobj_precision_measure

double precision

 

 

 

 

Accuracy of the object measurement

 

 

mobj_observation

varchar(255)

 

 

 

 

Additional information associated with the measurement

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

c_fk_fil_mobj

mobj_fil_id

public.tr_file_fil

fil_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 file

c_fk_obj_mobj

mobj_obj_id

public.t_object_obj

obj_id

No Action

No Action

 

Immediate

a measure must be attached to one and only one object

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

c_fk_std_mobj

mobj_std_id

public.tr_standard_std

std_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 unit

c_fk_tym_mobj

mobj_tym_id

public.tr_type_measure_tym

tym_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 type of measure

c_fk_uni_mobj

mobj_uni_id

public.tr_unit_uni

uni_id

No Action

No Action

 

Immediate

a measure can be attached to O or 1 unit

c_fk_var_mobj

mobj_var_id

public.tr_variable_var

var_id

No Action

No Action

 

Immediate

a measure must be attached to one and only one variable

 

Check Constraints

There are no check constraints for table t_measure_mobj

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

c_uni_obj_var_datemeasure_mobj

btree

 

mobj_obj_id, mobj_var_id, mobj_date_measure

 

The set identifier of the object / identifier of the variable / date of the measure is unique

c_uni_obj_var_mobj

btree

 

mobj_obj_id, mobj_var_id

 

The variable / object pair is unique if the measure date is not entered.

t_measure_mobj_pkey

btree

 

mobj_id

 

x_btr_fkey_fil_mobj

btree

 

mobj_fil_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_obj_mobj

btree

 

mobj_obj_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_prot_mobj

btree

 

mobj_prot_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_std_mobj

btree

 

mobj_std_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_tym_mobj

btree

 

mobj_tym_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_uni_mobj

btree

 

mobj_uni_id

 

 

Foreign key index to speed up updates / deletion

x_btr_fkey_var_mobj

btree

 

mobj_var_id

 

 

Foreign key index to speed up updates / deletion

 

Triggers

There are no triggers for table t_measure_mobj

 

Rules

There are no rules for table t_measure_mobj

 

Policies

There are no policies for table t_measure_mobj

 

Referenced

Table

Schema

Foreign Key

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

tj_rol_ope_mobj_romobj

public

c_fk_mobj_romobj

romobj_mobj_id

public.t_measure_mobj

mobj_id

No Action

No Action

 

Immediate

The rom_mobj_id field necessarily corresponds to an existing measure

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.t_measure_mobj (
 mobj_id SERIAL,
 mobj_obj_id INTEGER NOT NULL,
 mobj_var_id INTEGER NOT NULL,
 mobj_uni_id INTEGER,
 mobj_fil_id INTEGER NOT NULL,
 mobj_std_id INTEGER,
 mobj_tym_id INTEGER,
 mobj_prot_id INTEGER,
 mobj_value_num DOUBLE PRECISION,
 mobj_value_text VARCHAR,
 mobj_value_date DATE,
 mobj_date_measure DATE,
 mobj_precision_date_measure DOUBLE PRECISION,
 mobj_precision_measure DOUBLE PRECISION,
 mobj_observation VARCHAR(255),
 CONSTRAINT c_uni_obj_var_datemeasure_mobj UNIQUE(mobj_obj_id, mobj_var_id, mobj_date_measure),
 CONSTRAINT t_measure_mobj_pkey PRIMARY KEY(mobj_id),
 CONSTRAINT c_fk_fil_mobj FOREIGN KEY (mobj_fil_id)
   REFERENCES public.tr_file_fil(fil_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_obj_mobj FOREIGN KEY (mobj_obj_id)
   REFERENCES public.t_object_obj(obj_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_prot_mobj FOREIGN KEY (mobj_prot_id)
   REFERENCES public.tr_protocol_prot(prot_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_std_mobj FOREIGN KEY (mobj_std_id)
   REFERENCES public.tr_standard_std(std_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_tym_mobj FOREIGN KEY (mobj_tym_id)
   REFERENCES public.tr_type_measure_tym(tym_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_uni_mobj FOREIGN KEY (mobj_uni_id)
   REFERENCES public.tr_unit_uni(uni_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_var_mobj FOREIGN KEY (mobj_var_id)
   REFERENCES public.tr_variable_var(var_id)
   ON DELETE NO ACTION
   ON
UPDATE NO ACTION
   NOT DEFERRABLE

) ;

COMMENT ON TABLE public.t_measure_mobj
IS 'Table of measurements for objects';

COMMENT ON COLUMN public.t_measure_mobj.mobj_id
IS 'Digital automatic identifier of the object measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_obj_id
IS 'Identifier of the corresponding singularity detection';

COMMENT ON COLUMN public.t_measure_mobj.mobj_var_id
IS 'Identifier of the corresponding variable measured';

COMMENT ON COLUMN public.t_measure_mobj.mobj_uni_id
IS 'Identifier of the corresponding unit of the variable measured';

COMMENT ON COLUMN public.t_measure_mobj.mobj_fil_id
IS 'Identifier of the file in which the measurement has been provided';

COMMENT ON COLUMN public.t_measure_mobj.mobj_std_id
IS 'Identifier of the associated standard to the measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_tym_id
IS 'Identifier of the type of measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_prot_id
IS 'Identifier of the protocol applied for the measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_value_num
IS 'value of the measurement if numeric type';

COMMENT ON COLUMN public.t_measure_mobj.mobj_value_text
IS 'value of the measurement if text type';

COMMENT ON COLUMN public.t_measure_mobj.mobj_value_date
IS 'value of the measurement if date type';

COMMENT ON COLUMN public.t_measure_mobj.mobj_date_measure
IS 'date of the measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_precision_date_measure
IS 'Accuracy of the date measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_precision_measure
IS 'Accuracy of the object measurement';

COMMENT ON COLUMN public.t_measure_mobj.mobj_observation
IS 'Additional information associated with the measurement';

COMMENT ON CONSTRAINT c_fk_fil_mobj ON public.t_measure_mobj
IS 'a measure can be attached to O or 1 file';

COMMENT ON CONSTRAINT c_fk_obj_mobj ON public.t_measure_mobj
IS 'a measure must be attached to one and only one object';

COMMENT ON CONSTRAINT c_fk_prot_mobj ON public.t_measure_mobj
IS 'a measure can be attached to O or 1 protocol';

COMMENT ON CONSTRAINT c_fk_std_mobj ON public.t_measure_mobj
IS 'a measure can be attached to O or 1 unit';

COMMENT ON CONSTRAINT c_fk_tym_mobj ON public.t_measure_mobj
IS 'a measure can be attached to O or 1 type of measure';

COMMENT ON CONSTRAINT c_fk_uni_mobj ON public.t_measure_mobj
IS 'a measure can be attached to O or 1 unit';

COMMENT ON CONSTRAINT c_fk_var_mobj ON public.t_measure_mobj
IS 'a measure must be attached to one and only one variable';

COMMENT ON CONSTRAINT c_uni_obj_var_datemeasure_mobj ON public.t_measure_mobj
IS 'The set identifier of the object / identifier of the variable / date of the measure is unique';

CREATE UNIQUE INDEX c_uni_obj_var_mobj ON public.t_measure_mobj
 USING btree (mobj_obj_id, mobj_var_id)
 WHERE (mobj_date_measure IS NULL);

COMMENT ON INDEX public.c_uni_obj_var_mobj
IS 'The variable / object pair is unique if the measure date is not entered.';

CREATE INDEX x_btr_fkey_fil_mobj ON public.t_measure_mobj
 USING btree (mobj_fil_id);

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

CREATE INDEX x_btr_fkey_obj_mobj ON public.t_measure_mobj
 USING btree (mobj_obj_id);

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

CREATE INDEX x_btr_fkey_prot_mobj ON public.t_measure_mobj
 USING btree (mobj_prot_id);

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

CREATE INDEX x_btr_fkey_std_mobj ON public.t_measure_mobj
 USING btree (mobj_std_id);

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

CREATE INDEX x_btr_fkey_tym_mobj ON public.t_measure_mobj
 USING btree (mobj_tym_id);

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

CREATE INDEX x_btr_fkey_uni_mobj ON public.t_measure_mobj
 USING btree (mobj_uni_id);

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

CREATE INDEX x_btr_fkey_var_mobj ON public.t_measure_mobj
 USING btree (mobj_var_id);

COMMENT ON INDEX public.x_btr_fkey_var_mobj
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