EMAILSCHEDULE

Stores the data for Scheduled Email jobs

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SCHEDULENAME nvarchar(256) Default = '' Text name for this scheduled email job.
SCHEDULEENABLED bit Default = 0 Determines whether this scheduled email will be sent out or not
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
TIMETOQUEUE time Time this job will be queued after
LASTRUN date yes Datetime when this job was last run

Foreign Keys

Foreign Key Field Type Null Notes Description
EMAILTEMPLATEID int EmailTemplate.ID Email template to merge with
RECURRENCEID uniqueidentifier RECURRENCE.ID Recurrence schedule to be followed
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
TIMEZONEID int TimeZone.ID Timezone that the schedule is defined for
CLIENTUSERSID int yes ClientUsers.ID The user ID who created this schedule
CLIENTSITESID int yes ClientSites.ID The CMS site the e-mail schedule belongs to.

Indexes

Index Name Fields Unique Primary Clustered
IX_EMAILSCHEDULE_DATEADDED DATEADDED yes
IX_EMAILSCHEDULE_DATECHANGED DATECHANGED
PK_EMAILSCHEDULE ID yes yes
UC_EMAILSCHEDULE_RECURRENCEID RECURRENCEID yes
UC_EMAILSCHEDULE_SCHEDULENAME SCHEDULENAME yes

Triggers

Trigger Name Description
TR_EMAILSCHEDULE_AUDIT_UPDATE
TR_EMAILSCHEDULE_AUDIT_DELETE

Referenced by

Referenced by Field
EMAILSCHEDULE_EMAILLIST EMAILSCHEDULEID