pears.TempJobRate

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

Contains the pay & charge rates for individual vacancies and placements. This is the source of the rates used when a timesheet is created. First any rates for the Placement itself are looked for. If not found then the Vacancy is checked.

Column Type Null Default Comment
TempJobRateID char(20) NOT NULL
VacancyID char(20) NULL
TempPayBandID char(20) NOT NULL
PayRate double NULL
ChargeRate double NULL
PlacementID char(20) NULL
StartDate date NULL
EndDate date NULL
Grade char(4) NULL
Filter1 char(4) NULL
Filter2 char(4) NULL
Filter3 char(4) NULL
ExtraRate1 double NULL
ExtraRate2 double NULL
ExtraRate3 double NULL
ExtraRate4 double NULL
  • TempJobRateID
Constraint Columns References Delete/update action
vacancy VacancyID pears.vacancy (vacancyid) ON DELETE CASCADE
TempPayBand TempPayBandID pears.TempPayBand (TempPayBandID) NOT NULL;
placement PlacementID pears.Placement (placementid) ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempJobRate"
-- Table comment: Contains the pay & charge rates for individual vacancies and placements. This is the source of the rates used when a timesheet is created. First any rates for the Placement itself are looked for. If not found then the Vacancy is checked.
-- Statement count: 5
 
CREATE TABLE "pears"."TempJobRate" (
    "TempJobRateID"                  CHAR(20) NOT NULL
   ,"VacancyID"                      CHAR(20) NULL
   ,"TempPayBandID"                  CHAR(20) NOT NULL
   ,"PayRate"                        DOUBLE NULL
   ,"ChargeRate"                     DOUBLE NULL
   ,"PlacementID"                    CHAR(20) NULL
   ,"StartDate"                      DATE NULL
   ,"EndDate"                        DATE NULL
   ,"Grade"                          CHAR(4) NULL
   ,"Filter1"                        CHAR(4) NULL
   ,"Filter2"                        CHAR(4) NULL
   ,"Filter3"                        CHAR(4) NULL
   ,"ExtraRate1"                     DOUBLE NULL
   ,"ExtraRate2"                     DOUBLE NULL
   ,"ExtraRate3"                     DOUBLE NULL
   ,"ExtraRate4"                     DOUBLE NULL
   ,PRIMARY KEY ("TempJobRateID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempJobRate" IS 
	'Contains the pay & charge rates for individual vacancies and placements. This is the source of the rates used when a timesheet is created. First any rates for the Placement itself are looked for. If not found then the Vacancy is checked.'
GO
 
 
ALTER TABLE "pears"."TempJobRate"
    ADD FOREIGN KEY "vacancy" ("VacancyID" ASC)
    REFERENCES "pears"."vacancy" ("vacancyid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempJobRate"
    ADD NOT NULL FOREIGN KEY "TempPayBand" ("TempPayBandID" ASC)
    REFERENCES "pears"."TempPayBand" ("TempPayBandID")
GO
 
 
ALTER TABLE "pears"."TempJobRate"
    ADD FOREIGN KEY "placement" ("PlacementID" ASC)
    REFERENCES "pears"."Placement" ("placementid")
    ON DELETE CASCADE
GO
  • database/tables/pears_tempjobrate.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1