pears.ReportDepartment

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

Column Type Null Default Comment
ReportDepartmentid char(20) NOT NULL
Reportid char(20) NULL
departmentid char(2) NULL
  • ReportDepartmentid
Constraint Columns References Delete/update action
Report Reportid pears.report (reportid) ON DELETE CASCADE
department departmentid pears.Department (departmentid) ON DELETE CASCADE
  • No incoming foreign keys found.
Name Type Columns Detail
ReportDepartmentid Unique index Reportid, departmentid
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."ReportDepartment"
-- Table comment: 
-- Statement count: 4
 
CREATE TABLE "pears"."ReportDepartment" (
    "ReportDepartmentid"             CHAR(20) NOT NULL
   ,"Reportid"                       CHAR(20) NULL
   ,"departmentid"                   CHAR(2) NULL
   ,PRIMARY KEY ("ReportDepartmentid" ASC) 
)
GO
 
 
ALTER TABLE "pears"."ReportDepartment"
    ADD FOREIGN KEY "Report" ("Reportid" ASC)
    REFERENCES "pears"."report" ("reportid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."ReportDepartment"
    ADD FOREIGN KEY "department" ("departmentid" ASC)
    REFERENCES "pears"."Department" ("departmentid")
    ON DELETE CASCADE
GO
 
 
CREATE UNIQUE INDEX "ReportDepartmentid" ON "pears"."ReportDepartment"
    ( "Reportid","departmentid" )
GO
  • database/tables/pears_reportdepartment.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1