Datadictionary OpenWave 3.1.16
Previous topic Chapter index Next topic

Table: tbkopcompsrtbwvverg

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Koppelingstabel tussen tbcompartiment en tbsoortplan (oude bouwsloop zaaktypes)

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

dnkey

serial

 

nextval('tbkopcompsrtbwvverg_dnkey_seq'::regclass)

Primary key.

 

dnkeycompartiment

integer

 

 

 

 

Foreign Key naar Tbcompartiment.DnKey.

 

dnkeysoortplan

integer

 

 

 

 

Foreign Key naar Tbsoortplan.DnKey (oude bouwsloopzaken).

 

 

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_kopcompbwv_codedemw

dvcodedefbehandelaar

public.tbmedewerkers

dvcode

Set Null

No Action

 

Immediate

 

cfk_kopcompsrtbwvverg_keycomp

dnkeycompartiment

public.tbcompartiment

dnkey

Cascade

No Action

 

Immediate

 

cfk_kopcompsrtbwvverg_keysrtbv

dnkeysoortplan

public.tbsoortplan

dnkey

Cascade

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

chk_kopcompsrtbwvverg_inclbezw

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

 

chk_kopcompsrtbwvverg_inclinsp

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

 

cnn_kopcompsrtbwvverg_inclbezw

dlinclfbezwaarberoep IS NOT NULL

 

cnn_kopcompsrtbwvverg_inclinsp

dlinclinspectie IS NOT NULL

 

cnn_kopcompsrtbwvverg_keycomp

dnkeycompartiment IS NOT NULL

 

cnn_kopcompsrtbwvverg_keysrtbv

dnkeysoortplan IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbkopcompsrtbwvverg

btree

 

dnkey

 

idu_kopcompsrtbv_keycompkeybv

btree

 

dnkeycompartiment, dnkeysoortplan

 

 

 

Triggers

There are no triggers for table tbkopcompsrtbwvverg

 

Rules

There are no rules for table tbkopcompsrtbwvverg

 

Referenced

There are no tables referenced by table tbkopcompsrtbwvverg

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbkopcompsrtbwvverg (
 dnkey SERIAL,
 dnkeycompartiment INTEGER,
 dnkeysoortplan INTEGER,
 dlinclinspectie CHAR(1) DEFAULT 'T'::bpchar,
 dlinclfbezwaarberoep CHAR(1) DEFAULT 'T'::bpchar,
 dvcodedefbehandelaar CHAR(5),
 CONSTRAINT cpk_tbkopcompsrtbwvverg PRIMARY KEY(dnkey),
 CONSTRAINT chk_kopcompsrtbwvverg_inclbezw CHECK (dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT chk_kopcompsrtbwvverg_inclinsp CHECK (dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
 CONSTRAINT cnn_kopcompsrtbwvverg_inclbezw CHECK (dlinclfbezwaarberoep IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtbwvverg_inclinsp CHECK (dlinclinspectie IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtbwvverg_keycomp CHECK (dnkeycompartiment IS NOT NULL),
 CONSTRAINT cnn_kopcompsrtbwvverg_keysrtbv CHECK (dnkeysoortplan IS NOT NULL),
 CONSTRAINT cfk_kopcompbwv_codedemw FOREIGN KEY (dvcodedefbehandelaar)
   REFERENCES public.tbmedewerkers(dvcode)
   ON DELETE SET NULL
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrtbwvverg_keycomp FOREIGN KEY (dnkeycompartiment)
   REFERENCES public.tbcompartiment(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_kopcompsrtbwvverg_keysrtbv FOREIGN KEY (dnkeysoortplan)
   REFERENCES public.tbsoortplan(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbkopcompsrtbwvverg
IS 'Koppelingstabel tussen tbcompartiment  en tbsoortplan (oude bouwsloop zaaktypes)';

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

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

COMMENT ON COLUMN public.tbkopcompsrtbwvverg.dnkeysoortplan
IS 'Foreign Key naar Tbsoortplan.DnKey (oude bouwsloopzaken).';

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

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

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

CREATE UNIQUE INDEX idu_kopcompsrtbv_keycompkeybv ON public.tbkopcompsrtbwvverg
 USING btree (dnkeycompartiment, dnkeysoortplan);

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