Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Tabel met de samenhang tussen tbproducten en tbproducwerkpakketten en tbproducklanten
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbprodwkpklant_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeyproductwerkpakketten |
integer |
|
|
|
|
Foreign key naar tbproductwerkpakketten.dnkey |
|
|
dnkeyproductklanten |
integer |
|
|
|
|
Foreign key naar tbproductklanten.dnkey |
|
|
dnkeyproducten |
integer |
|
|
|
|
Foreign key naar tbproducten.dnkey |
|
|
|
ddvervallen |
timestamp |
|
|
|
|
Datum dat combinatie product, werkpakket en klant is vervallen. |
|
|
dvactiviteitcode |
varchar(40) |
|
|
|
|
Code waaronder combinatie product, klant, werkpakket bekend is. |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_prodwkpklant_keyprodklant |
dnkeyproductklanten |
dnkey |
Set Null |
No Action |
|
Immediate |
|
|
cfk_prodwkpklant_keyproducten |
dnkeyproducten |
dnkey |
No Action |
No Action |
|
Immediate |
|
|
cfk_prodwkpklant_keyprodwerkp |
dnkeyproductwerkpakketten |
dnkey |
Set Null |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_prodwkpklant_keyproducten |
dnkeyproducten IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbprodwkpklant |
btree |
|
dnkey |
|
||
idu_prodwkpklant_keyprwkpkl |
btree |
|
dnkeyproducten, dnkeyproductklanten, dnkeyproductwerkpakketten |
|
|
Triggers
There are no triggers for table tbprodwkpklant
Rules
There are no rules for table tbprodwkpklant
Referenced
There are no tables referenced by table tbprodwkpklant
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
|
Definition
CREATE TABLE public.tbprodwkpklant (
dnkey SERIAL,
dnkeyproductwerkpakketten INTEGER,
dnkeyproductklanten INTEGER,
dnkeyproducten INTEGER,
ddvervallen TIMESTAMP WITHOUT TIME ZONE,
dvactiviteitcode VARCHAR(40),
CONSTRAINT cpk_tbprodwkpklant PRIMARY KEY(dnkey),
CONSTRAINT cnn_prodwkpklant_keyproducten CHECK (dnkeyproducten IS NOT NULL),
CONSTRAINT cfk_prodwkpklant_keyprodklant FOREIGN KEY (dnkeyproductklanten)
REFERENCES public.tbproductklanten(dnkey)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_prodwkpklant_keyproducten FOREIGN KEY (dnkeyproducten)
REFERENCES public.tbproducten(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_prodwkpklant_keyprodwerkp FOREIGN KEY (dnkeyproductwerkpakketten)
REFERENCES public.tbproductwerkpakketten(dnkey)
ON DELETE SET NULL
ON UPDATE NO ACTION
NOT DEFERRABLE
)
WITH (oids = false);
COMMENT ON TABLE public.tbprodwkpklant
IS 'Tabel met de samenhang tussen tbproducten en tbproducwerkpakketten en tbproducklanten';
COMMENT ON COLUMN public.tbprodwkpklant.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbprodwkpklant.dnkeyproductwerkpakketten
IS 'Foreign key naar tbproductwerkpakketten.dnkey ';
COMMENT ON COLUMN public.tbprodwkpklant.dnkeyproductklanten
IS 'Foreign key naar tbproductklanten.dnkey ';
COMMENT ON COLUMN public.tbprodwkpklant.dnkeyproducten
IS 'Foreign key naar tbproducten.dnkey ';
COMMENT ON COLUMN public.tbprodwkpklant.ddvervallen
IS 'Datum dat combinatie product, werkpakket en klant is vervallen.';
COMMENT ON COLUMN public.tbprodwkpklant.dvactiviteitcode
IS 'Code waaronder combinatie product, klant, werkpakket bekend is.';
CREATE UNIQUE INDEX idu_prodwkpklant_keyprwkpkl ON public.tbprodwkpklant
USING btree (dnkeyproducten, dnkeyproductklanten, dnkeyproductwerkpakketten);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 2-10-2020 12:10 |
![]() ![]() ![]() |