Table of Contents



pears.PopupEscalation

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

Description

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

Columns

Column Type Null Default Comment
OrigStaffid char(20) NOT NULL
TargetStaffid char(20) NOT NULL

Primary Key

Foreign Keys

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

Referenced By

Indexes

Triggers

Original SQL

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