pears.TempProvTimeSheetLine
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
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 | pears.TempProvTimeSheet (TempProvTimeSheetID) | NOT NULL; |
| TempPayBand | TempPayBandID | pears.TempPayBand (TempPayBandID) | NOT NULL; |
| TempShift | TempShiftID | pears.TempShift (TempShiftID) | ON DELETE SET NULL |
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"."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