pears.ReportDivision

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

Links Reports to Divisions

Column Type Null Default Comment
Reportid char(20) NOT NULL
divisionid char(20) NOT NULL
  • Reportid, divisionid
Constraint Columns References Delete/update action
Report Reportid pears.report (reportid) NOT NULL; ON DELETE CASCADE
division divisionid pears.Division (divisionid) NOT NULL; 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"."ReportDivision"
-- Table comment: Links Reports to Divisions
-- Statement count: 4
 
CREATE TABLE "pears"."ReportDivision" (
    "Reportid"                       CHAR(20) NOT NULL
   ,"divisionid"                     CHAR(20) NOT NULL
   ,PRIMARY KEY ("Reportid" ASC,"divisionid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."ReportDivision" IS 
	'Links Reports to Divisions'
GO
 
 
ALTER TABLE "pears"."ReportDivision"
    ADD NOT NULL FOREIGN KEY "Report" ("Reportid" ASC)
    REFERENCES "pears"."report" ("reportid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."ReportDivision"
    ADD NOT NULL FOREIGN KEY "division" ("divisionid" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE CASCADE
GO
  • database/tables/pears_reportdivision.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1