Table of Contents



pears.DocumentPackReport

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
DocumentPackReportID char(20) NOT NULL
DocumentPackID char(20) NULL
SortOrder integer NULL
ReportID char(20) NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
DocumentPack DocumentPackID pears.DocumentPack (DocumentPackID) ON DELETE CASCADE
Report ReportID pears.report (reportid) ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."DocumentPackReport"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."DocumentPackReport" (
    "DocumentPackReportID"           CHAR(20) NOT NULL
   ,"DocumentPackID"                 CHAR(20) NULL
   ,"SortOrder"                      INTEGER NULL
   ,"ReportID"                       CHAR(20) NULL
   ,PRIMARY KEY ("DocumentPackReportID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."DocumentPackReport"
    ADD FOREIGN KEY "DocumentPack" ("DocumentPackID" ASC)
    REFERENCES "pears"."DocumentPack" ("DocumentPackID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."DocumentPackReport"
    ADD FOREIGN KEY "Report" ("ReportID" ASC)
    REFERENCES "pears"."report" ("reportid")
    ON DELETE CASCADE
GO