Schema
Owner
postgres
Tablespace
(default)
Descriptions
Join table associating a measure with a grouping.
Columns
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
gmt_mtre_id |
integer |
|
|
|
Automatic numeric identifier of the associated measure |
|||
gmt_grp_id |
integer |
|
|
|
Automatic numeric identifier of the associated grouping |
Foreign Keys
Name | Columns | FK Table | FK Columns | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
gmt_grp_id |
grp_id |
No Action |
No Action |
|
Immediate |
The gmt_grp_id field necessarily corresponds to an existing grouping |
||
gmt_mtre_id |
mtre_id |
No Action |
No Action |
|
Immediate |
The gmt_mtre_id field necessarily corresponds to an existing measure |
Check Constraints
There are no check constraints for table tj_grp_mtre_gmt
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
gmt_mtre_id, gmt_grp_id |
|
|||
btree |
|
gmt_grp_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
gmt_mtre_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tj_grp_mtre_gmt
Rules
There are no rules for table tj_grp_mtre_gmt
Policies
There are no policies for table tj_grp_mtre_gmt
Referenced
There are no tables referenced by table tj_grp_mtre_gmt
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
-1 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tj_grp_mtre_gmt (
gmt_mtre_id INTEGER NOT NULL,
gmt_grp_id INTEGER NOT NULL,
CONSTRAINT tj_grp_mtre_gmt_pkey PRIMARY KEY(gmt_mtre_id, gmt_grp_id),
CONSTRAINT c_fk_grp_gmt FOREIGN KEY (gmt_grp_id)
REFERENCES public.t_grouping_grp(grp_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_mtre_gmt FOREIGN KEY (gmt_mtre_id)
REFERENCES public.t_measure_mtre(mtre_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tj_grp_mtre_gmt
IS 'Join table associating a measure with a grouping.';
COMMENT ON COLUMN public.tj_grp_mtre_gmt.gmt_mtre_id
IS 'Automatic numeric identifier of the associated measure';
COMMENT ON COLUMN public.tj_grp_mtre_gmt.gmt_grp_id
IS 'Automatic numeric identifier of the associated grouping';
COMMENT ON CONSTRAINT c_fk_grp_gmt ON public.tj_grp_mtre_gmt
IS 'The gmt_grp_id field necessarily corresponds to an existing grouping';
COMMENT ON CONSTRAINT c_fk_mtre_gmt ON public.tj_grp_mtre_gmt
IS 'The gmt_mtre_id field necessarily corresponds to an existing measure';
CREATE INDEX x_btr_grp_gmt ON public.tj_grp_mtre_gmt
USING btree (gmt_grp_id);
COMMENT ON INDEX public.x_btr_grp_gmt
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_mtre_gmt ON public.tj_grp_mtre_gmt
USING btree (gmt_mtre_id);
COMMENT ON INDEX public.x_btr_mtre_gmt
IS 'Foreign key index to speed up updates / deletion';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |