Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Koppeltabel tussen bouw/sloop-, gebruiks- en milieuvergunningen en gebouwtypes en gebouw-specificaties
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbgebouwen_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeymilvergunningen |
integer |
|
|
|
|
Foreign key naar tbmilvergunningen.dnkey |
|
|
dnkeybouwvergunningen |
integer |
|
|
|
|
Foreign key naar tbbouwvergunningen.dnkey |
|
|
dnkeygebouwspec |
integer |
|
|
|
|
Foreign key naar tbgebouwspec.dnkey |
|
|
dnkeygebouwtype |
integer |
|
|
|
|
Foreign key naar Tbgebouwtype.dnkey |
|
|
|
dnaantgebrvan |
integer |
|
|
|
|
Aantal gebruikers vanaf. |
|
|
dnaantgebrtot |
integer |
|
|
|
|
Aantal gebruikers tot. |
|
|
dnbouwlagen |
integer |
|
|
|
|
Aantal bouwlagen. |
|
|
dfoppgebr |
double precision |
|
|
|
|
Gebruiksoppervlakte. |
|
|
dnmaxgebr |
integer |
|
|
|
|
Maximale toegestane aantal gebruikers |
|
|
dvgebouwbeschr |
varchar(50) |
|
|
|
|
Vrije beschrijving van het gebouw |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_tbgebouwen_keybouwverg |
dnkeybouwvergunningen |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_tbgebouwen_keygebouwspec |
dnkeygebouwspec |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_tbgebouwen_keygebouwtype |
dnkeygebouwtype |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_tbgebouwen_keymilverg |
dnkeymilvergunningen |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_gebouwen_keyverg |
((dnkeybouwvergunningen IS NOT NULL) AND (dnkeymilvergunningen IS NULL)) OR ((dnkeymilvergunningen IS NOT NULL) AND (dnkeybouwvergunningen IS NULL)) |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbgebouwen |
btree |
|
dnkey |
|
||
idx_tbgebouwen_keybouwverg |
btree |
|
dnkeybouwvergunningen |
|
|
|
idx_tbgebouwen_keygebouwspec |
btree |
|
dnkeygebouwspec |
|
|
|
idx_tbgebouwen_keygebouwtype |
btree |
|
dnkeygebouwtype |
|
|
|
idx_tbgebouwen_keymilverg |
btree |
|
dnkeymilvergunningen |
|
|
|
Triggers
There are no triggers for table tbgebouwen
Rules
There are no rules for table tbgebouwen
Policies
There are no policies for table tbgebouwen
Referenced
There are no tables referenced by table tbgebouwen
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbgebouwen (
dnkey SERIAL,
dnkeymilvergunningen INTEGER,
dnkeybouwvergunningen INTEGER,
dnkeygebouwspec INTEGER,
dnkeygebouwtype INTEGER,
dnaantgebrvan INTEGER,
dnaantgebrtot INTEGER,
dnbouwlagen INTEGER,
dfoppgebr DOUBLE PRECISION,
dnmaxgebr INTEGER,
dvgebouwbeschr VARCHAR(50),
CONSTRAINT cpk_tbgebouwen PRIMARY KEY(dnkey),
CONSTRAINT cnn_gebouwen_keyverg CHECK (((dnkeybouwvergunningen IS NOT NULL) AND (dnkeymilvergunningen IS NULL)) OR ((dnkeymilvergunningen IS NOT NULL) AND (dnkeybouwvergunningen IS NULL))),
CONSTRAINT cfk_tbgebouwen_keybouwverg FOREIGN KEY (dnkeybouwvergunningen)
REFERENCES public.tbbouwvergunningen(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbgebouwen_keygebouwspec FOREIGN KEY (dnkeygebouwspec)
REFERENCES public.tbgebouwspec(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbgebouwen_keygebouwtype FOREIGN KEY (dnkeygebouwtype)
REFERENCES public.tbgebouwtype(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbgebouwen_keymilverg FOREIGN KEY (dnkeymilvergunningen)
REFERENCES public.tbmilvergunningen(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbgebouwen
IS 'Koppeltabel tussen bouw/sloop-, gebruiks- en milieuvergunningen en gebouwtypes en gebouw-specificaties';
COMMENT ON COLUMN public.tbgebouwen.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbgebouwen.dnkeymilvergunningen
IS 'Foreign key naar tbmilvergunningen.dnkey';
COMMENT ON COLUMN public.tbgebouwen.dnkeybouwvergunningen
IS 'Foreign key naar tbbouwvergunningen.dnkey';
COMMENT ON COLUMN public.tbgebouwen.dnkeygebouwspec
IS 'Foreign key naar tbgebouwspec.dnkey';
COMMENT ON COLUMN public.tbgebouwen.dnkeygebouwtype
IS 'Foreign key naar Tbgebouwtype.dnkey';
COMMENT ON COLUMN public.tbgebouwen.dnaantgebrvan
IS 'Aantal gebruikers vanaf.';
COMMENT ON COLUMN public.tbgebouwen.dnaantgebrtot
IS 'Aantal gebruikers tot.';
COMMENT ON COLUMN public.tbgebouwen.dnbouwlagen
IS 'Aantal bouwlagen.';
COMMENT ON COLUMN public.tbgebouwen.dfoppgebr
IS 'Gebruiksoppervlakte.';
COMMENT ON COLUMN public.tbgebouwen.dnmaxgebr
IS 'Maximale toegestane aantal gebruikers';
COMMENT ON COLUMN public.tbgebouwen.dvgebouwbeschr
IS 'Vrije beschrijving van het gebouw';
CREATE INDEX idx_tbgebouwen_keybouwverg ON public.tbgebouwen
USING btree (dnkeybouwvergunningen);
CREATE INDEX idx_tbgebouwen_keygebouwspec ON public.tbgebouwen
USING btree (dnkeygebouwspec);
CREATE INDEX idx_tbgebouwen_keygebouwtype ON public.tbgebouwen
USING btree (dnkeygebouwtype);
CREATE INDEX idx_tbgebouwen_keymilverg ON public.tbgebouwen
USING btree (dnkeymilvergunningen);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |