Table of Contents



pears.PlacementLink

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

Columns

Column Type Null Default Comment
PlacementLinkID char(20) NOT NULL
PlacementID1 char(20) NULL
PlacementID2 char(20) NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
placement PlacementID1 pears.Placement (placementid) ON DELETE CASCADE
PlacementID2 PlacementID2 pears.Placement (placementid)

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."PlacementLink"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."PlacementLink" (
    "PlacementLinkID"                CHAR(20) NOT NULL
   ,"PlacementID1"                   CHAR(20) NULL
   ,"PlacementID2"                   CHAR(20) NULL
   ,PRIMARY KEY ("PlacementLinkID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."PlacementLink"
    ADD FOREIGN KEY "placement" ("PlacementID1" ASC)
    REFERENCES "pears"."Placement" ("placementid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."PlacementLink"
    ADD FOREIGN KEY "PlacementID2" ("PlacementID2" ASC)
    REFERENCES "pears"."Placement" ("placementid")
GO