Table of Contents



pears.NotificationDepartment

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
NotificationDepartmentID char(20) NOT NULL
NotificationTemplateID char(50) NULL
DepartmentID char(2) NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
NotificationTemplate NotificationTemplateID pears.NotificationTemplate (NotificationTemplateID) 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"."NotificationDepartment"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."NotificationDepartment" (
    "NotificationDepartmentID"       CHAR(20) NOT NULL
   ,"NotificationTemplateID"         CHAR(50) NULL
   ,"DepartmentID"                   CHAR(2) NULL
   ,PRIMARY KEY ("NotificationDepartmentID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."NotificationDepartment"
    ADD FOREIGN KEY "NotificationTemplate" ("NotificationTemplateID" ASC)
    REFERENCES "pears"."NotificationTemplate" ("NotificationTemplateID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."NotificationDepartment"
    ADD FOREIGN KEY "Department" ("DepartmentID" ASC)
    REFERENCES "pears"."Department" ("departmentid")
    ON DELETE CASCADE
GO