Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.EmailStaffNotification ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== 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 ===== * ID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | department | DepartmentID | [[database:tables:pears_department|pears.Department (departmentid)]] | ON DELETE SET NULL | | division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE SET NULL | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code 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 </code> database/tables/pears_emailstaffnotification.txt Last modified: 2026/08/07 19:24by 127.0.0.1