Table of Contents



pears.NotificationReports

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
NotificationReportsID char(20) NOT NULL
NotificationTemplateID char(50) NULL
Reportid char(20) NULL
DocumentTypeID char(20) NULL
MultiColumn tinyint NULL 0

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
NotificationTemplate NotificationTemplateID pears.NotificationTemplate (NotificationTemplateID) ON DELETE CASCADE
Report Reportid pears.report (reportid) ON DELETE CASCADE
Documenttype DocumentTypeID pears.DocumentType (DocumentTypeID) ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."NotificationReports"
-- Table comment: 
-- Statement count: 4
 
CREATE TABLE "pears"."NotificationReports" (
    "NotificationReportsID"          CHAR(20) NOT NULL
   ,"NotificationTemplateID"         CHAR(50) NULL
   ,"Reportid"                       CHAR(20) NULL
   ,"DocumentTypeID"                 CHAR(20) NULL
   ,"MultiColumn"                    tinyint NULL DEFAULT 0
   ,PRIMARY KEY ("NotificationReportsID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."NotificationReports"
    ADD FOREIGN KEY "NotificationTemplate" ("NotificationTemplateID" ASC)
    REFERENCES "pears"."NotificationTemplate" ("NotificationTemplateID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."NotificationReports"
    ADD FOREIGN KEY "Report" ("Reportid" ASC)
    REFERENCES "pears"."report" ("reportid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."NotificationReports"
    ADD FOREIGN KEY "Documenttype" ("DocumentTypeID" ASC)
    REFERENCES "pears"."DocumentType" ("DocumentTypeID")
    ON DELETE CASCADE
GO