Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.TempJobRate ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== 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. ===== Columns ===== ^ 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 | | | ===== Primary Key ===== * TempJobRateID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | vacancy | VacancyID | [[database:tables:pears_vacancy|pears.vacancy (vacancyid)]] | ON DELETE CASCADE | | TempPayBand | TempPayBandID | [[database:tables:pears_temppayband|pears.TempPayBand (TempPayBandID)]] | NOT NULL; | | placement | PlacementID | [[database:tables:pears_placement|pears.Placement (placementid)]] | ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- 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 </code> database/tables/pears_tempjobrate.txt Last modified: 2026/08/07 19:24by 127.0.0.1