pears.ReportDivision
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
Links Reports to Divisions
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| Reportid | char(20) | NOT NULL | ||
| divisionid | char(20) | NOT NULL |
Primary Key
- Reportid, divisionid
Foreign Keys
| 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 |
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"."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