====== pears.PlacementTransfer ====== 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 ^ | **PlacementID** | char(20) | NOT NULL | | | | **TransferBatch** | integer | NOT NULL | | | | Salary | numeric(12,2) | NULL | | | | Fee | numeric(12,2) | NULL | | | | CreditTransferBatch | integer | NULL | | | ===== Primary Key ===== * PlacementID, TransferBatch ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Placement | PlacementID | [[database:tables:pears_placement|pears.Placement (placementid)]] | NOT NULL; ON DELETE CASCADE | ===== 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"."PlacementTransfer" -- Table comment: REDUNDANT -- Statement count: 3 CREATE TABLE "pears"."PlacementTransfer" ( "PlacementID" char(20) NOT NULL ,"TransferBatch" integer NOT NULL ,"Salary" numeric(12,2) NULL ,"Fee" numeric(12,2) NULL ,"CreditTransferBatch" integer NULL ,PRIMARY KEY ("PlacementID" ASC,"TransferBatch" ASC) ) go COMMENT ON TABLE "pears"."PlacementTransfer" IS 'REDUNDANT' go ALTER TABLE "pears"."PlacementTransfer" ADD NOT NULL FOREIGN KEY "Placement" ("PlacementID" ASC) REFERENCES "pears"."Placement" ("placementid") ON DELETE CASCADE go