pears.TempShiftProgressHistory

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

History of Progress of candidates put forward for TempShiftPlan.

Column Type Null Default Comment
TempShiftProgressHistoryID char(20) NOT NULL
TempShiftProgressID char(20) NOT NULL
Status char(1) NOT NULL
HistoryDate date NOT NULL
HistoryTime time NOT NULL
StaffID char(20) NULL
WhenEntered timestamp NULL
  • TempShiftProgressHistoryID
Constraint Columns References Delete/update action
TempShiftProgress TempShiftProgressID pears.TempShiftProgress (TempShiftProgressID) NOT NULL; ON DELETE CASCADE
Staff StaffID pears.staff (staffid)
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempShiftProgressHistory"
-- Table comment: History of Progress of candidates put forward for TempShiftPlan.
-- Statement count: 4
 
CREATE TABLE "pears"."TempShiftProgressHistory" (
    "TempShiftProgressHistoryID"     CHAR(20) NOT NULL
   ,"TempShiftProgressID"            CHAR(20) NOT NULL
   ,"Status"                         CHAR(1) NOT NULL
   ,"HistoryDate"                    DATE NOT NULL
   ,"HistoryTime"                    TIME NOT NULL
   ,"StaffID"                        CHAR(20) NULL
   ,"WhenEntered"                    TIMESTAMP NULL
   ,PRIMARY KEY ("TempShiftProgressHistoryID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempShiftProgressHistory" IS 
	'History of Progress of candidates put forward for TempShiftPlan.'
GO
 
 
ALTER TABLE "pears"."TempShiftProgressHistory"
    ADD NOT NULL FOREIGN KEY "TempShiftProgress" ("TempShiftProgressID" ASC)
    REFERENCES "pears"."TempShiftProgress" ("TempShiftProgressID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempShiftProgressHistory"
    ADD FOREIGN KEY "Staff" ("StaffID" ASC)
    REFERENCES "pears"."staff" ("staffid")
GO
  • database/tables/pears_tempshiftprogresshistory.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1