Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.report ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Report & job templates registered with the system. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **reportid** | char(20) | NOT NULL | | | | name | char(50) | NULL | | | | filename | char(100) | NULL | | | | agencyid | char(20) | NULL | | | | type | char(3) | NULL | | | | accesslevel | smallint | NULL | 0 | | | drilldown | smallint | NULL | 0 | | | preservereportorder | smallint | NULL | 0 | | | special | char(10) | NULL | | | | preservereportwhere | smallint | NULL | 0 | | | sortorder | smallint | NULL | | | | usecount | integer | NULL | | | | lastused | timestamp | NULL | | | | lastusedby | char(25) | NULL | | | | notes | long varchar | NULL | | | | WebLocation | char(100) | NULL | | Used for custom iqxWeb images | | SaveAsPDFtoDOCS | tinyint | NULL | 0 | | | ContainsFormFields | tinyint | NULL | 0 | | | reporttypeid | char(50) | NULL | | | | ContainsLibraryFiles | smallint | NULL | 0 | | ===== Primary Key ===== * reportid ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | agencydetails | agencyid | [[database:tables:pears_agencydetails|pears.agencydetails (agencyid)]] | ON DELETE SET NULL | | reporttype | reporttypeid | [[database:tables:pears_reporttype|pears.ReportType (ReportTypeID)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_documentpack|pears.DocumentPack]] | Report | ReportID | reportid | | [[database:tables:pears_documentpackreport|pears.DocumentPackReport]] | Report | ReportID | reportid | | [[database:tables:pears_notificationreports|pears.NotificationReports]] | Report | Reportid | reportid | | [[database:tables:pears_reportdepartment|pears.ReportDepartment]] | Report | Reportid | reportid | | [[database:tables:pears_reportdivision|pears.ReportDivision]] | Report | Reportid | reportid | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | reportfilename | Index | filename | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."report" -- Table comment: Report & job templates registered with the system. -- Statement count: 6 CREATE TABLE "pears"."report" ( "reportid" char(20) NOT NULL ,"name" char(50) NULL ,"filename" char(100) NULL ,"agencyid" char(20) NULL ,"type" char(3) NULL ,"accesslevel" smallint NULL DEFAULT 0 ,"drilldown" smallint NULL DEFAULT 0 ,"preservereportorder" smallint NULL DEFAULT 0 ,"special" char(10) NULL ,"preservereportwhere" smallint NULL DEFAULT 0 ,"sortorder" smallint NULL ,"usecount" integer NULL ,"lastused" timestamp NULL ,"lastusedby" char(25) NULL ,"notes" long varchar NULL ,"WebLocation" char(100) NULL ,"SaveAsPDFtoDOCS" tinyint NULL DEFAULT 0 ,"ContainsFormFields" tinyint NULL DEFAULT 0 ,"reporttypeid" char(50) NULL ,"ContainsLibraryFiles" smallint NULL DEFAULT 0 ,PRIMARY KEY ("reportid" ASC) ) go COMMENT ON COLUMN "pears"."report"."WebLocation" IS 'Used for custom iqxWeb images' go COMMENT ON TABLE "pears"."report" IS 'Report & job templates registered with the system.' go ALTER TABLE "pears"."report" ADD FOREIGN KEY "agencydetails" ("agencyid" ASC) REFERENCES "pears"."agencydetails" ("agencyid") ON DELETE SET NULL go ALTER TABLE "pears"."report" ADD FOREIGN KEY "reporttype" ("reporttypeid" ASC) REFERENCES "pears"."ReportType" ("ReportTypeID") ON DELETE SET NULL go CREATE INDEX "reportfilename" ON "pears"."report" ( "filename" ) go </code> database/tables/pears_report.txt Last modified: 2026/08/07 19:24by 127.0.0.1