Datadictionary OpenWave 3.1.11
Previous topic Chapter index Next topic

Table: tbkoptoestadv

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Koppelingstabel tussen soorten omgevingsvergunning-activiteten (tbsrttoestemmingen), soorten omgevingsvergunningen (tbsrtomgverg) en adviesinstanties (tbadviesinstanties)

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

dnkeysrttoest

integer

 

 

 

Foreign key naar Tbsrttoestemming.dnkey Primary key tezamen met de twee andere foreign keys.

dvcodeadviesinst

char(4)

 

 

 

Foreign key naar Tbadviesinstanties.dnkey Primary key tezamen met de twee andere foreign keys.

dnkeysoortomg

integer

 

 

 

Foreign key naar TbSoortOmgVerg.dnkey Primary key tezamen met de twee andere foreign keys.

 

 

dvontvankelijkheidsfase

char(1)

 

 

 

'N'::bpchar

Alleen de letters (N)iet aanmaken (A)utomatisch of na (B)evestiging. Deze kolom wordt niet gebruikt.

 

 

dvbehandelfase

char(1)

 

 

 

'N'::bpchar

Alleen de letters (N)iet aanmaken (A)utomatisch of na (B)evestiging. Indien een vergunningaanvraag automatisch wordt aangemaakt (vanuit LVO) dan wordt de letter B ook als automatisch geinterpreteerd.

 

 

dnbehrappel

integer

 

 

 

0

Aantal dagen, weken, maanden dat bij de behandelfase als rappelperiode geldt.

 

 

dvbeheenheid

char(1)

 

 

 

'D'::bpchar

Eenheid waarin de rappelperiode uitgedrukt wordt. Alleen de letters A,D,W of M zijn toegestaan. Zijn staan voor respectievelijk Arbeidsdagen, Dagen, Weken, Maanden.

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

cfk_tbkoptoestadv_codeadvies

dvcodeadviesinst

public.tbadviesinstanties

dvcode

No Action

No Action

 

Immediate

 

cfk_tbkoptoestadv_keysoortomg

dnkeysoortomg

public.tbsoortomgverg

dnkey

No Action

No Action

 

Immediate

 

cfk_tbkoptoestadv_keysrttoest

dnkeysrttoest

public.tbsrttoestemming

dnkey

No Action

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

chk_koptoestadv_dlbomgverzledt

dvbeheenheid = ANY (ARRAY['A'::bpchar, 'D'::bpchar, 'W'::bpchar, 'M'::bpchar])

 

chk_tbkoptoestadv_behandelfase

dvbehandelfase = ANY (ARRAY['N'::bpchar, 'A'::bpchar, 'B'::bpchar])

 

chk_tbkoptoestadv_ontvankfase

dvontvankelijkheidsfase = ANY (ARRAY['N'::bpchar, 'A'::bpchar, 'B'::bpchar])

 

cnn_koptoestadv_dnbehrappel

dnbehrappel IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbkoptoestadv

btree

 

dnkeysrttoest, dvcodeadviesinst, dnkeysoortomg

 

 

Triggers

There are no triggers for table tbkoptoestadv

 

Rules

There are no rules for table tbkoptoestadv

 

Referenced

There are no tables referenced by table tbkoptoestadv

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbkoptoestadv (
 dnkeysrttoest INTEGER NOT NULL,
 dvcodeadviesinst CHAR(4) NOT NULL,
 dnkeysoortomg INTEGER NOT NULL,
 dvontvankelijkheidsfase CHAR(1) DEFAULT 'N'::bpchar,
 dvbehandelfase CHAR(1) DEFAULT 'N'::bpchar,
 dnbehrappel INTEGER DEFAULT 0,
 dvbeheenheid CHAR(1) DEFAULT 'D'::bpchar,
 CONSTRAINT cpk_tbkoptoestadv PRIMARY KEY(dnkeysrttoest, dvcodeadviesinst, dnkeysoortomg),
 CONSTRAINT chk_koptoestadv_dlbomgverzledt CHECK (dvbeheenheid = ANY (ARRAY['A'::bpchar, 'D'::bpchar, 'W'::bpchar, 'M'::bpchar])),
 CONSTRAINT chk_tbkoptoestadv_behandelfase CHECK (dvbehandelfase = ANY (ARRAY['N'::bpchar, 'A'::bpchar, 'B'::bpchar])),
 CONSTRAINT chk_tbkoptoestadv_ontvankfase CHECK (dvontvankelijkheidsfase = ANY (ARRAY['N'::bpchar, 'A'::bpchar, 'B'::bpchar])),
 CONSTRAINT cnn_koptoestadv_dnbehrappel CHECK (dnbehrappel IS NOT NULL),
 CONSTRAINT cfk_tbkoptoestadv_codeadvies FOREIGN KEY (dvcodeadviesinst)
   REFERENCES public.tbadviesinstanties(dvcode)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbkoptoestadv_keysoortomg FOREIGN KEY (dnkeysoortomg)
   REFERENCES public.tbsoortomgverg(dnkey)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbkoptoestadv_keysrttoest FOREIGN KEY (dnkeysrttoest)
   REFERENCES public.tbsrttoestemming(dnkey)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbkoptoestadv
IS 'Koppelingstabel tussen soorten omgevingsvergunning-activiteten (tbsrttoestemmingen), soorten omgevingsvergunningen (tbsrtomgverg) en adviesinstanties (tbadviesinstanties)';

COMMENT ON COLUMN public.tbkoptoestadv.dnkeysrttoest
IS 'Foreign key naar Tbsrttoestemming.dnkey Primary key tezamen  met de twee andere foreign keys.';

COMMENT ON COLUMN public.tbkoptoestadv.dvcodeadviesinst
IS 'Foreign key naar Tbadviesinstanties.dnkey Primary key tezamen  met de twee andere foreign keys.';

COMMENT ON COLUMN public.tbkoptoestadv.dnkeysoortomg
IS 'Foreign key naar TbSoortOmgVerg.dnkey Primary key tezamen  met de twee andere foreign keys.';

COMMENT ON COLUMN public.tbkoptoestadv.dvontvankelijkheidsfase
IS 'Alleen de letters (N)iet aanmaken (A)utomatisch of na (B)evestiging. Deze kolom wordt niet gebruikt.';

COMMENT ON COLUMN public.tbkoptoestadv.dvbehandelfase
IS 'Alleen de letters (N)iet aanmaken (A)utomatisch of na (B)evestiging. Indien een vergunningaanvraag automatisch wordt aangemaakt (vanuit LVO) dan wordt de letter B ook als automatisch geinterpreteerd.';

COMMENT ON COLUMN public.tbkoptoestadv.dnbehrappel
IS 'Aantal dagen, weken, maanden  dat bij de behandelfase als rappelperiode geldt.';

COMMENT ON COLUMN public.tbkoptoestadv.dvbeheenheid
IS 'Eenheid waarin de rappelperiode uitgedrukt wordt. Alleen de letters A,D,W of M zijn toegestaan. Zijn staan voor respectievelijk Arbeidsdagen, Dagen, Weken, Maanden.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 22-2-2017 10:50
Previous topic Chapter index Next topic