Schema
public
Owner
waveuser005
Tablespace
(default)
Descriptions
Tabel met gebiedsduidingen per type gebied (tbmiltypegebied) zoals sloterplas, grachtengordel
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
dnkey |
serial |
|
nextval('tbmilgebied_dnkey_seq'::regclass) |
Primary key. |
|||
|
dnkeymiltypegebied |
integer |
|
|
|
|
Foreign key naar TbMilTypeGebied.dnkey |
|
|
|
dvomschrijving |
varchar(40) |
|
|
|
|
Omschrijving gebied. |
|
|
ddvervaldatum |
timestamp |
|
|
|
|
|
Foreign Keys
Name | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|
cfk_tbmilgebied_keytypgeb |
dnkeymiltypegebied |
dnkey |
No Action |
No Action |
|
Immediate |
|
Check Constraints
Name | Condition | Description |
---|---|---|
cnn_milgebied_keytypegeb |
dnkeymiltypegebied IS NOT NULL |
|
cnn_milgebied_oms |
dvomschrijving IS NOT NULL |
|
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
cpk_tbmilgebied |
btree |
|
dnkey |
|
||
idx_milgebied_keytypgeb |
btree |
|
dnkeymiltypegebied |
|
|
|
idx_milgebied_vervaldatum |
btree |
|
ddvervaldatum |
|
|
|
Triggers
There are no triggers for table tbmilgebied
Rules
There are no rules for table tbmilgebied
Referenced
Table | Schema | Foreign Key | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
public |
cfk_tbmilinricht_keygebied |
dnkeymilgebied |
dnkey |
No Action |
No Action |
|
Immediate |
|
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
|
Definition
CREATE TABLE public.tbmilgebied (
dnkey SERIAL,
dnkeymiltypegebied INTEGER,
dvomschrijving VARCHAR(40),
ddvervaldatum TIMESTAMP WITHOUT TIME ZONE,
CONSTRAINT cpk_tbmilgebied PRIMARY KEY(dnkey),
CONSTRAINT cnn_milgebied_keytypegeb CHECK (dnkeymiltypegebied IS NOT NULL),
CONSTRAINT cnn_milgebied_oms CHECK (dvomschrijving IS NOT NULL),
CONSTRAINT cfk_tbmilgebied_keytypgeb FOREIGN KEY (dnkeymiltypegebied)
REFERENCES public.tbmiltypegebied(dnkey)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE
)
WITH (oids = false);
COMMENT ON TABLE public.tbmilgebied
IS 'Tabel met gebiedsduidingen per type gebied (tbmiltypegebied) zoals sloterplas, grachtengordel';
COMMENT ON COLUMN public.tbmilgebied.dnkey
IS 'Primary key.';
COMMENT ON COLUMN public.tbmilgebied.dnkeymiltypegebied
IS 'Foreign key naar TbMilTypeGebied.dnkey';
COMMENT ON COLUMN public.tbmilgebied.dvomschrijving
IS 'Omschrijving gebied.';
CREATE INDEX idx_milgebied_keytypgeb ON public.tbmilgebied
USING btree (dnkeymiltypegebied);
CREATE INDEX idx_milgebied_vervaldatum ON public.tbmilgebied
USING btree (ddvervaldatum);
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 22-2-2017 10:50 |
![]() ![]() ![]() |