Table of Contents



pears.TempShiftProgressHistory

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

Description

History of Progress of candidates put forward for TempShiftPlan.

Columns

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

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
TempShiftProgress TempShiftProgressID pears.TempShiftProgress (TempShiftProgressID) NOT NULL; ON DELETE CASCADE
Staff StaffID pears.staff (staffid)

Referenced By

Indexes

Triggers

Original SQL

-- 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