Table of Contents



pears.GlobalDocumentLink

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

Columns

Column Type Null Default Comment
GlobalDocumentLinkID char(20) NOT NULL
GlobalDocumentID char(20) NOT NULL
DivisionID char(20) NULL
DepartmentID char(2) NULL

Primary Key

Foreign Keys

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

Referenced By

Indexes

Triggers

Original SQL

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