pears.GlobalDocumentLink

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

Column Type Null Default Comment
GlobalDocumentLinkID char(20) NOT NULL
GlobalDocumentID char(20) NOT NULL
DivisionID char(20) NULL
DepartmentID char(2) NULL
  • GlobalDocumentLinkID
Constraint Columns References Delete/update action
GlobalDocument GlobalDocumentID pears.globaldocument (globaldocumentID) NOT NULL; ON DELETE CASCADE
division DivisionID pears.Division (divisionid) ON DELETE CASCADE
Department DepartmentID pears.Department (departmentid) 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"."GlobalDocumentLink"
-- Table comment: 
-- Statement count: 4
 
CREATE TABLE "pears"."GlobalDocumentLink" (
    "GlobalDocumentLinkID"           CHAR(20) NOT NULL
   ,"GlobalDocumentID"               CHAR(20) NOT NULL
   ,"DivisionID"                     CHAR(20) NULL
   ,"DepartmentID"                   CHAR(2) NULL
   ,PRIMARY KEY ("GlobalDocumentLinkID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."GlobalDocumentLink"
    ADD NOT NULL FOREIGN KEY "GlobalDocument" ("GlobalDocumentID" ASC)
    REFERENCES "pears"."globaldocument" ("globaldocumentID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."GlobalDocumentLink"
    ADD FOREIGN KEY "division" ("DivisionID" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."GlobalDocumentLink"
    ADD FOREIGN KEY "Department" ("DepartmentID" ASC)
    REFERENCES "pears"."Department" ("departmentid")
    ON DELETE CASCADE
GO
  • database/tables/pears_globaldocumentlink.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1