Datadictionary OpenWave 3.1.11
Previous topic Chapter index Next topic

Table: tbinsponrechtm

 

 

Schema

public

 

Owner

waveuser005

 

Tablespace

(default)

 

Descriptions

Tabel met geconstateerde overtredingen tijdens een inspectietraject

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

dnkey

serial

 

nextval('tbinsponrechtm_dnkey_seq'::regclass)

Primary key.

 

dnkeyinspecties

integer

 

 

 

 

Foreign key naar TbInspecties.dnkey.

 

dvcodemedewerkers

char(5)

 

 

 

 

De inspecteur die de onrechtmnatigheid inboekt Foreign key naar TbMedewerkers.DvCode.

 

dnkeyhandhovertreding

integer

 

 

 

 

Foreign key naar TbhandhOvertreding.dnkey.

 

 

ddconstatering

timestamp

 

 

 

 

Datum onrechtmatigheid geconstateerd.

 

 

ddopgelost

timestamp

 

 

 

 

Datum onrechtmatigheid opgelost.

 

 

dvuitleg

varchar(2000)

 

 

 

 

Uitleg van de geconstateerde onrechtmatigheid.

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

cfk_tbinsponr_tbhandovertr

dnkeyhandhovertreding

public.tbhandhovertreding

dnkey

No Action

No Action

 

Immediate

 

cfk_tbinsponr_tbinspecties

dnkeyinspecties

public.tbinspecties

dnkey

Cascade

No Action

 

Immediate

 

cfk_tbinsponr_tbmedewerkers

dvcodemedewerkers

public.tbmedewerkers

dvcode

No Action

No Action

 

Immediate

 

 

Check Constraints

Name

Condition

Description

cnn_insponr_codemw

dvcodemedewerkers IS NOT NULL

 

cnn_insponr_ddconstatering

ddconstatering IS NOT NULL

 

cnn_insponr_keyhandhovertr

dnkeyhandhovertreding IS NOT NULL

 

cnn_insponr_keyinspecties

dnkeyinspecties IS NOT NULL

 

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

cpk_tbinsponrechtm

btree

 

dnkey

 

idx_insponr_codemw

btree

 

dvcodemedewerkers

 

 

 

idx_insponr_ddconstatering

btree

 

ddconstatering

 

 

 

idx_insponr_ddopgelost

btree

 

ddopgelost

 

 

 

idx_insponr_keyhandhovertr

btree

 

dnkeyhandhovertreding

 

 

 

idx_insponr_keyinspecties

btree

 

dnkeyinspecties

 

 

 

 

Triggers

There are no triggers for table tbinsponrechtm

 

Rules

There are no rules for table tbinsponrechtm

 

Referenced

Table

Schema

Foreign Key

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

tbinspovertrgebouw

public

cfk_tbinspovgeb_keyinsponrecht

dnkeyinsponrechtm

public.tbinsponrechtm

dnkey

Cascade

No Action

 

Immediate

 

 

Properties

Property

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition

CREATE TABLE public.tbinsponrechtm (
 dnkey SERIAL,
 dnkeyinspecties INTEGER,
 dvcodemedewerkers CHAR(5),
 dnkeyhandhovertreding INTEGER,
 ddconstatering TIMESTAMP WITHOUT TIME ZONE,
 ddopgelost TIMESTAMP WITHOUT TIME ZONE,
 dvuitleg VARCHAR(2000),
 CONSTRAINT cpk_tbinsponrechtm PRIMARY KEY(dnkey),
 CONSTRAINT cnn_insponr_codemw CHECK (dvcodemedewerkers IS NOT NULL),
 CONSTRAINT cnn_insponr_ddconstatering CHECK (ddconstatering IS NOT NULL),
 CONSTRAINT cnn_insponr_keyhandhovertr CHECK (dnkeyhandhovertreding IS NOT NULL),
 CONSTRAINT cnn_insponr_keyinspecties CHECK (dnkeyinspecties IS NOT NULL),
 CONSTRAINT cfk_tbinsponr_tbhandovertr FOREIGN KEY (dnkeyhandhovertreding)
   REFERENCES public.tbhandhovertreding(dnkey)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbinsponr_tbinspecties FOREIGN KEY (dnkeyinspecties)
   REFERENCES public.tbinspecties(dnkey)
   ON DELETE CASCADE
   ON UPDATE NO ACTION
   NOT DEFERRABLE
,
 CONSTRAINT cfk_tbinsponr_tbmedewerkers FOREIGN KEY (dvcodemedewerkers)
   REFERENCES public.tbmedewerkers(dvcode)
   ON DELETE NO ACTION
   ON UPDATE NO ACTION
   NOT DEFERRABLE

)
WITH (oids = false);

COMMENT ON TABLE public.tbinsponrechtm
IS 'Tabel met geconstateerde overtredingen tijdens een inspectietraject';

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

COMMENT ON COLUMN public.tbinsponrechtm.dnkeyinspecties
IS 'Foreign key naar TbInspecties.dnkey.';

COMMENT ON COLUMN public.tbinsponrechtm.dvcodemedewerkers
IS 'De inspecteur die de onrechtmnatigheid inboekt  Foreign key naar TbMedewerkers.DvCode.';

COMMENT ON COLUMN public.tbinsponrechtm.dnkeyhandhovertreding
IS 'Foreign key naar TbhandhOvertreding.dnkey.';

COMMENT ON COLUMN public.tbinsponrechtm.ddconstatering
IS 'Datum onrechtmatigheid geconstateerd.';

COMMENT ON COLUMN public.tbinsponrechtm.ddopgelost
IS 'Datum onrechtmatigheid opgelost.';

COMMENT ON COLUMN public.tbinsponrechtm.dvuitleg
IS 'Uitleg van de geconstateerde onrechtmatigheid.';

CREATE INDEX idx_insponr_codemw ON public.tbinsponrechtm
 USING btree (dvcodemedewerkers COLLATE pg_catalog."default");

CREATE INDEX idx_insponr_ddconstatering ON public.tbinsponrechtm
 USING btree (ddconstatering);

CREATE INDEX idx_insponr_ddopgelost ON public.tbinsponrechtm
 USING btree (ddopgelost);

CREATE INDEX idx_insponr_keyhandhovertr ON public.tbinsponrechtm
 USING btree (dnkeyhandhovertreding);

CREATE INDEX idx_insponr_keyinspecties ON public.tbinsponrechtm
 USING btree (dnkeyinspecties);

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