GLHI Database HTML Dump
Previous topic Chapter index Next topic

Table: tblStateCounty

 

 

Schema

public

 

Owner

wetlands

 

Tablespace

(default)

 

Descriptions

Table to hold automatically populated state and county data for project area. Table uses standard Census Bureau naming conventions for field names.

 

Fields

PK

FK

Name

Data type

Not null

Unique

Inherited

Default

Description

 

tblStateCountyID

integer

 

nextval('"tblStateCounty_tblStateCountyID_seq"'::regclass)

 

 

PROJECT_ID

integer

 

 

 

 

 

GeographyID

integer

 

 

 

 

 

 

stateID

integer

 

 

 

 

 

 

 

stateName

varchar(255)

 

 

 

 

 

 

 

countyID

integer

 

 

 

 

 

 

 

countyName

varchar(255)

 

 

 

 

 

 

Foreign Keys

Name

Fields

FK Table

FK Fields

Delete Action

Update Action

Deferrable

Check Time

Description

tblStateCounty_fk

PROJECT_ID

public.tblProject

PROJECT_ID

No Action

No Action

 

Immediate

 

tblStateCounty_fk1

GeographyID

public.tblProjectGeography

GeographyID

No Action

No Action

Immediate

 

 

Checks

There are no check constraints for table tblStateCounty

 

Indices

Name

Type

Function

Fields

Primary Key

Unique

Description

tblStateCounty_pkey

btree

 

tblStateCountyID

 

 

Triggers

There are no triggers for table tblStateCounty

 

Rules

There are no rules for table tblStateCounty

 

Referenced

There are no tables referenced by table tblStateCounty

 

Options

Option

Value

Inherited From

 

Rows

0

Pages

0

System

 

Temporary

 

With OID

 

 

Definition


CREATE TABLE "public"."tblStateCounty" (
  "tblStateCountyID" SERIAL, 
  "PROJECT_ID" INTEGER NOT NULL, 
  "GeographyID" INTEGER NOT NULL, 
  "stateID" INTEGER, 
  "stateName" VARCHAR(255), 
  "countyID" INTEGER, 
  "countyName" VARCHAR(255), 
  CONSTRAINT "tblStateCounty_pkey" PRIMARY KEY("tblStateCountyID"), 
  CONSTRAINT "tblStateCounty_fk" FOREIGN KEY ("PROJECT_ID")
    REFERENCES "public"."tblProject"("PROJECT_ID")
    ON DELETE NO ACTION
    ON UPDATE NO ACTION
    NOT DEFERRABLE, 
  CONSTRAINT "tblStateCounty_fk1" FOREIGN KEY ("GeographyID")
    REFERENCES "public"."tblProjectGeography"("GeographyID")
    ON DELETE NO ACTION
    ON UPDATE NO ACTION
    DEFERRABLE
    INITIALLY IMMEDIATE
) WITHOUT OIDS;

COMMENT ON TABLE "public"."tblStateCounty"
IS 'Table to hold automatically populated state and county data for project area. Table uses standard Census Bureau naming conventions for field names.';

Pete Giencke
pgiencke@glc.org
Previous topic Chapter index Next topic