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 |
---|---|---|---|---|---|---|---|---|
romacq_macq_id |
integer |
|
|
|
Automatic numeric identifier of the associated measure |
|||
romacq_ope_id |
integer |
|
|
|
Automatic numeric identifier of the associated operator |
|||
romacq_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 |
---|---|---|---|---|---|---|---|---|
romacq_macq_id |
macq_id |
No Action |
No Action |
|
Immediate |
The rom_macq_id field necessarily corresponds to an existing measure |
||
romacq_ope_id |
ope_id |
No Action |
No Action |
|
Immediate |
The rom_ope_id field necessarily corresponds to an existing operator |
||
romacq_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_macq_romacq
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
romacq_macq_id, romacq_ope_id, romacq_rol_id |
|
|||
btree |
|
romacq_macq_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
romacq_ope_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
romacq_rol_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tj_rol_ope_macq_romacq
Rules
There are no rules for table tj_rol_ope_macq_romacq
Policies
There are no policies for table tj_rol_ope_macq_romacq
Referenced
There are no tables referenced by table tj_rol_ope_macq_romacq
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tj_rol_ope_macq_romacq (
romacq_macq_id INTEGER NOT NULL,
romacq_ope_id INTEGER NOT NULL,
romacq_rol_id INTEGER NOT NULL,
CONSTRAINT tj_rol_ope_macq_romacq_pkey PRIMARY KEY(romacq_macq_id, romacq_ope_id, romacq_rol_id),
CONSTRAINT c_fk_macq_romacq FOREIGN KEY (romacq_macq_id)
REFERENCES public.t_measure_macq(macq_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_ope_romacq FOREIGN KEY (romacq_ope_id)
REFERENCES public.tr_operator_ope(ope_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_rol_romacq FOREIGN KEY (romacq_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_macq_romacq
IS 'Join table associating a measure with an operator and a role for this operator';
COMMENT ON COLUMN public.tj_rol_ope_macq_romacq.romacq_macq_id
IS 'Automatic numeric identifier of the associated measure';
COMMENT ON COLUMN public.tj_rol_ope_macq_romacq.romacq_ope_id
IS 'Automatic numeric identifier of the associated operator';
COMMENT ON COLUMN public.tj_rol_ope_macq_romacq.romacq_rol_id
IS 'Automatic numeric identifier of the associated role';
COMMENT ON CONSTRAINT c_fk_macq_romacq ON public.tj_rol_ope_macq_romacq
IS 'The rom_macq_id field necessarily corresponds to an existing measure';
COMMENT ON CONSTRAINT c_fk_ope_romacq ON public.tj_rol_ope_macq_romacq
IS 'The rom_ope_id field necessarily corresponds to an existing operator';
COMMENT ON CONSTRAINT c_fk_rol_romacq ON public.tj_rol_ope_macq_romacq
IS 'The rom_rol_id field necessarily corresponds to an existing role';
CREATE INDEX x_btr_macq_romacq ON public.tj_rol_ope_macq_romacq
USING btree (romacq_macq_id);
COMMENT ON INDEX public.x_btr_macq_romacq
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_ope_romacq ON public.tj_rol_ope_macq_romacq
USING btree (romacq_ope_id);
COMMENT ON INDEX public.x_btr_ope_romacq
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_rol_romacq ON public.tj_rol_ope_macq_romacq
USING btree (romacq_rol_id);
COMMENT ON INDEX public.x_btr_rol_romacq
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 |