Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Koppelingstabel tussen tbcompartiment en tbsoortinfoaanvraag
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbkopcompsrtinfoav_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeycompartiment |
integer |
|
|
|
|
Foreign Key naar Tbcompartiment.DnKey. |
|
|
dnkeysoortinfoaanvraag |
integer |
|
|
|
|
Foreign Key naar Tbsoortinfoaanvraag.DnKey. |
|
|
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 |
|
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_kopcmpsrtinf_keyteamdefver |
dnkeyteamsdefverantw |
dnkey |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcompinf_codedemw |
dvcodedefbehandelaar |
dvcode |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcompsrtinfoav_keycomp |
dnkeycompartiment |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_kopcompsrtinfoav_keysrtif |
dnkeysoortinfoaanvraag |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
chk_kopcompsrtinfo_dlnaardms |
dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar]) |
|
cnn_kopcompsrtinfo_dlnaardms |
dlnaardms IS NOT NULL |
|
cnn_kopcompsrtinfoav_keycomp |
dnkeycompartiment IS NOT NULL |
|
cnn_kopcompsrtinfoav_keysrtif |
dnkeysoortinfoaanvraag IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbkopcompsrtinfoav |
btree |
|
dnkey |
|
||
idu_kopcompsrtinf_keycompkeyif |
btree |
|
dnkeycompartiment, dnkeysoortinfoaanvraag |
|
|
Triggers
There are no triggers for table tbkopcompsrtinfoav
Rules
There are no rules for table tbkopcompsrtinfoav
Policies
There are no policies for table tbkopcompsrtinfoav
Referenced
There are no tables referenced by table tbkopcompsrtinfoav
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbkopcompsrtinfoav (
dnkey SERIAL,
dnkeycompartiment INTEGER,
dnkeysoortinfoaanvraag INTEGER,
dvcodedefbehandelaar CHAR(5),
dvdmszaaktype VARCHAR(40),
dlnaardms CHAR(1) DEFAULT 'F'::bpchar,
dnkeyteamsdefverantw INTEGER,
CONSTRAINT cpk_tbkopcompsrtinfoav PRIMARY KEY(dnkey),
CONSTRAINT chk_kopcompsrtinfo_dlnaardms CHECK (dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar])),
CONSTRAINT cnn_kopcompsrtinfo_dlnaardms CHECK (dlnaardms IS NOT NULL),
CONSTRAINT cnn_kopcompsrtinfoav_keycomp CHECK (dnkeycompartiment IS NOT NULL),
CONSTRAINT cnn_kopcompsrtinfoav_keysrtif CHECK (dnkeysoortinfoaanvraag IS NOT NULL),
CONSTRAINT cfk_kopcmpsrtinf_keyteamdefver FOREIGN KEY (dnkeyteamsdefverantw)
REFERENCES public.tbteams(dnkey)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompinf_codedemw FOREIGN KEY (dvcodedefbehandelaar)
REFERENCES public.tbmedewerkers(dvcode)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrtinfoav_keycomp FOREIGN KEY (dnkeycompartiment)
REFERENCES public.tbcompartiment(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrtinfoav_keysrtif FOREIGN KEY (dnkeysoortinfoaanvraag)
REFERENCES public.tbsoortinfoaanvraag(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbkopcompsrtinfoav
IS 'Koppelingstabel tussen tbcompartiment en tbsoortinfoaanvraag';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.dnkeycompartiment
IS 'Foreign Key naar Tbcompartiment.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.dnkeysoortinfoaanvraag
IS 'Foreign Key naar Tbsoortinfoaanvraag.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.dvcodedefbehandelaar
IS 'Foreign key naar tbmedewerkers.dvcode voor default behandelaar';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.dvdmszaaktype
IS 'Zaaktype in het DMS van het compartiment voor de betreffende zaak';
COMMENT ON COLUMN public.tbkopcompsrtinfoav.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.tbkopcompsrtinfoav.dnkeyteamsdefverantw
IS 'Foreign key naar tbteams.dnkey. Default zaakverantwoordelijk team';
CREATE UNIQUE INDEX idu_kopcompsrtinf_keycompkeyif ON public.tbkopcompsrtinfoav
USING btree (dnkeycompartiment, dnkeysoortinfoaanvraag);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |