pears.IQAcShift

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

Column Type Null Default Comment
IQAcShiftID char(20) NOT NULL
DocumentID char(8) NULL
TempPayBandID char(20) 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
Filter1 char(4) NULL
Filter2 char(4) NULL
Filter3 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
OverrideTimeFrom time NULL
OverrideTimeTo time NULL
OverrideBreakMinutes smallint NULL
  • IQAcShiftID
Constraint Columns References Delete/update action
TempPayBand TempPayBandID pears.TempPayBand (TempPayBandID) ON DELETE SET NULL
TempShift TempShiftID pears.TempShift (TempShiftID) ON DELETE SET NULL
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."IQAcShift"
-- Table comment: 
-- Statement count: 6
 
CREATE TABLE "pears"."IQAcShift" (
    "IQAcShiftID"                    CHAR(20) NOT NULL
   ,"DocumentID"                     CHAR(8) NULL
   ,"TempPayBandID"                  CHAR(20) 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
   ,"Filter1"                        CHAR(4) NULL
   ,"Filter2"                        CHAR(4) NULL
   ,"Filter3"                        CHAR(4) NULL
   ,"StartDate"                      DATE NULL
   ,"EndDate"                        DATE NULL
   ,"OverrideTimeFrom"               TIME NULL
   ,"OverrideTimeTo"                 TIME NULL
   ,"OverrideBreakMinutes"           SMALLINT NULL
   ,PRIMARY KEY ("IQAcShiftID" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."IQAcShift"."ShiftTime" IS 
	'Where timesheets are itemised by shift or part of shift'
GO
 
 
COMMENT ON COLUMN "pears"."IQAcShift"."StartDate" IS 
	'For looking up the master rate for comparison display'
GO
 
 
COMMENT ON COLUMN "pears"."IQAcShift"."EndDate" IS 
	'For looking up the master rate for comparison display'
GO
 
 
ALTER TABLE "pears"."IQAcShift"
    ADD FOREIGN KEY "TempPayBand" ("TempPayBandID" ASC)
    REFERENCES "pears"."TempPayBand" ("TempPayBandID")
    ON DELETE SET NULL
GO
 
 
ALTER TABLE "pears"."IQAcShift"
    ADD FOREIGN KEY "TempShift" ("TempShiftID" ASC)
    REFERENCES "pears"."TempShift" ("TempShiftID")
    ON DELETE SET NULL
GO
  • database/tables/pears_iqacshift.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1