db_globoxylo
Previous topic Chapter index Next topic

Table: tj_rol_ope_mzon_roz

 

 

Schema

public

 

Owner

postgres

 

Tablespace

(default)

 

Descriptions

Join table associating a measure with an operator and a role for this operator

 

Columns

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

roz_mzon_id

integer

 

 

 

Unique numeric identifier of the associated measurement

roz_ope_id

integer

 

 

 

Numerical automatic identifier of the associated operator

roz_rol_id

integer

 

 

 

Numeric automatic identifier of the associated role

 

Foreign Keys

Name

Columns

FK Table

FK Columns

Delete Action

Update Action

Deferrable

Check Time

Description

c_fk_mzon_roz

roz_mzon_id

public.t_measure_mzon

mzon_id

No Action

No Action

 

Immediate

The roz_mzon_id field necessarily corresponds to an existing measurement

c_fk_ope_roz

roz_ope_id

public.tr_operator_ope

ope_id

No Action

No Action

 

Immediate

The roz_ope_id field necessarily corresponds to an existing operator

c_fk_rol_roz

roz_rol_id

public.tr_role_rol

rol_id

No Action

No Action

 

Immediate

The roz_rol_id field must correspond to an existing role

 

Check Constraints

There are no check constraints for table tj_rol_ope_mzon_roz

 

Indices

Name

Type

Function

Columns

Primary Key

Unique

Description

tj_rol_ope_mzon_roz_pkey

btree

 

roz_mzon_id, roz_ope_id, roz_rol_id

 

x_btr_mzon_roz

btree

 

roz_mzon_id

 

 

Foreign key index to speed up updates / deletion

x_btr_ope_roz

btree

 

roz_ope_id

 

 

Foreign key index to speed up updates / deletion

x_btr_rol_roz

btree

 

roz_rol_id

 

 

Foreign key index to speed up updates / deletion

 

Triggers

There are no triggers for table tj_rol_ope_mzon_roz

 

Rules

There are no rules for table tj_rol_ope_mzon_roz

 

Policies

There are no policies for table tj_rol_ope_mzon_roz

 

Referenced

There are no tables referenced by table tj_rol_ope_mzon_roz

 

Properties

Property

Value

Inherited From

 

Rows

-1

Pages

0

System

 

Temporary

 

With OID

 

Definition

CREATE TABLE public.tj_rol_ope_mzon_roz (
 roz_mzon_id INTEGER NOT NULL,
 roz_ope_id INTEGER NOT NULL,
 roz_rol_id INTEGER NOT NULL,
 CONSTRAINT tj_rol_ope_mzon_roz_pkey PRIMARY KEY(roz_mzon_id, roz_ope_id, roz_rol_id),
 CONSTRAINT c_fk_mzon_roz FOREIGN KEY (roz_mzon_id)
   REFERENCES public.t_measure_mzon(mzon_id)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_ope_roz FOREIGN KEY (roz_ope_id)
   REFERENCES public.tr_operator_ope(ope_id)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT c_fk_rol_roz FOREIGN KEY (roz_rol_id)
   REFERENCES public.tr_role_rol(rol_id)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE

) ;

COMMENT ON TABLE public.tj_rol_ope_mzon_roz
IS 'Join table associating a measure with an operator and a role for this operator';

COMMENT ON COLUMN public.tj_rol_ope_mzon_roz.roz_mzon_id
IS 'Unique numeric identifier of the associated measurement';

COMMENT ON COLUMN public.tj_rol_ope_mzon_roz.roz_ope_id
IS 'Numerical automatic identifier of the associated operator';

COMMENT ON COLUMN public.tj_rol_ope_mzon_roz.roz_rol_id
IS 'Numeric automatic identifier of the associated role';

COMMENT ON CONSTRAINT c_fk_mzon_roz ON public.tj_rol_ope_mzon_roz
IS 'The roz_mzon_id field necessarily corresponds to an existing measurement';

COMMENT ON CONSTRAINT c_fk_ope_roz ON public.tj_rol_ope_mzon_roz
IS 'The roz_ope_id field necessarily corresponds to an existing operator';

COMMENT ON CONSTRAINT c_fk_rol_roz ON public.tj_rol_ope_mzon_roz
IS 'The roz_rol_id field must correspond to an existing role';

CREATE INDEX x_btr_mzon_roz ON public.tj_rol_ope_mzon_roz
 USING btree (roz_mzon_id);

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

CREATE INDEX x_btr_ope_roz ON public.tj_rol_ope_mzon_roz
 USING btree (roz_ope_id);

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

CREATE INDEX x_btr_rol_roz ON public.tj_rol_ope_mzon_roz
 USING btree (roz_rol_id);

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

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com)
Previous topic Chapter index Next topic