Primary Key Field Type
 ID uniqueidentifier

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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 TIMETOQUEUE time   Time this job will be queued after
 LASTRUN date Datetime when this job was last run

Foreign Key Field Type Null Notes Description
 EMAILTEMPLATEID int   EmailTemplate.ID Email template to merge with
 RECURRENCEID uniqueidentifier   RECURRENCE.ID Reccurence 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 ClientUsers.ID The user ID who created this schedule
 CLIENTSITESID int ClientSites.ID

Index Name Field(s) Unique Primary Clustered
 IX_EMAILSCHEDULE_DATEADDED DATEADDED    
 IX_EMAILSCHEDULE_DATECHANGED DATECHANGED      
 PK_EMAILSCHEDULE ID  
 UC_EMAILSCHEDULE_RECURRENCEID RECURRENCEID    
 UC_EMAILSCHEDULE_SCHEDULENAME SCHEDULENAME    

Trigger Name Description
 TR_EMAILSCHEDULE_AUDIT_UPDATE
 TR_EMAILSCHEDULE_AUDIT_DELETE

Referenced by Field
 EMAILSCHEDULE_EMAILLIST EMAILSCHEDULEID

Entity-Relationship diagram of this table