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