Table of Contents



pears.externalemployment

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Description

Employment for temps when the company doesn't exist in IQX.

Columns

Column Type Null Default Comment
extemploymentid char(20) NOT NULL
personid char(20) NOT NULL
companyname char(50) NULL
startdate date NULL
leavedate date NULL
temp smallint NULL 0
note char(100) NULL
salary numeric(12,2) NULL
position char(50) NULL
ExtendedNotes long varchar NULL
noreemploy smallint NULL 0
Concurrent smallint NULL 0

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
person personid pears.Person (personid) NOT NULL;

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."externalemployment"
-- Table comment: Employment for temps when the company doesn't exist in IQX.
-- Statement count: 3
 
CREATE TABLE "pears"."externalemployment" (
    "extemploymentid"                CHAR(20) NOT NULL
   ,"personid"                       CHAR(20) NOT NULL
   ,"companyname"                    CHAR(50) NULL
   ,"startdate"                      DATE NULL
   ,"leavedate"                      DATE NULL
   ,"temp"                           SMALLINT NULL DEFAULT 0
   ,"note"                           CHAR(100) NULL
   ,"salary"                         NUMERIC(12,2) NULL
   ,"position"                       CHAR(50) NULL
   ,"ExtendedNotes"                  long VARCHAR NULL
   ,"noreemploy"                     SMALLINT NULL DEFAULT 0
   ,"Concurrent"                     SMALLINT NULL DEFAULT 0
   ,PRIMARY KEY ("extemploymentid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."externalemployment" IS 
	'Employment for temps when the company doesn''t exist in IQX.'
GO
 
 
ALTER TABLE "pears"."externalemployment"
    ADD NOT NULL FOREIGN KEY "person" ("personid" ASC)
    REFERENCES "pears"."Person" ("personid")
GO