Schema
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 |
---|---|---|---|---|---|---|---|---|
rot_mtre_id |
integer |
|
|
|
Automatic numeric identifier of the associated measure |
|||
rot_ope_id |
integer |
|
|
|
Automatic numeric identifier of the associated operator |
|||
rot_rol_id |
integer |
|
|
|
Automatic numeric identifier of the associated role |
Foreign Keys
Name | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
rot_mtre_id |
mtre_id |
No Action |
No Action |
|
Immediate |
The rot_mtre_id field necessarily corresponds to an existing measure |
||
rot_ope_id |
ope_id |
No Action |
No Action |
|
Immediate |
The rot_ope_id field necessarily corresponds to an existing operator |
||
rot_rol_id |
rol_id |
No Action |
No Action |
|
Immediate |
The rot_rol_id field necessarily corresponds to an existing role |
Check Constraints
There are no check constraints for table tj_rol_ope_mtre_rot
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
rot_mtre_id, rot_ope_id, rot_rol_id |
|
|||
btree |
|
rot_mtre_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
rot_ope_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
rot_rol_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tj_rol_ope_mtre_rot
Rules
There are no rules for table tj_rol_ope_mtre_rot
Policies
There are no policies for table tj_rol_ope_mtre_rot
Referenced
There are no tables referenced by table tj_rol_ope_mtre_rot
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
-1 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tj_rol_ope_mtre_rot (
rot_mtre_id INTEGER NOT NULL,
rot_ope_id INTEGER NOT NULL,
rot_rol_id INTEGER NOT NULL,
CONSTRAINT tj_rol_ope_mtre_rot_pkey PRIMARY KEY(rot_mtre_id, rot_ope_id, rot_rol_id),
CONSTRAINT c_fk_mtre_rot FOREIGN KEY (rot_mtre_id)
REFERENCES public.t_measure_mtre(mtre_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_ope_rot FOREIGN KEY (rot_ope_id)
REFERENCES public.tr_operator_ope(ope_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_rol_rot FOREIGN KEY (rot_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_mtre_rot
IS 'Join table associating a measure with an operator and a role for this operator';
COMMENT ON COLUMN public.tj_rol_ope_mtre_rot.rot_mtre_id
IS 'Automatic numeric identifier of the associated measure';
COMMENT ON COLUMN public.tj_rol_ope_mtre_rot.rot_ope_id
IS 'Automatic numeric identifier of the associated operator';
COMMENT ON COLUMN public.tj_rol_ope_mtre_rot.rot_rol_id
IS 'Automatic numeric identifier of the associated role';
COMMENT ON CONSTRAINT c_fk_mtre_rot ON public.tj_rol_ope_mtre_rot
IS 'The rot_mtre_id field necessarily corresponds to an existing measure';
COMMENT ON CONSTRAINT c_fk_ope_rot ON public.tj_rol_ope_mtre_rot
IS 'The rot_ope_id field necessarily corresponds to an existing operator';
COMMENT ON CONSTRAINT c_fk_rol_rot ON public.tj_rol_ope_mtre_rot
IS 'The rot_rol_id field necessarily corresponds to an existing role';
CREATE INDEX x_btr_mtre_rot ON public.tj_rol_ope_mtre_rot
USING btree (rot_mtre_id);
COMMENT ON INDEX public.x_btr_mtre_rot
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_ope_rot ON public.tj_rol_ope_mtre_rot
USING btree (rot_ope_id);
COMMENT ON INDEX public.x_btr_ope_rot
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_rol_rot ON public.tj_rol_ope_mtre_rot
USING btree (rot_rol_id);
COMMENT ON INDEX public.x_btr_rol_rot
IS 'Foreign key index to speed up updates / deletion';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |