Datadictionary OpenWave 3.1.11
Previous topic Chapter index Next topic

Table: tbinspovertrgebouw

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Tabel met uitsplitsing van een geconstateerde overtredingen tijdens een inspectietraject per gebouw

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

dnkey

serial

 

nextval('tbinspovertrgebouw_dnkey_seq'::regclass)

Primary key.

 

 

dngebouwverge

integer

 

 

 

 

De key uit TbGebouwen waarbij overtreding is geconstateerd. Geen foreignkey relatie Kan alleen gevuld zijn indien dngebouwactw leeg is

 

 

dngebouwactw

integer

 

 

 

 

De key van de activiteit (tbtoestemmingen.dnkey) met het gebouw waarbij de overtreding is geconstateerd. Geen foreignkey relatie. Kan alleen gevuld zijn indien dngebouwverge leeg is

 

dnkeyinsponrechtm

integer

 

 

 

 

Foreign key naar TbInspOnrechtm.dnkey (geconstateerde overtreding).

 

dnkeyinsptermopl

integer

 

 

 

 

Foreign key naar TbInspTermijnOplOvertr.dnkey. (termijn van oplossing voor het gebouw)

 

dnkeyinspwaarom

integer

 

 

 

 

Foreign key naar TbInspWaaromOvertreding.dnkey. (waarom van overtreding: noet kunnen, willen etc.)

 

 

dddatumconstatering

timestamp

 

 

 

 

Datum dat overtreding bij gebouw is geconstateerd.

 

 

dddatumopgelost

timestamp

 

 

 

 

Datum dat overtreding bij gebouw is opgelost.

 

 

dvinfo

varchar(50)

 

 

 

 

Nadere specificatie van overtreding voor het gebouw.

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

cfk_tbinspovgeb_keyinsponrecht

dnkeyinsponrechtm

public.tbinsponrechtm

dnkey

Cascade

No Action

 

Immediate

 

cfk_tbinspovgeb_keyinsptermop

dnkeyinsptermopl

public.tbinsptermijnoplovertr

dnkey

No Action

No Action

 

Immediate

 

cfk_tbinspovgeb_keyinspwaarom

dnkeyinspwaarom

public.tbinspwaaromovertreding

dnkey

No Action

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

cnn_tbinspovgeb_keygebouwen

((dngebouwverge IS NOT NULL) AND (dngebouwactw IS NULL)) OR ((dngebouwverge IS NULL) AND (dngebouwactw IS NOT NULL))

 

cnn_tbinspovgeb_keyinsponrecht

dnkeyinsponrechtm IS NOT NULL

 

cnn_tbinspovgeb_keyinsptermop

dnkeyinsptermopl IS NOT NULL

 

cnn_tbinspovgeb_keyinspwaarom

dnkeyinspwaarom IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbinspovertrgebouw

btree

 

dnkey

 

idx_inspovgeb_dddatumconst

btree

 

dddatumconstatering

 

 

 

idx_inspovgeb_keyinsponrecht

btree

 

dnkeyinsponrechtm

 

 

 

 

Triggers

There are no triggers for table tbinspovertrgebouw

 

Rules

There are no rules for table tbinspovertrgebouw

 

Referenced

There are no tables referenced by table tbinspovertrgebouw

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbinspovertrgebouw (
 dnkey SERIAL,
 dngebouwverge INTEGER,
 dngebouwactw INTEGER,
 dnkeyinsponrechtm INTEGER,
 dnkeyinsptermopl INTEGER,
 dnkeyinspwaarom INTEGER,
 dddatumconstatering TIMESTAMP WITHOUT TIME ZONE,
 dddatumopgelost TIMESTAMP WITHOUT TIME ZONE,
 dvinfo VARCHAR(50),
 CONSTRAINT cpk_tbinspovertrgebouw PRIMARY KEY(dnkey),
 CONSTRAINT cnn_tbinspovgeb_keygebouwen CHECK (((dngebouwverge IS NOT NULL) AND (dngebouwactw IS NULL)) OR ((dngebouwverge IS NULL) AND (dngebouwactw IS NOT NULL))),
 CONSTRAINT cnn_tbinspovgeb_keyinsponrecht CHECK (dnkeyinsponrechtm IS NOT NULL),
 CONSTRAINT cnn_tbinspovgeb_keyinsptermop CHECK (dnkeyinsptermopl IS NOT NULL),
 CONSTRAINT cnn_tbinspovgeb_keyinspwaarom CHECK (dnkeyinspwaarom IS NOT NULL),
 CONSTRAINT cfk_tbinspovgeb_keyinsponrecht FOREIGN KEY (dnkeyinsponrechtm)
   REFERENCES public.tbinsponrechtm(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbinspovgeb_keyinsptermop FOREIGN KEY (dnkeyinsptermopl)
   REFERENCES public.tbinsptermijnoplovertr(dnkey)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbinspovgeb_keyinspwaarom FOREIGN KEY (dnkeyinspwaarom)
   REFERENCES public.tbinspwaaromovertreding(dnkey)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbinspovertrgebouw
IS 'Tabel met uitsplitsing van een geconstateerde overtredingen tijdens een inspectietraject per gebouw';

COMMENT ON COLUMN public.tbinspovertrgebouw.dnkey
IS 'Primary key.';

COMMENT ON COLUMN public.tbinspovertrgebouw.dngebouwverge
IS 'De key uit TbGebouwen waarbij overtreding is geconstateerd. Geen foreignkey relatie Kan alleen gevuld zijn indien dngebouwactw leeg is';

COMMENT ON COLUMN public.tbinspovertrgebouw.dngebouwactw
IS 'De key van de activiteit (tbtoestemmingen.dnkey) met het gebouw waarbij de overtreding is geconstateerd. Geen foreignkey relatie. Kan alleen gevuld zijn indien dngebouwverge leeg is';

COMMENT ON COLUMN public.tbinspovertrgebouw.dnkeyinsponrechtm
IS 'Foreign key naar TbInspOnrechtm.dnkey (geconstateerde overtreding).';

COMMENT ON COLUMN public.tbinspovertrgebouw.dnkeyinsptermopl
IS 'Foreign key naar TbInspTermijnOplOvertr.dnkey. (termijn van oplossing voor het gebouw)';

COMMENT ON COLUMN public.tbinspovertrgebouw.dnkeyinspwaarom
IS 'Foreign key naar TbInspWaaromOvertreding.dnkey. (waarom van overtreding: noet kunnen, willen etc.)';

COMMENT ON COLUMN public.tbinspovertrgebouw.dddatumconstatering
IS 'Datum dat overtreding bij gebouw is geconstateerd.';

COMMENT ON COLUMN public.tbinspovertrgebouw.dddatumopgelost
IS 'Datum dat overtreding bij gebouw is opgelost.';

COMMENT ON COLUMN public.tbinspovertrgebouw.dvinfo
IS 'Nadere specificatie van overtreding voor het gebouw.';

CREATE INDEX idx_inspovgeb_dddatumconst ON public.tbinspovertrgebouw
 USING btree (dddatumconstatering);

CREATE INDEX idx_inspovgeb_keyinsponrecht ON public.tbinspovertrgebouw
 USING btree (dnkeyinsponrechtm);

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 22-2-2017 10:50
Previous topic Chapter index Next topic