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.TempProvTimeSheetLine ====== <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 ===== Detail lines for Provisional timesheets. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **TempProvTimeSheetLineID** | char(20) | NOT NULL | | | | TempProvTimeSheetID | char(20) | NOT 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 | | | ===== Primary Key ===== * TempProvTimeSheetLineID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | TempProvTimeSheet | TempProvTimeSheetID | [[database:tables:pears_tempprovtimesheet|pears.TempProvTimeSheet (TempProvTimeSheetID)]] | NOT NULL; | | TempPayBand | TempPayBandID | [[database:tables:pears_temppayband|pears.TempPayBand (TempPayBandID)]] | NOT NULL; | | TempShift | TempShiftID | [[database:tables:pears_tempshift|pears.TempShift (TempShiftID)]] | ON DELETE SET NULL | ===== 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"."TempProvTimeSheetLine" -- Table comment: Detail lines for Provisional timesheets. -- Statement count: 8 CREATE TABLE "pears"."TempProvTimeSheetLine" ( "TempProvTimeSheetLineID" char(20) NOT NULL ,"TempProvTimeSheetID" char(20) NOT 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 ,PRIMARY KEY ("TempProvTimeSheetLineID" ASC) ) go COMMENT ON COLUMN "pears"."TempProvTimeSheetLine"."ShiftTime" IS 'Where timesheets are itemised by shift or part of shift' go COMMENT ON COLUMN "pears"."TempProvTimeSheetLine"."StartDate" IS 'For looking up the master rate for comparison display' go COMMENT ON COLUMN "pears"."TempProvTimeSheetLine"."EndDate" IS 'For looking up the master rate for comparison display' go COMMENT ON TABLE "pears"."TempProvTimeSheetLine" IS 'Detail lines for Provisional timesheets.' go ALTER TABLE "pears"."TempProvTimeSheetLine" ADD NOT NULL FOREIGN KEY "TempProvTimeSheet" ("TempProvTimeSheetID" ASC) REFERENCES "pears"."TempProvTimeSheet" ("TempProvTimeSheetID") go ALTER TABLE "pears"."TempProvTimeSheetLine" ADD NOT NULL FOREIGN KEY "TempPayBand" ("TempPayBandID" ASC) REFERENCES "pears"."TempPayBand" ("TempPayBandID") go ALTER TABLE "pears"."TempProvTimeSheetLine" ADD FOREIGN KEY "TempShift" ("TempShiftID" ASC) REFERENCES "pears"."TempShift" ("TempShiftID") ON DELETE SET NULL go </code> database/tables/pears_tempprovtimesheetline.txt Last modified: 2026/08/07 19:24by 127.0.0.1