EXCHANGEEMAILBATCH
Batch table containing Exchange Email records.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
| 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. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_EXCHANGEEMAILBATCH_BATCHID |
BATCHID |
|
|
|
| IX_EXCHANGEEMAILBATCH_CONSTITUENTID |
CONSTITUENTID |
|
|
|
| IX_EXCHANGEEMAILBATCH_DATEADDED |
DATEADDED |
|
|
yes |
| IX_EXCHANGEEMAILBATCH_DATECHANGED |
DATECHANGED |
|
|
|
| IX_EXCHANGEEMAILBATCH_INTERACTIONTYPECODEID |
INTERACTIONTYPECODEID |
|
|
|
| IX_EXCHANGEEMAILBATCH_USERID |
USERID |
|
|
|
| PK_EXCHANGEEMAILBATCH |
ID |
yes |
yes |
|
Triggers
Referenced by