Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DATESENT datetime   Indicates the date that the Email was sent.
 TIMESENT UDT_HOURMINUTE   Default = '' Indicates the time that the Email was sent.
 SUBJECT nvarchar(256)   Default = '' The subject of the message.
 BODY nvarchar(max)   Default = '' The body of the Email message.
 ADDASINTERACTION bit   Default = 1 Add message as interaction
 SEQUENCE int   Default = 0 Indicates the sequence of this record in the batch.
 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.

Foreign Key Field Type Null Notes Description
 BATCHID uniqueidentifier   BATCH.ID Indicates the batch to which this record belongs.
 CONSTITUENTID uniqueidentifier   CONSTITUENT.LOCALID Indicates the constituent to whom this Email is associated.
 USERID uniqueidentifier   APPUSER.ID Indicates the AppUser to whom this Email's mailbox is associated.
 INTERACTIONTYPECODEID uniqueidentifier   INTERACTIONTYPECODE.ID Indicates the type code for this interaction.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_EXCHANGEEMAILBATCH_BATCHID BATCHID      
 IX_EXCHANGEEMAILBATCH_CONSTITUENTID CONSTITUENTID      
 IX_EXCHANGEEMAILBATCH_DATEADDED DATEADDED    
 IX_EXCHANGEEMAILBATCH_DATECHANGED DATECHANGED      
 IX_EXCHANGEEMAILBATCH_INTERACTIONTYPECODEID INTERACTIONTYPECODEID      
 IX_EXCHANGEEMAILBATCH_USERID USERID      
 PK_EXCHANGEEMAILBATCH ID  

Trigger Name Description
 TR_EXCHANGEEMAILBATCH_AUDIT_UPDATE
 TR_EXCHANGEEMAILBATCH_AUDIT_DELETE

Referenced by Field
 EXCHANGEEMAILBATCHBATCHSYSTEMMESSAGES EXCHANGEEMAILBATCHID
 EXCHANGEEMAILBATCHBATCHUSERMESSAGE ID
 EXCHANGEEMAILBATCHSITE EXCHANGEEMAILBATCHID

Entity-Relationship diagram of this table