Table of Contents



pears.NotificationDocuments

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
NotificationDocumentsID char(20) NOT NULL
NotificationTemplateID char(50) NULL
DocumentTypeid char(20) NULL
GlobalDocumentID char(20) NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
NotificationTemplate NotificationTemplateID pears.NotificationTemplate (NotificationTemplateID) ON DELETE CASCADE
DocumentType DocumentTypeid pears.DocumentType (DocumentTypeID) ON DELETE CASCADE
GlobalDocument GlobalDocumentID pears.globaldocument (globaldocumentID) ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."NotificationDocuments"
-- Table comment: 
-- Statement count: 4
 
CREATE TABLE "pears"."NotificationDocuments" (
    "NotificationDocumentsID"        CHAR(20) NOT NULL
   ,"NotificationTemplateID"         CHAR(50) NULL
   ,"DocumentTypeid"                 CHAR(20) NULL
   ,"GlobalDocumentID"               CHAR(20) NULL
   ,PRIMARY KEY ("NotificationDocumentsID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."NotificationDocuments"
    ADD FOREIGN KEY "NotificationTemplate" ("NotificationTemplateID" ASC)
    REFERENCES "pears"."NotificationTemplate" ("NotificationTemplateID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."NotificationDocuments"
    ADD FOREIGN KEY "DocumentType" ("DocumentTypeid" ASC)
    REFERENCES "pears"."DocumentType" ("DocumentTypeID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."NotificationDocuments"
    ADD FOREIGN KEY "GlobalDocument" ("GlobalDocumentID" ASC)
    REFERENCES "pears"."globaldocument" ("globaldocumentID")
    ON DELETE CASCADE
GO