Schema
Owner
woodseer
Tablespace
(default)
Descriptions
Join table associating a measure with an operator and a role for this operator
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
romzon_mzon_id |
integer |
|
|
|
Automatic numeric identifier of the associated measure |
|||
romzon_ope_id |
integer |
|
|
|
Automatic numeric identifier of the associated operator |
|||
romzon_rol_id |
integer |
|
|
|
Automatic numeric identifier of the associated role |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
romzon_mzon_id |
mzon_id |
No Action |
No Action |
|
Immediate |
The rom_mzon_id field necessarily corresponds to an existing measure |
||
romzon_ope_id |
ope_id |
No Action |
No Action |
|
Immediate |
The rom_ope_id field necessarily corresponds to an existing operator |
||
romzon_rol_id |
rol_id |
No Action |
No Action |
|
Immediate |
The rom_rol_id field necessarily corresponds to an existing role |
Check Constraints
There are no check constraints for table tj_rol_ope_mzon_romzon
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
romzon_mzon_id, romzon_ope_id, romzon_rol_id |
|
|||
btree |
|
romzon_mzon_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
romzon_ope_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
romzon_rol_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tj_rol_ope_mzon_romzon
Rules
There are no rules for table tj_rol_ope_mzon_romzon
Policies
There are no policies for table tj_rol_ope_mzon_romzon
Referenced
There are no tables referenced by table tj_rol_ope_mzon_romzon
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tj_rol_ope_mzon_romzon (
romzon_mzon_id INTEGER NOT NULL,
romzon_ope_id INTEGER NOT NULL,
romzon_rol_id INTEGER NOT NULL,
CONSTRAINT tj_rol_ope_mzon_romzon_pkey PRIMARY KEY(romzon_mzon_id, romzon_ope_id, romzon_rol_id),
CONSTRAINT c_fk_mzon_romzon FOREIGN KEY (romzon_mzon_id)
REFERENCES public.t_measure_mzon(mzon_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_ope_romzon FOREIGN KEY (romzon_ope_id)
REFERENCES public.tr_operator_ope(ope_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_rol_romzon FOREIGN KEY (romzon_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_romzon
IS 'Join table associating a measure with an operator and a role for this operator';
COMMENT ON COLUMN public.tj_rol_ope_mzon_romzon.romzon_mzon_id
IS 'Automatic numeric identifier of the associated measure';
COMMENT ON COLUMN public.tj_rol_ope_mzon_romzon.romzon_ope_id
IS 'Automatic numeric identifier of the associated operator';
COMMENT ON COLUMN public.tj_rol_ope_mzon_romzon.romzon_rol_id
IS 'Automatic numeric identifier of the associated role';
COMMENT ON CONSTRAINT c_fk_mzon_romzon ON public.tj_rol_ope_mzon_romzon
IS 'The rom_mzon_id field necessarily corresponds to an existing measure';
COMMENT ON CONSTRAINT c_fk_ope_romzon ON public.tj_rol_ope_mzon_romzon
IS 'The rom_ope_id field necessarily corresponds to an existing operator';
COMMENT ON CONSTRAINT c_fk_rol_romzon ON public.tj_rol_ope_mzon_romzon
IS 'The rom_rol_id field necessarily corresponds to an existing role';
CREATE INDEX x_btr_mzon_romzon ON public.tj_rol_ope_mzon_romzon
USING btree (romzon_mzon_id);
COMMENT ON INDEX public.x_btr_mzon_romzon
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_ope_romzon ON public.tj_rol_ope_mzon_romzon
USING btree (romzon_ope_id);
COMMENT ON INDEX public.x_btr_ope_romzon
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_rol_romzon ON public.tj_rol_ope_mzon_romzon
USING btree (romzon_rol_id);
COMMENT ON INDEX public.x_btr_rol_romzon
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 |