====== 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 =====
* PlacementLinkID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| placement | PlacementID1 | [[database:tables:pears_placement|pears.Placement (placementid)]] | ON DELETE CASCADE |
| PlacementID2 | PlacementID2 | [[database:tables:pears_placement|pears.Placement (placementid)]] | |
===== Referenced By =====
* No incoming foreign keys found.
===== Indexes =====
* No indexes found.
===== Triggers =====
* No triggers found.
===== 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