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.ContactEventEmailLog ====== <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 ===== Records when contact events are sent ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **ContactEventEmailLogID** | char(20) | NOT NULL | | | | ContactEventID | char(20) | NOT NULL | | | | WhenSent | timestamp | NULL | current timestamp | | | Recipients | long varchar | NULL | | | | Attachments | long varchar | NULL | | | | Direction | char(3) | NOT NULL | 'OUT' | | | Method | char(10) | NOT NULL | 'EMAIL' | | | NotificationTemplateID | char(50) | NULL | | | | SubjectCount | integer | NOT NULL | 0 | | ===== Primary Key ===== * ContactEventEmailLogID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | ContactEvent | ContactEventID | [[database:tables:pears_contactevent|pears.contactevent (contacteventid)]] | NOT NULL; ON DELETE CASCADE | ===== 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"."ContactEventEmailLog" -- Table comment: Records when contact events are sent -- Statement count: 3 CREATE TABLE "pears"."ContactEventEmailLog" ( "ContactEventEmailLogID" char(20) NOT NULL ,"ContactEventID" char(20) NOT NULL ,"WhenSent" timestamp NULL DEFAULT current timestamp ,"Recipients" long varchar NULL ,"Attachments" long varchar NULL ,"Direction" char(3) NOT NULL DEFAULT 'OUT' ,"Method" char(10) NOT NULL DEFAULT 'EMAIL' ,"NotificationTemplateID" char(50) NULL ,"SubjectCount" integer NOT NULL DEFAULT 0 ,PRIMARY KEY ("ContactEventEmailLogID" ASC) ) go COMMENT ON TABLE "pears"."ContactEventEmailLog" IS 'Records when contact events are sent' go ALTER TABLE "pears"."ContactEventEmailLog" ADD NOT NULL FOREIGN KEY "ContactEvent" ("ContactEventID" ASC) REFERENCES "pears"."contactevent" ("contacteventid") ON DELETE CASCADE go </code> database/tables/pears_contacteventemaillog.txt Last modified: 2026/08/07 19:24by 127.0.0.1