pears.TempJobRate
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
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 | pears.vacancy (vacancyid) | ON DELETE CASCADE |
| TempPayBand | TempPayBandID | pears.TempPayBand (TempPayBandID) | NOT NULL; |
| placement | PlacementID | pears.Placement (placementid) | ON DELETE CASCADE |
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original 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