Table of Contents



pears.placementattribution

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

Description

REDUNDANT

Columns

Column Type Null Default Comment
placementattributionid char(20) NOT NULL
percent double NULL
score double NULL
placementid char(20) NOT NULL
staffid char(20) NOT NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
placement placementid pears.Placement (placementid) NOT NULL; ON DELETE CASCADE
staff staffid pears.staff (staffid) NOT NULL;

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."placementattribution"
-- Table comment: REDUNDANT
-- Statement count: 4
 
CREATE TABLE "pears"."placementattribution" (
    "placementattributionid"         CHAR(20) NOT NULL
   ,"percent"                        DOUBLE NULL
   ,"score"                          DOUBLE NULL
   ,"placementid"                    CHAR(20) NOT NULL
   ,"staffid"                        CHAR(20) NOT NULL
   ,PRIMARY KEY ("placementattributionid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."placementattribution" IS 
	'REDUNDANT'
GO
 
 
ALTER TABLE "pears"."placementattribution"
    ADD NOT NULL FOREIGN KEY "placement" ("placementid" ASC)
    REFERENCES "pears"."Placement" ("placementid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."placementattribution"
    ADD NOT NULL FOREIGN KEY "staff" ("staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
GO