Datadictionary OpenWave 3.1.16
Previous topic Chapter index Next topic

Table: tbkopcompsrtomgverg

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Koppelingstabel tussen tbcompartiment en tbsoortomgverg

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

dnkey

serial

 

nextval('tbkopcompsrtomgverg_dnkey_seq'::regclass)

Primary key.

 

dnkeycompartiment

integer

 

 

 

 

Foreign Key naar Tbcompartiment.DnKey.

 

dnkeysoortomgverg

integer

 

 

 

 

Foreign Key naar Tbsoortomgverg.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_kopcompomg_codedemw

dvcodedefbehandelaar

public.tbmedewerkers

dvcode

Set Null

No Action

 

Immediate

 

cfk_kopcompsrtomgverg_keycomp

dnkeycompartiment

public.tbcompartiment

dnkey

Cascade

No Action

 

Immediate

 

cfk_kopcompsrtomgverg_keysrtom

dnkeysoortomgverg

public.tbsoortomgverg

dnkey

Cascade

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

chk_kopcompsrtomgverg_inclbezw

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

 

chk_kopcompsrtomgverg_inclinsp

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

 

cnn_kopcompsrtomgverg_inclbezw

dlinclfbezwaarberoep IS NOT NULL

 

cnn_kopcompsrtomgverg_inclinsp

dlinclinspectie IS NOT NULL

 

cnn_kopcompsrtomgverg_keycomp

dnkeycompartiment IS NOT NULL

 

cnn_kopcompsrtomgverg_keysrtom

dnkeysoortomgverg IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbkopcompsrtomgverg

btree

 

dnkey

 

idu_kopcompsrtomg_keycompkeyom

btree

 

dnkeycompartiment, dnkeysoortomgverg

 

 

 

Triggers

There are no triggers for table tbkopcompsrtomgverg

 

Rules

There are no rules for table tbkopcompsrtomgverg

 

Referenced

There are no tables referenced by table tbkopcompsrtomgverg

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbkopcompsrtomgverg (
 dnkey SERIAL,
 dnkeycompartiment INTEGER,
 dnkeysoortomgverg INTEGER,
 dlinclinspectie CHAR(1) DEFAULT 'T'::bpchar,
 dlinclfbezwaarberoep CHAR(1) DEFAULT 'T'::bpchar,
 dvcodedefbehandelaar CHAR(5),
 CONSTRAINT cpk_tbkopcompsrtomgverg PRIMARY KEY(dnkey),
 CONSTRAINT chk_kopcompsrtomgverg_inclbezw CHECK (dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT chk_kopcompsrtomgverg_inclinsp CHECK (dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT cnn_kopcompsrtomgverg_inclbezw CHECK (dlinclfbezwaarberoep IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtomgverg_inclinsp CHECK (dlinclinspectie IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtomgverg_keycomp CHECK (dnkeycompartiment IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtomgverg_keysrtom CHECK (dnkeysoortomgverg IS NOT NULL),
 CONSTRAINT cfk_kopcompomg_codedemw FOREIGN KEY (dvcodedefbehandelaar)
   REFERENCES public.tbmedewerkers(dvcode)
   ON DELETE SET NULL
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrtomgverg_keycomp FOREIGN KEY (dnkeycompartiment)
   REFERENCES public.tbcompartiment(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrtomgverg_keysrtom FOREIGN KEY (dnkeysoortomgverg)
   REFERENCES public.tbsoortomgverg(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbkopcompsrtomgverg
IS 'Koppelingstabel tussen tbcompartiment  en tbsoortomgverg';

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

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

COMMENT ON COLUMN public.tbkopcompsrtomgverg.dnkeysoortomgverg
IS 'Foreign Key naar Tbsoortomgverg.DnKey.';

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

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

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

CREATE UNIQUE INDEX idu_kopcompsrtomg_keycompkeyom ON public.tbkopcompsrtomgverg
 USING btree (dnkeycompartiment, dnkeysoortomgverg);

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