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 |
---|---|---|---|---|---|---|---|---|
gms_msam_id |
integer |
|
|
|
Automatic numeric identifier of the associated measure |
|||
gms_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 |
---|---|---|---|---|---|---|---|---|
gms_grp_id |
grp_id |
No Action |
No Action |
|
Immediate |
The gms_grp_id field necessarily corresponds to an existing grouping |
||
gms_msam_id |
msam_id |
No Action |
No Action |
|
Immediate |
The gms_msam_id field necessarily corresponds to an existing measure |
Check Constraints
There are no check constraints for table tj_grp_msam_gms
Indices
Name | Type | Function | Columns | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
gms_msam_id, gms_grp_id |
|
|||
btree |
|
gms_grp_id |
|
|
Foreign key index to speed up updates / deletion |
|
btree |
|
gms_msam_id |
|
|
Foreign key index to speed up updates / deletion |
Triggers
There are no triggers for table tj_grp_msam_gms
Rules
There are no rules for table tj_grp_msam_gms
Policies
There are no policies for table tj_grp_msam_gms
Referenced
There are no tables referenced by table tj_grp_msam_gms
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
-1 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tj_grp_msam_gms (
gms_msam_id INTEGER NOT NULL,
gms_grp_id INTEGER NOT NULL,
CONSTRAINT tj_grp_msam_gms_pkey PRIMARY KEY(gms_msam_id, gms_grp_id),
CONSTRAINT c_fk_grp_gms FOREIGN KEY (gms_grp_id)
REFERENCES public.t_grouping_grp(grp_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT c_fk_msam_gms FOREIGN KEY (gms_msam_id)
REFERENCES public.t_measure_msam(msam_id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tj_grp_msam_gms
IS 'Join table associating a measure with a grouping.';
COMMENT ON COLUMN public.tj_grp_msam_gms.gms_msam_id
IS 'Automatic numeric identifier of the associated measure';
COMMENT ON COLUMN public.tj_grp_msam_gms.gms_grp_id
IS 'Automatic numeric identifier of the associated grouping';
COMMENT ON CONSTRAINT c_fk_grp_gms ON public.tj_grp_msam_gms
IS 'The gms_grp_id field necessarily corresponds to an existing grouping';
COMMENT ON CONSTRAINT c_fk_msam_gms ON public.tj_grp_msam_gms
IS 'The gms_msam_id field necessarily corresponds to an existing measure';
CREATE INDEX x_btr_grp_gms ON public.tj_grp_msam_gms
USING btree (gms_grp_id);
COMMENT ON INDEX public.x_btr_grp_gms
IS 'Foreign key index to speed up updates / deletion';
CREATE INDEX x_btr_msam_gms ON public.tj_grp_msam_gms
USING btree (gms_msam_id);
COMMENT ON INDEX public.x_btr_msam_gms
IS 'Foreign key index to speed up updates / deletion';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |