Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Tabel van exploitatievergunningen per horeca-vergunning
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbhorexploitatie_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeyhorecavergunningen |
integer |
|
|
|
|
Foreign key naar TbHorecavergunningen.dnkey |
|
|
|
dvvergnummer |
varchar(20) |
|
|
|
|
exploitatie vergunning nummer. |
|
|
ddverleendvan |
timestamp |
|
|
|
|
Vergunning geldig vanaf datum. |
|
|
ddverleendtot |
timestamp |
|
|
|
|
Vergunning geldig t/m datum (vervaldatum). |
|
|
dvomschrijving |
varchar(2000) |
|
|
|
|
Omschrijving exploitatie. |
|
dnkeysoortexpl |
integer |
|
|
|
|
Foreign key naar TbHorSoortExploitatie.dnkey. |
|
|
|
dvmemo |
varchar(4000) |
|
|
|
|
Memo. LET OP in de database is de inhoud gezipt opgeslagen! |
|
|
dvsoortoverig |
varchar(50) |
|
|
|
|
Vrije omschrijving. |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_horexpl_horecaverg |
dnkeyhorecavergunningen |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_horexploit_soortexpl |
dnkeysoortexpl |
dnkey |
No Action |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_horexpl_dnkeyhorverg |
dnkeyhorecavergunningen IS NOT NULL |
|
cnn_horexpl_dvvergnummer |
dvvergnummer IS NOT NULL |
|
cnn_horexpl_keysoortexpl |
dnkeysoortexpl IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbhorexploitatie |
btree |
|
dnkey |
|
||
idx_horexpl_horecaverg |
btree |
|
dnkeyhorecavergunningen |
|
|
|
idx_horexploitatie_soortexpl |
btree |
|
dnkeysoortexpl |
|
|
|
Triggers
There are no triggers for table tbhorexploitatie
Rules
There are no rules for table tbhorexploitatie
Policies
There are no policies for table tbhorexploitatie
Referenced
There are no tables referenced by table tbhorexploitatie
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbhorexploitatie (
dnkey SERIAL,
dnkeyhorecavergunningen INTEGER,
dvvergnummer VARCHAR(20),
ddverleendvan TIMESTAMP WITHOUT TIME ZONE,
ddverleendtot TIMESTAMP WITHOUT TIME ZONE,
dvomschrijving VARCHAR(2000),
dnkeysoortexpl INTEGER,
dvmemo VARCHAR(4000),
dvsoortoverig VARCHAR(50),
CONSTRAINT cpk_tbhorexploitatie PRIMARY KEY(dnkey),
CONSTRAINT cnn_horexpl_dnkeyhorverg CHECK (dnkeyhorecavergunningen IS NOT NULL),
CONSTRAINT cnn_horexpl_dvvergnummer CHECK (dvvergnummer IS NOT NULL),
CONSTRAINT cnn_horexpl_keysoortexpl CHECK (dnkeysoortexpl IS NOT NULL),
CONSTRAINT cfk_horexpl_horecaverg FOREIGN KEY (dnkeyhorecavergunningen)
REFERENCES public.tbhorecavergunningen(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_horexploit_soortexpl FOREIGN KEY (dnkeysoortexpl)
REFERENCES public.tbhorsoortexploitatie(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbhorexploitatie
IS 'Tabel van exploitatievergunningen per horeca-vergunning';
COMMENT ON COLUMN public.tbhorexploitatie.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbhorexploitatie.dnkeyhorecavergunningen
IS 'Foreign key naar TbHorecavergunningen.dnkey';
COMMENT ON COLUMN public.tbhorexploitatie.dvvergnummer
IS 'exploitatie vergunning nummer.';
COMMENT ON COLUMN public.tbhorexploitatie.ddverleendvan
IS 'Vergunning geldig vanaf datum.';
COMMENT ON COLUMN public.tbhorexploitatie.ddverleendtot
IS 'Vergunning geldig t/m datum (vervaldatum).';
COMMENT ON COLUMN public.tbhorexploitatie.dvomschrijving
IS 'Omschrijving exploitatie.';
COMMENT ON COLUMN public.tbhorexploitatie.dnkeysoortexpl
IS 'Foreign key naar TbHorSoortExploitatie.dnkey.';
COMMENT ON COLUMN public.tbhorexploitatie.dvmemo
IS 'Memo. LET OP in de database is de inhoud gezipt opgeslagen!';
COMMENT ON COLUMN public.tbhorexploitatie.dvsoortoverig
IS 'Vrije omschrijving.';
CREATE INDEX idx_horexpl_horecaverg ON public.tbhorexploitatie
USING btree (dnkeyhorecavergunningen);
CREATE INDEX idx_horexploitatie_soortexpl ON public.tbhorexploitatie
USING btree (dnkeysoortexpl);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 5-1-2022 14:13 |
![]() ![]() ![]() |