Table of Contents



pears.EmailStaffNotification

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

Description

Email addresses to be used where an individual is not suitable.

Columns

Column Type Null Default Comment
ID char(20) NOT NULL
Topic char(50) NOT NULL
Body long varchar NULL
HyperLink char(100) NULL
DepartmentID char(2) NULL
DivisionID char(20) NULL
Requested timestamp NULL
Dispatched timestamp NULL
Recipients long varchar NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
department DepartmentID pears.Department (departmentid) ON DELETE SET NULL
division DivisionID pears.Division (divisionid) ON DELETE SET NULL

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."EmailStaffNotification"
-- Table comment: Email addresses to be used where an individual is not suitable.
-- Statement count: 4
 
CREATE TABLE "pears"."EmailStaffNotification" (
    "ID"                             CHAR(20) NOT NULL
   ,"Topic"                          CHAR(50) NOT NULL
   ,"Body"                           long VARCHAR NULL
   ,"HyperLink"                      CHAR(100) NULL
   ,"DepartmentID"                   CHAR(2) NULL
   ,"DivisionID"                     CHAR(20) NULL
   ,"Requested"                      TIMESTAMP NULL
   ,"Dispatched"                     TIMESTAMP NULL
   ,"Recipients"                     long VARCHAR NULL
   ,PRIMARY KEY ("ID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."EmailStaffNotification" IS 
	'Email addresses to be used where an individual is not suitable.'
GO
 
 
ALTER TABLE "pears"."EmailStaffNotification"
    ADD FOREIGN KEY "department" ("DepartmentID" ASC)
    REFERENCES "pears"."Department" ("departmentid")
    ON DELETE SET NULL
GO
 
 
ALTER TABLE "pears"."EmailStaffNotification"
    ADD FOREIGN KEY "division" ("DivisionID" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE SET NULL
GO