Datadictionary OpenWave 3.1.16
Previous topic Chapter index Next topic

Table: tbkopcompsrthorverg

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Koppelingstabel tussen tbcompartiment en tbsoorthorverg

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

dnkey

serial

 

nextval('tbkopcompsrthorverg_dnkey_seq'::regclass)

Primary key.

 

dnkeycompartiment

integer

 

 

 

 

Foreign Key naar Tbcompartiment.DnKey.

 

dnkeysoorthorverg

integer

 

 

 

 

Foreign Key naar Tbsoorthorverg.DnKey.

 

 

dlinclinspectie

char(1)

 

 

 

'T'::bpchar

T of F. Indien T dan vallen ook de deelzaken inspecties bij de soortzaak in het compartiment

 

 

dlinclfbezwaarberoep

char(1)

 

 

 

'T'::bpchar

T of F. Indien T dan vallen ook de deelzaken bezwaar/beroep bij de soortzaak in het compartiment

 

dvcodedefbehandelaar

char(5)

 

 

 

 

Foreign key naar tbmedewerkers.dvcode voor default behandelaar

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

cfk_kopcomphor_codedemw

dvcodedefbehandelaar

public.tbmedewerkers

dvcode

Set Null

No Action

 

Immediate

 

cfk_kopcompsrthorverg_keycomp

dnkeycompartiment

public.tbcompartiment

dnkey

Cascade

No Action

 

Immediate

 

cfk_kopcompsrthorverg_keysrtho

dnkeysoorthorverg

public.tbsoorthorverg

dnkey

Cascade

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

chk_kopcompsrthorverg_inclbezw

dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])

 

chk_kopcompsrthorverg_inclinsp

dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar])

 

cnn_kopcompsrthorverg_inclbezw

dlinclfbezwaarberoep IS NOT NULL

 

cnn_kopcompsrthorverg_inclinsp

dlinclinspectie IS NOT NULL

 

cnn_kopcompsrthorverg_keycomp

dnkeycompartiment IS NOT NULL

 

cnn_kopcompsrthorverg_keysrtho

dnkeysoorthorverg IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbkopcompsrthorverg

btree

 

dnkey

 

idu_kopcompsrthor_keycompkeyho

btree

 

dnkeycompartiment, dnkeysoorthorverg

 

 

 

Triggers

There are no triggers for table tbkopcompsrthorverg

 

Rules

There are no rules for table tbkopcompsrthorverg

 

Referenced

There are no tables referenced by table tbkopcompsrthorverg

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbkopcompsrthorverg (
 dnkey SERIAL,
 dnkeycompartiment INTEGER,
 dnkeysoorthorverg INTEGER,
 dlinclinspectie CHAR(1) DEFAULT 'T'::bpchar,
 dlinclfbezwaarberoep CHAR(1) DEFAULT 'T'::bpchar,
 dvcodedefbehandelaar CHAR(5),
 CONSTRAINT cpk_tbkopcompsrthorverg PRIMARY KEY(dnkey),
 CONSTRAINT chk_kopcompsrthorverg_inclbezw CHECK (dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT chk_kopcompsrthorverg_inclinsp CHECK (dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT cnn_kopcompsrthorverg_inclbezw CHECK (dlinclfbezwaarberoep IS NOT NULL),
 CONSTRAINT cnn_kopcompsrthorverg_inclinsp CHECK (dlinclinspectie IS NOT NULL),
 CONSTRAINT cnn_kopcompsrthorverg_keycomp CHECK (dnkeycompartiment IS NOT NULL),
 CONSTRAINT cnn_kopcompsrthorverg_keysrtho CHECK (dnkeysoorthorverg IS NOT NULL),
 CONSTRAINT cfk_kopcomphor_codedemw FOREIGN KEY (dvcodedefbehandelaar)
   REFERENCES public.tbmedewerkers(dvcode)
   ON DELETE SET NULL
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrthorverg_keycomp FOREIGN KEY (dnkeycompartiment)
   REFERENCES public.tbcompartiment(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrthorverg_keysrtho FOREIGN KEY (dnkeysoorthorverg)
   REFERENCES public.tbsoorthorverg(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbkopcompsrthorverg
IS 'Koppelingstabel tussen tbcompartiment  en tbsoorthorverg';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dnkey
IS 'Primary key.';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dnkeycompartiment
IS 'Foreign Key naar Tbcompartiment.DnKey.';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dnkeysoorthorverg
IS 'Foreign Key naar Tbsoorthorverg.DnKey.';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dlinclinspectie
IS 'T of F. Indien T dan vallen ook de deelzaken inspecties bij de soortzaak in het compartiment';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dlinclfbezwaarberoep
IS 'T of F. Indien T dan vallen ook de deelzaken bezwaar/beroep bij de soortzaak in het compartiment';

COMMENT ON COLUMN public.tbkopcompsrthorverg.dvcodedefbehandelaar
IS 'Foreign key naar tbmedewerkers.dvcode voor default behandelaar';

CREATE UNIQUE INDEX idu_kopcompsrthor_keycompkeyho ON public.tbkopcompsrthorverg
 USING btree (dnkeycompartiment, dnkeysoorthorverg);

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 19-3-2019 13:43
Previous topic Chapter index Next topic