====== 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 ===== * DocumentPackReportID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | DocumentPack | DocumentPackID | [[database:tables:pears_documentpack|pears.DocumentPack (DocumentPackID)]] | ON DELETE CASCADE | | Report | ReportID | [[database:tables:pears_report|pears.report (reportid)]] | 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"."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