Schema
public
Owner
waveuser005
Descriptions
View van koppeltabel tbomgbewaarresulttoest tussen tbaardbeslsoortzaak en tbsrttoestemming waarin bij omgevingszaaktypes afwijkingen op de vernietigingstermijn (aardbeslsoortzaak) per onderdeel/activiteit (toestemming) worden gedefinieerd
Columns
Name | Data type | Description |
|---|---|---|
dnkey |
integer |
Primary key van tbomgbewaarresulttoest |
dnkeyaardbesluitsoortzaak |
integer |
Foreign key naar tbaardbeslsoortzaak.dnkey |
dnkeysrttoestemming |
integer |
Foreign key naar tbsrttoestemming.dnkey |
dvbewarenvanaf |
char(1) |
A of E of G of B. Bewaartermijn geldt vanaf (A)anvraagdatum of vanaf (E)inddatum of verlies (G)eldigheid of eeuwig (B)ewaren bij dit onderdeel |
dnbewaartermijndagen |
integer |
Afwijking op bewaartermijn in dagen bij dit onderdeel |
dvomsaardbesluit |
varchar(80) |
Omschrijving van aardbesluit c.q. resultaat |
dvonderdeel |
varchar(250) |
Naam van toestemming (= onderdeel, activiteit) |
dvprovisa |
varchar(20) |
Hoofdstuk uit Selectielijst voor archiefbescheiden van de provinciale organen bijv 3.1.15 |
dvzaaktype |
varchar(150) |
Tbsoortomgverg.dvomschrijving: zaaktype |
dnkeysoortomgverg |
integer |
Primary key van gekoppelde zaaktype uit tbsoortomgverg (zaaktype) |
dvcodeaardbesluit |
varchar(5) |
tbaardbesluit.dvcode (dus V of I of ing etc) |
dvvantoepop |
char(10) |
tbaardbesluit.dvvantoepop (combinatie van moduleletter W of O of V |
dnkeyaardbesluit |
integer |
tbaardbesluit.dnkey |
dvomschrijvingaardbesluit |
varchar(80) |
tbaardbesluit.dvomschrijving |
ddaardbeslvervaldatum |
timestamp |
|
Rules
Name | Event | Instead | Condition | Description |
|---|---|---|---|---|
_RETURN |
SELECT |
|
|
|
Indices
There are no indices for table vwfrmomgbewaarresulttoest
Definition
CREATE VIEW public.vwfrmomgbewaarresulttoest (
dnkey,
dnkeyaardbesluitsoortzaak,
dnkeysrttoestemming,
dvbewarenvanaf,
dnbewaartermijndagen,
dvomsaardbesluit,
dvonderdeel,
dvprovisa,
dvzaaktype,
dnkeysoortomgverg,
dvcodeaardbesluit,
dvvantoepop,
dnkeyaardbesluit,
dvomschrijvingaardbesluit,
ddaardbeslvervaldatum)
AS
SELECT a.dnkey,
a.dnkeyaardbesluitsoortzaak,
a.dnkeysrttoestemming,
a.dvbewarenvanaf,
a.dnbewaartermijndagen,
c.dvomschrijving AS dvomsaardbesluit,
d.dvtoestemmingnaam AS dvonderdeel,
a.dvprovisa,
e.dvomschrijving AS dvzaaktype,
b.dnkeysoortomgverg,
c.dvcode AS dvcodeaardbesluit,
c.dvvantoepop,
c.dnkey AS dnkeyaardbesluit,
c.dvomschrijving AS dvomschrijvingaardbesluit,
c.ddvervaldatum AS ddaardbeslvervaldatum
FROM tbomgbewaarresulttoest a
LEFT JOIN tbaardbeslsoortzaak b ON a.dnkeyaardbesluitsoortzaak = b.dnkey
LEFT JOIN tbaardbesluit c ON b.dnkeyaardbesluit = c.dnkey
LEFT JOIN tbsrttoestemming d ON a.dnkeysrttoestemming = d.dnkey
LEFT JOIN tbsoortomgverg e ON b.dnkeysoortomgverg = e.dnkey;
COMMENT ON VIEW public.vwfrmomgbewaarresulttoest
IS 'View van koppeltabel tbomgbewaarresulttoest tussen tbaardbeslsoortzaak en tbsrttoestemming waarin bij omgevingszaaktypes afwijkingen op de vernietigingstermijn (aardbeslsoortzaak) per onderdeel/activiteit (toestemming) worden gedefinieerd';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnkey
IS 'Primary key van tbomgbewaarresulttoest';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnkeyaardbesluitsoortzaak
IS 'Foreign key naar tbaardbeslsoortzaak.dnkey';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnkeysrttoestemming
IS 'Foreign key naar tbsrttoestemming.dnkey';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvbewarenvanaf
IS 'A of E of G of B. Bewaartermijn geldt vanaf (A)anvraagdatum of vanaf (E)inddatum of verlies (G)eldigheid of eeuwig (B)ewaren bij dit onderdeel';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnbewaartermijndagen
IS 'Afwijking op bewaartermijn in dagen bij dit onderdeel';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvomsaardbesluit
IS 'Omschrijving van aardbesluit c.q. resultaat';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvonderdeel
IS 'Naam van toestemming (= onderdeel, activiteit)';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvprovisa
IS 'Hoofdstuk uit Selectielijst voor archiefbescheiden van de provinciale organen bijv 3.1.15';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvzaaktype
IS 'Tbsoortomgverg.dvomschrijving: zaaktype';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnkeysoortomgverg
IS 'Primary key van gekoppelde zaaktype uit tbsoortomgverg (zaaktype)';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvcodeaardbesluit
IS 'tbaardbesluit.dvcode (dus V of I of ing etc)';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvvantoepop
IS 'tbaardbesluit.dvvantoepop (combinatie van moduleletter W of O of V';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dnkeyaardbesluit
IS 'tbaardbesluit.dnkey';
COMMENT ON COLUMN public.vwfrmomgbewaarresulttoest.dvomschrijvingaardbesluit
IS 'tbaardbesluit.dvomschrijving';
This file was generated with SQL Manager for PostgreSQL (www.sqlmanager.net/products/postgresql/manager) at 26/10/2026 11:10 |
|