Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Koppeltabel tussen tbcontactadressen en tbbedrijven. Contactpersoon kan maar aan 1 bedrijf gekoppeld zijn
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbkopcontactbedrijf_dnkey_seq'::regclass) |
Primary key |
|||
|
dnkeycontactadres |
integer |
|
|
|
Foreign key naar contactpersoon (tbcontactadressen.dnkey) |
||
|
dnkeybedrijf |
integer |
|
|
|
|
Foreign key naar bedrijf (tbbedrijven.dnkey) |
|
|
|
ddvervaldatum |
timestamp |
|
|
|
|
Datum waarop de koppeling tussen contactpersoon en bedrijf is komen te vervallen |
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_tbkopcontactbedrijf_dnkeybedrijf |
dnkeybedrijf |
dnkey |
Cascade |
No Action |
|
Immediate |
|
|
cfk_tbkopcontactbedrijf_dnkeycontactadres |
dnkeycontactadres |
dnkey |
Cascade |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_tbkopcontactbedrijf_dnkeybedrijf |
dnkeybedrijf IS NOT NULL |
|
cnn_tbkopcontactbedrijf_dnkeycontactadres |
dnkeycontactadres IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbkopcontactbedrijf |
btree |
|
dnkey |
|
||
idu_kopcontactbedrijf_keys |
btree |
|
dnkeycontactadres |
|
|
Triggers
There are no triggers for table tbkopcontactbedrijf
Rules
There are no rules for table tbkopcontactbedrijf
Policies
There are no policies for table tbkopcontactbedrijf
Referenced
There are no tables referenced by table tbkopcontactbedrijf
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE public.tbkopcontactbedrijf (
dnkey SERIAL,
dnkeycontactadres INTEGER,
dnkeybedrijf INTEGER,
ddvervaldatum TIMESTAMP WITHOUT TIME ZONE,
CONSTRAINT cpk_tbkopcontactbedrijf PRIMARY KEY(dnkey),
CONSTRAINT cnn_tbkopcontactbedrijf_dnkeybedrijf CHECK (dnkeybedrijf IS NOT NULL),
CONSTRAINT cnn_tbkopcontactbedrijf_dnkeycontactadres CHECK (dnkeycontactadres IS NOT NULL),
CONSTRAINT cfk_tbkopcontactbedrijf_dnkeybedrijf FOREIGN KEY (dnkeybedrijf)
REFERENCES public.tbbedrijven(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE,
CONSTRAINT cfk_tbkopcontactbedrijf_dnkeycontactadres FOREIGN KEY (dnkeycontactadres)
REFERENCES public.tbcontactadressen(dnkey)
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) ;
COMMENT ON TABLE public.tbkopcontactbedrijf
IS 'Koppeltabel tussen tbcontactadressen en tbbedrijven. Contactpersoon kan maar aan 1 bedrijf gekoppeld zijn';
COMMENT ON COLUMN public.tbkopcontactbedrijf.dnkey
IS 'Primary key';
COMMENT ON COLUMN public.tbkopcontactbedrijf.dnkeycontactadres
IS 'Foreign key naar contactpersoon (tbcontactadressen.dnkey)';
COMMENT ON COLUMN public.tbkopcontactbedrijf.dnkeybedrijf
IS 'Foreign key naar bedrijf (tbbedrijven.dnkey)';
COMMENT ON COLUMN public.tbkopcontactbedrijf.ddvervaldatum
IS 'Datum waarop de koppeling tussen contactpersoon en bedrijf is komen te vervallen';
CREATE UNIQUE INDEX idu_kopcontactbedrijf_keys ON public.tbkopcontactbedrijf
USING btree (dnkeycontactadres);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 2-5-2025 13:49 |
![]() ![]() ![]() |