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 |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
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 |
---|---|---|
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
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),
CONSTRAINT cpk_tbkopcompsrtinfoav PRIMARY KEY(dnkey),
CONSTRAINT cnn_kopcompsrtinfoav_keycomp CHECK (dnkeycompartiment IS NOT NULL),
CONSTRAINT cnn_kopcompsrtinfoav_keysrtif CHECK (dnkeysoortinfoaanvraag IS NOT NULL),
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
)
WITH (oids = false);
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';
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 19-3-2019 13:43 |
![]() ![]() ![]() |