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 |
| 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 |
-- 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