Table of Contents



pears.PlacementElement

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

Description

Instances of Placement Element Types for individual placements.

Columns

Column Type Null Default Comment
PlacementElementTypeID char(20) NOT NULL
PlacementID char(20) NOT NULL
Value long varchar NULL
Volatile smallint NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
PlacementElementType PlacementElementTypeID pears.PlacementElementType (PlacementElementTypeID) NOT NULL;
Placement PlacementID pears.Placement (placementid) NOT NULL; ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

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