Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Tabel gekoppeld aan tbtoestemmingen met staffel (uit tbroebstaffel), prijs per eenheid (uit tbtoebprijzen), btw (uit tbtoebbtw) en aantal voor berekening vastgestelde kosten
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbroebtoest_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeyroebstaffel |
integer |
|
|
|
|
Foreign key naar tbroebstaffel.dnkey om het staffelaantal bij het opgegeven dnserieaantal op te halen |
|
|
dnkeyroebprijzen |
integer |
|
|
|
|
Foreign key naar tbroebprijzen.dnkey (prijs per eenheid bij een hoofd/subcategorie) |
|
|
dnkeyroebbtw |
integer |
|
|
|
|
Foreign key naar tbroebbtw.dnkey |
|
|
dnkeytoestemmingen |
integer |
|
|
|
|
Foreign key naar tbtoestemmingen.dnkey (onderdeel/activiteit bij tbomgvergunning) |
|
|
|
dnaantaleenheid |
integer |
|
|
|
|
Aantal waarmee prijs per eenheid vermenigvuldigd moet worden |
|
|
dnserieaantal |
integer |
|
|
|
1 |
Aantal type (woningen) in een serie. Het bijbehorende staffelaantal wordt vermenigvuldigd met dnaantaleeneheid |
|
|
dvserietype |
varchar(50) |
|
|
|
|
Omschrijving van serie, bijv type A of TYpe B |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_tbroebtoest_keyroebbtw |
dnkeyroebbtw |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_tbroebtoest_keyroebprijzen |
dnkeyroebprijzen |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_tbroebtoest_keyroebstaffel |
dnkeyroebstaffel |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_tbroebtoest_keytoestemming |
dnkeytoestemmingen |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_tbroebtoest_dnserieaantal |
dnserieaantal IS NOT NULL |
|
cnn_tbroebtoest_keyroebbtw |
dnkeyroebbtw IS NOT NULL |
|
cnn_tbroebtoest_keyroebprijzen |
dnkeyroebprijzen IS NOT NULL |
|
cnn_tbroebtoest_keyroebstaffel |
dnkeyroebstaffel IS NOT NULL |
|
cnn_tbroebtoest_keytoestemming |
dnkeytoestemmingen IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbroebtoest |
btree |
|
dnkey |
|
||
idx_roebtoest_keytoest |
btree |
|
dnkeytoestemmingen |
|
|
|
Triggers
There are no triggers for table tbroebtoest
Rules
There are no rules for table tbroebtoest
Policies
There are no policies for table tbroebtoest
Referenced
There are no tables referenced by table tbroebtoest
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbroebtoest (
dnkey SERIAL,
dnkeyroebstaffel INTEGER,
dnkeyroebprijzen INTEGER,
dnkeyroebbtw INTEGER,
dnkeytoestemmingen INTEGER,
dnaantaleenheid INTEGER,
dnserieaantal INTEGER DEFAULT 1,
dvserietype VARCHAR(50),
CONSTRAINT cpk_tbroebtoest PRIMARY KEY(dnkey),
CONSTRAINT cnn_tbroebtoest_dnserieaantal CHECK (dnserieaantal IS NOT NULL),
CONSTRAINT cnn_tbroebtoest_keyroebbtw CHECK (dnkeyroebbtw IS NOT NULL),
CONSTRAINT cnn_tbroebtoest_keyroebprijzen CHECK (dnkeyroebprijzen IS NOT NULL),
CONSTRAINT cnn_tbroebtoest_keyroebstaffel CHECK (dnkeyroebstaffel IS NOT NULL),
CONSTRAINT cnn_tbroebtoest_keytoestemming CHECK (dnkeytoestemmingen IS NOT NULL),
CONSTRAINT cfk_tbroebtoest_keyroebbtw FOREIGN KEY (dnkeyroebbtw)
REFERENCES public.tbroebbtw(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbroebtoest_keyroebprijzen FOREIGN KEY (dnkeyroebprijzen)
REFERENCES public.tbroebprijzen(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbroebtoest_keyroebstaffel FOREIGN KEY (dnkeyroebstaffel)
REFERENCES public.tbroebstaffel(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbroebtoest_keytoestemming FOREIGN KEY (dnkeytoestemmingen)
REFERENCES public.tbtoestemmingen(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbroebtoest
IS 'Tabel gekoppeld aan tbtoestemmingen met staffel (uit tbroebstaffel), prijs per eenheid (uit tbtoebprijzen), btw (uit tbtoebbtw) en aantal voor berekening vastgestelde kosten ';
COMMENT ON COLUMN public.tbroebtoest.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbroebtoest.dnkeyroebstaffel
IS 'Foreign key naar tbroebstaffel.dnkey om het staffelaantal bij het opgegeven dnserieaantal op te halen';
COMMENT ON COLUMN public.tbroebtoest.dnkeyroebprijzen
IS 'Foreign key naar tbroebprijzen.dnkey (prijs per eenheid bij een hoofd/subcategorie)';
COMMENT ON COLUMN public.tbroebtoest.dnkeyroebbtw
IS 'Foreign key naar tbroebbtw.dnkey';
COMMENT ON COLUMN public.tbroebtoest.dnkeytoestemmingen
IS 'Foreign key naar tbtoestemmingen.dnkey (onderdeel/activiteit bij tbomgvergunning)';
COMMENT ON COLUMN public.tbroebtoest.dnaantaleenheid
IS 'Aantal waarmee prijs per eenheid vermenigvuldigd moet worden ';
COMMENT ON COLUMN public.tbroebtoest.dnserieaantal
IS 'Aantal type (woningen) in een serie. Het bijbehorende staffelaantal wordt vermenigvuldigd met dnaantaleeneheid';
COMMENT ON COLUMN public.tbroebtoest.dvserietype
IS 'Omschrijving van serie, bijv type A of TYpe B';
CREATE INDEX idx_roebtoest_keytoest ON public.tbroebtoest
USING btree (dnkeytoestemmingen);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |