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.ProgressHistory ====== <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 ===== History of progress items with dates that the progres state changed. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **ProgressHistoryID** | char(20) | NOT NULL | | | | ProgressID | char(20) | NOT NULL | | | | Status | char(4) | NOT NULL | | | | HistoryDate | date | NOT NULL | | | | HistoryTime | time | NOT NULL | | | | StaffID | char(20) | NULL | | | | InterviewDate | date | NULL | | | | InterviewTime | time | NULL | | | | Note | long varchar | NULL | | | | WhenEntered | timestamp | NULL | | | ===== Primary Key ===== * ProgressHistoryID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Progress | ProgressID | [[database:tables:pears_progress|pears.progress (progressid)]] | NOT NULL; ON DELETE CASCADE | | Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | ProgressHistory_WhenEnteredStatus | Index | WhenEntered, Status | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."ProgressHistory" -- Table comment: History of progress items with dates that the progres state changed. -- Statement count: 5 CREATE TABLE "pears"."ProgressHistory" ( "ProgressHistoryID" char(20) NOT NULL ,"ProgressID" char(20) NOT NULL ,"Status" char(4) NOT NULL ,"HistoryDate" date NOT NULL ,"HistoryTime" time NOT NULL ,"StaffID" char(20) NULL ,"InterviewDate" date NULL ,"InterviewTime" time NULL ,"Note" long varchar NULL ,"WhenEntered" timestamp NULL COMPUTE ("HistoryDate"+"HistoryTime") ,PRIMARY KEY ("ProgressHistoryID" ASC) ) go COMMENT ON TABLE "pears"."ProgressHistory" IS 'History of progress items with dates that the progres state changed.' go ALTER TABLE "pears"."ProgressHistory" ADD NOT NULL FOREIGN KEY "Progress" ("ProgressID" ASC) REFERENCES "pears"."progress" ("progressid") ON DELETE CASCADE go ALTER TABLE "pears"."ProgressHistory" ADD FOREIGN KEY "Staff" ("StaffID" ASC) REFERENCES "pears"."staff" ("staffid") go CREATE INDEX "ProgressHistory_WhenEnteredStatus" ON "pears"."ProgressHistory" ( "WhenEntered","Status" ) go </code> database/tables/pears_progresshistory.txt Last modified: 2026/08/07 19:24by 127.0.0.1