Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Koppelingstabel tussen tbcompartiment en tbsoortmilverg
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbkopcompsrtmilverg_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeycompartiment |
integer |
|
|
|
|
Foreign Key naar Tbcompartiment.DnKey. |
|
|
dnkeysoortmilverg |
integer |
|
|
|
|
Foreign Key naar Tbsoortmilverg.DnKey. |
|
|
|
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 |
|
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_kopcmpsrtmil_keyteamdefver |
dnkeyteamsdefverantw |
dnkey |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcompmil_codedemw |
dvcodedefbehandelaar |
dvcode |
Set Null |
No Action |
|
Immediate |
|
|
cfk_kopcompsrtmilverg_keycomp |
dnkeycompartiment |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_kopcompsrtmilverg_keysrtmv |
dnkeysoortmilverg |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
chk_kopcompsrtmilverg_inclbezw |
dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar]) |
|
chk_kopcompsrtmilvrg_dlnaardms |
dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar]) |
|
cnn_kopcompsrtmilverg_inclbezw |
dlinclfbezwaarberoep IS NOT NULL |
|
cnn_kopcompsrtmilverg_keycomp |
dnkeycompartiment IS NOT NULL |
|
cnn_kopcompsrtmilverg_keysrtmv |
dnkeysoortmilverg IS NOT NULL |
|
cnn_kopcompsrtmilvrg_dlnaardms |
dlnaardms IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbkopcompsrtmilverg |
btree |
|
dnkey |
|
||
idu_kopcompsrtmv_keycompkeymv |
btree |
|
dnkeycompartiment, dnkeysoortmilverg |
|
|
Triggers
There are no triggers for table tbkopcompsrtmilverg
Rules
There are no rules for table tbkopcompsrtmilverg
Policies
There are no policies for table tbkopcompsrtmilverg
Referenced
There are no tables referenced by table tbkopcompsrtmilverg
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbkopcompsrtmilverg (
dnkey SERIAL,
dnkeycompartiment INTEGER,
dnkeysoortmilverg INTEGER,
dlinclfbezwaarberoep CHAR(1) DEFAULT 'T'::bpchar,
dvcodedefbehandelaar CHAR(5),
dvdmszaaktype VARCHAR(40),
dlnaardms CHAR(1) DEFAULT 'F'::bpchar,
dnkeyteamsdefverantw INTEGER,
CONSTRAINT cpk_tbkopcompsrtmilverg PRIMARY KEY(dnkey),
CONSTRAINT chk_kopcompsrtmilverg_inclbezw CHECK (dlinclfbezwaarberoep = ANY (ARRAY['T'::bpchar, 'F'::bpchar])),
CONSTRAINT chk_kopcompsrtmilvrg_dlnaardms CHECK (dlnaardms = ANY (ARRAY['F'::bpchar, 'T'::bpchar])),
CONSTRAINT cnn_kopcompsrtmilverg_inclbezw CHECK (dlinclfbezwaarberoep IS NOT NULL),
CONSTRAINT cnn_kopcompsrtmilverg_keycomp CHECK (dnkeycompartiment IS NOT NULL),
CONSTRAINT cnn_kopcompsrtmilverg_keysrtmv CHECK (dnkeysoortmilverg IS NOT NULL),
CONSTRAINT cnn_kopcompsrtmilvrg_dlnaardms CHECK (dlnaardms IS NOT NULL),
CONSTRAINT cfk_kopcmpsrtmil_keyteamdefver FOREIGN KEY (dnkeyteamsdefverantw)
REFERENCES public.tbteams(dnkey)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompmil_codedemw FOREIGN KEY (dvcodedefbehandelaar)
REFERENCES public.tbmedewerkers(dvcode)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrtmilverg_keycomp FOREIGN KEY (dnkeycompartiment)
REFERENCES public.tbcompartiment(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_kopcompsrtmilverg_keysrtmv FOREIGN KEY (dnkeysoortmilverg)
REFERENCES public.tbsoortmilverg(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbkopcompsrtmilverg
IS 'Koppelingstabel tussen tbcompartiment en tbsoortmilverg';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dnkeycompartiment
IS 'Foreign Key naar Tbcompartiment.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dnkeysoortmilverg
IS 'Foreign Key naar Tbsoortmilverg.DnKey.';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dlinclfbezwaarberoep
IS 'T of F. Indien T dan vallen ook de deelzaken bezwaar/beroep bij de soortzaak in het compartiment';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dvcodedefbehandelaar
IS 'Foreign key naar tbmedewerkers.dvcode voor default behandelaar';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.dvdmszaaktype
IS 'Zaaktype in het DMS van het compartiment voor de betreffende zaak';
COMMENT ON COLUMN public.tbkopcompsrtmilverg.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.tbkopcompsrtmilverg.dnkeyteamsdefverantw
IS 'Foreign key naar tbteams.dnkey. Default zaakverantwoordelijk team';
CREATE UNIQUE INDEX idu_kopcompsrtmv_keycompkeymv ON public.tbkopcompsrtmilverg
USING btree (dnkeycompartiment, dnkeysoortmilverg);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |