pears.DocumentPackReport

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

Column Type Null Default Comment
DocumentPackReportID char(20) NOT NULL
DocumentPackID char(20) NULL
SortOrder integer NULL
ReportID char(20) NULL
  • DocumentPackReportID
Constraint Columns References Delete/update action
DocumentPack DocumentPackID pears.DocumentPack (DocumentPackID) ON DELETE CASCADE
Report ReportID pears.report (reportid) 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"."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
  • database/tables/pears_documentpackreport.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1