====== pears.TempScriptGenRates ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Used during the processing of Rates ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **TempScriptGenRatesID** | char(20) | NOT NULL | | | | GroupID | char(20) | NULL | | | | TempPayBandID | char(20) | NOT NULL | | | | LineNumber | smallint | NULL | | | | UnitsPaid | double | NULL | | | | UnitsCharged | double | NULL | | | | PayRate | double | NULL | | | | ChargeRate | double | NULL | | | | Description | long varchar | NULL | | | | TempShiftID | char(20) | NULL | | | | ShiftTime | timestamp | NULL | | Where timesheets are itemised by shift or part of shift | | Grade | char(4) | NULL | | | | StartDate | date | NULL | | For looking up the master rate for comparison display | | EndDate | date | NULL | | For looking up the master rate for comparison display | | Filter1 | char(4) | NULL | | | | Filter2 | char(4) | NULL | | | | Filter3 | char(4) | NULL | | | | BatchID | char(20) | NULL | | | ===== Primary Key ===== * TempScriptGenRatesID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | TempScriptGenrates_GroupID | Index | GroupID | | | TempScriptGenrates_BatchID | Index | BatchID | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."TempScriptGenRates" -- Table comment: Used during the processing of Rates -- Statement count: 7 CREATE GLOBAL TEMPORARY TABLE "pears"."TempScriptGenRates" ( "TempScriptGenRatesID" char(20) NOT NULL ,"GroupID" char(20) NULL ,"TempPayBandID" char(20) NOT NULL ,"LineNumber" smallint NULL ,"UnitsPaid" double NULL ,"UnitsCharged" double NULL ,"PayRate" double NULL ,"ChargeRate" double NULL ,"Description" long varchar NULL ,"TempShiftID" char(20) NULL ,"ShiftTime" timestamp NULL ,"Grade" char(4) NULL ,"StartDate" date NULL ,"EndDate" date NULL ,"Filter1" char(4) NULL ,"Filter2" char(4) NULL ,"Filter3" char(4) NULL ,"BatchID" char(20) NULL ,PRIMARY KEY ("TempScriptGenRatesID" ASC) ) ON COMMIT PRESERVE ROWS go COMMENT ON COLUMN "pears"."TempScriptGenRates"."ShiftTime" IS 'Where timesheets are itemised by shift or part of shift' go COMMENT ON COLUMN "pears"."TempScriptGenRates"."StartDate" IS 'For looking up the master rate for comparison display' go COMMENT ON COLUMN "pears"."TempScriptGenRates"."EndDate" IS 'For looking up the master rate for comparison display' go COMMENT ON TABLE "pears"."TempScriptGenRates" IS 'Used during the processing of Rates' go CREATE INDEX "TempScriptGenrates_GroupID" ON "pears"."TempScriptGenRates" ( "GroupID" ) go CREATE INDEX "TempScriptGenrates_BatchID" ON "pears"."TempScriptGenRates" ( "BatchID" ) go