pears.PlacementElement

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

Instances of Placement Element Types for individual placements.

Column Type Null Default Comment
PlacementElementTypeID char(20) NOT NULL
PlacementID char(20) NOT NULL
Value long varchar NULL
Volatile smallint NULL
  • PlacementElementTypeID, PlacementID
Constraint Columns References Delete/update action
PlacementElementType PlacementElementTypeID pears.PlacementElementType (PlacementElementTypeID) NOT NULL;
Placement PlacementID pears.Placement (placementid) 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"."PlacementElement"
-- Table comment: Instances of Placement Element Types for individual placements.
-- Statement count: 4
 
CREATE TABLE "pears"."PlacementElement" (
    "PlacementElementTypeID"         CHAR(20) NOT NULL
   ,"PlacementID"                    CHAR(20) NOT NULL
   ,"Value"                          long VARCHAR NULL
   ,"Volatile"                       SMALLINT NULL
   ,PRIMARY KEY ("PlacementElementTypeID" ASC,"PlacementID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."PlacementElement" IS 
	'Instances of Placement Element Types for individual placements.'
GO
 
 
ALTER TABLE "pears"."PlacementElement"
    ADD NOT NULL FOREIGN KEY "PlacementElementType" ("PlacementElementTypeID" ASC)
    REFERENCES "pears"."PlacementElementType" ("PlacementElementTypeID")
GO
 
 
ALTER TABLE "pears"."PlacementElement"
    ADD NOT NULL FOREIGN KEY "Placement" ("PlacementID" ASC)
    REFERENCES "pears"."Placement" ("placementid")
    ON DELETE CASCADE
GO
  • database/tables/pears_placementelement.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1