pears.PopupEscalation

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

Links Staff records so that pop-ups can be escalated if Staff members not available.

Column Type Null Default Comment
OrigStaffid char(20) NOT NULL
TargetStaffid char(20) NOT NULL
  • OrigStaffid, TargetStaffid
Constraint Columns References Delete/update action
OrigStaffid OrigStaffid pears.staff (staffid) NOT NULL; ON DELETE CASCADE
TargetStaffid TargetStaffid pears.staff (staffid) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."PopupEscalation"
-- Table comment: Links Staff records so that pop-ups can be escalated if Staff members not available.
-- Statement count: 4
 
CREATE TABLE "pears"."PopupEscalation" (
    "OrigStaffid"                    CHAR(20) NOT NULL
   ,"TargetStaffid"                  CHAR(20) NOT NULL
   ,PRIMARY KEY ("OrigStaffid" ASC,"TargetStaffid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."PopupEscalation" IS 
	'Links Staff records so that pop-ups can be escalated if Staff members not available.'
GO
 
 
ALTER TABLE "pears"."PopupEscalation"
    ADD NOT NULL FOREIGN KEY "OrigStaffid" ("OrigStaffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."PopupEscalation"
    ADD NOT NULL FOREIGN KEY "TargetStaffid" ("TargetStaffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
  • database/tables/pears_popupescalation.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1