Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Koppelingstabel tussen tbcompartiment en tbsoorthhzaak (zaaktypes handhaving)
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbkopcompsrthhzaak_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeycompartiment |
integer |
|
|
|
|
Foreign Key naar Tbcompartiment.DnKey. |
|
|
dnkeysoorthhzaak |
integer |
|
|
|
|
Foreign Key naar Tbsoorthhzaak.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 |
|
|
|
dvdmszaaktype |
varchar(40) |
|
|
|
|
Zaaktype in het DMS van het compartiment voor de betreffende zaak |
|
|
dlnaardms |
char(1) |
|
|
|
'F'::bpchar |
T of F. Indien T dan moet er een zaak aangemaakt worden in het dms van het betreffende compartiment |
|
dvcodeinspecteur |
char(5) |
|
|
|
|
foreign key naar tbmedewerkers met de dvcode van de inspecteur op wiens naam automatisch een inspectietraject moet worden aangemaakt bij afsluiten van handhavingzaak door comaprtiment indien het comapetiment zelf geen inspecties doet |
|
|
dnkeyaanleiding |
integer |
|
|
|
|
foreign key naar tbinspaanleiing met de dnkey van de aanleiding waarmee automatisch een inspectietraject moet worden aangemaakt bij afsluiten van handhavingzaak door comaprtiment indien het compartiment zelf geen inspecties doet |
|
|
dnkeyteamsdefverantw |
integer |
|
|
|
|
Foreign key naar tbteams.dnkey. Default zaakverantwoordelijk team |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_kopcmpsrthh_keyteamdefver |
dnkeyteamsdefverantw |
dnkey |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcomphh_codedemw |
dvcodedefbehandelaar |
dvcode |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcompsrthhz_codeinsp |
dvcodeinspecteur |
dvcode |
No Action |
No Action |
|
Immediate |
|
|
cfk_kopcompsrthhz_keyinspaanl |
dnkeyaanleiding |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_kopcompsrthhzaak_keycomp |
dnkeycompartiment |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_kopcompsrthhzaak_keysrthh |
dnkeysoorthhzaak |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
chk_kopcompsrthh_dlnaardms |
dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar]) |
|
chk_kopcompsrthhzaak_inclbezw |
dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar]) |
|
chk_kopcompsrthhzaak_inclinsp |
dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar]) |
|
cnn_kopcompsrthh_dlnaardms |
dlnaardms IS NOT NULL |
|
cnn_kopcompsrthhzaak_inclbezw |
dlinclfbezwaarberoep IS NOT NULL |
|
cnn_kopcompsrthhzaak_inclinsp |
dlinclinspectie IS NOT NULL |
|
cnn_kopcompsrthhzaak_keycomp |
dnkeycompartiment IS NOT NULL |
|
cnn_kopcompsrthhzaak_keysrthh |
dnkeysoorthhzaak IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbkopcompsrthhzaak |
btree |
|
dnkey |
|
||
idu_kopcompsrthh_keycompkeyhh |
btree |
|
dnkeycompartiment, dnkeysoorthhzaak |
|
|
Triggers
There are no triggers for table tbkopcompsrthhzaak
Rules
There are no rules for table tbkopcompsrthhzaak
Policies
There are no policies for table tbkopcompsrthhzaak
Referenced
There are no tables referenced by table tbkopcompsrthhzaak
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbkopcompsrthhzaak (
dnkey SERIAL,
dnkeycompartiment INTEGER,
dnkeysoorthhzaak INTEGER,
dlinclinspectie CHAR(1) DEFAULT 'T'::bpchar,
dlinclfbezwaarberoep CHAR(1) DEFAULT 'T'::bpchar,
dvcodedefbehandelaar CHAR(5),
dvdmszaaktype VARCHAR(40),
dlnaardms CHAR(1) DEFAULT 'F'::bpchar,
dvcodeinspecteur CHAR(5),
dnkeyaanleiding INTEGER,
dnkeyteamsdefverantw INTEGER,
CONSTRAINT cpk_tbkopcompsrthhzaak PRIMARY KEY(dnkey),
CONSTRAINT chk_kopcompsrthh_dlnaardms CHECK (dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar])),
CONSTRAINT chk_kopcompsrthhzaak_inclbezw CHECK (dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
CONSTRAINT chk_kopcompsrthhzaak_inclinsp CHECK (dlinclinspectie = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
CONSTRAINT cnn_kopcompsrthh_dlnaardms CHECK (dlnaardms IS NOT NULL),
CONSTRAINT cnn_kopcompsrthhzaak_inclbezw CHECK (dlinclfbezwaarberoep IS NOT NULL),
CONSTRAINT cnn_kopcompsrthhzaak_inclinsp CHECK (dlinclinspectie IS NOT NULL),
CONSTRAINT cnn_kopcompsrthhzaak_keycomp CHECK (dnkeycompartiment IS NOT NULL),
CONSTRAINT cnn_kopcompsrthhzaak_keysrthh CHECK (dnkeysoorthhzaak IS NOT NULL),
CONSTRAINT cfk_kopcmpsrthh_keyteamdefver FOREIGN KEY (dnkeyteamsdefverantw)
REFERENCES public.tbteams(dnkey)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcomphh_codedemw FOREIGN KEY (dvcodedefbehandelaar)
REFERENCES public.tbmedewerkers(dvcode)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrthhz_codeinsp FOREIGN KEY (dvcodeinspecteur)
REFERENCES public.tbmedewerkers(dvcode)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrthhz_keyinspaanl FOREIGN KEY (dnkeyaanleiding)
REFERENCES public.tbinspaanleiding(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrthhzaak_keycomp FOREIGN KEY (dnkeycompartiment)
REFERENCES public.tbcompartiment(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrthhzaak_keysrthh FOREIGN KEY (dnkeysoorthhzaak)
REFERENCES public.tbsoorthhzaak(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbkopcompsrthhzaak
IS 'Koppelingstabel tussen tbcompartiment en tbsoorthhzaak (zaaktypes handhaving)';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dnkeycompartiment
IS 'Foreign Key naar Tbcompartiment.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dnkeysoorthhzaak
IS 'Foreign Key naar Tbsoorthhzaak.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dlinclinspectie
IS 'T of F. Indien T dan vallen ook de deelzaken inspecties bij de soortzaak in het compartiment';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dlinclfbezwaarberoep
IS 'T of F. Indien T dan vallen ook de deelzaken bezwaar/beroep bij de soortzaak in het compartiment';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dvcodedefbehandelaar
IS 'Foreign key naar tbmedewerkers.dvcode voor default behandelaar';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dvdmszaaktype
IS 'Zaaktype in het DMS van het compartiment voor de betreffende zaak';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dlnaardms
IS 'T of F. Indien T dan moet er een zaak aangemaakt worden in het dms van het betreffende compartiment';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dvcodeinspecteur
IS 'foreign key naar tbmedewerkers met de dvcode van de inspecteur op wiens naam automatisch een inspectietraject moet worden aangemaakt bij afsluiten van handhavingzaak door comaprtiment indien het comapetiment zelf geen inspecties doet';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dnkeyaanleiding
IS 'foreign key naar tbinspaanleiing met de dnkey van de aanleiding waarmee automatisch een inspectietraject moet worden aangemaakt bij afsluiten van handhavingzaak door comaprtiment indien het compartiment zelf geen inspecties doet';
COMMENT ON COLUMN public.tbkopcompsrthhzaak.dnkeyteamsdefverantw
IS 'Foreign key naar tbteams.dnkey. Default zaakverantwoordelijk team';
CREATE UNIQUE INDEX idu_kopcompsrthh_keycompkeyhh ON public.tbkopcompsrthhzaak
USING btree (dnkeycompartiment, dnkeysoorthhzaak);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |