EMAILJOBEXTENSION
Email Job Extension
Primary Key
| Primary Key | Field Type |
|---|---|
| ID | uniqueidentifier |
Fields
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
| EMAILBODY | nvarchar(max) | Default = '' | Optional final email body text after merge | |
| TOADDRESS | nvarchar(255) | Default = '' | Recipient email address(es) | |
| TODISPLAYNAME | nvarchar(255) | Default = '' | Recipient email address(es) | |
| 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 |
|---|---|---|---|---|
| EMAILJOBID | int | EmailJob.ID | Foreign key to EmailJob table | |
| CONSTITUENTID | uniqueidentifier | yes | CONSTITUENT.LOCALID | FK to CONSTITUENT |
| EVENTID | uniqueidentifier | yes | EVENT.ID | FK to EVENT |
| REVENUEID | uniqueidentifier | yes | FINANCIALTRANSACTION.ID | FK to REVENUE |
| TEAMID | uniqueidentifier | yes | TEAMFUNDRAISINGTEAM.ID | FK to TEAMFUNDRAISINGTEAM |
| ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
| CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Indexes
| Index Name | Fields | Unique | Primary | Clustered |
|---|---|---|---|---|
| IX_EMAILJOBEXTENSION_CONSTITUENTID | CONSTITUENTID | |||
| IX_EMAILJOBEXTENSION_DATEADDED | DATEADDED | yes | ||
| IX_EMAILJOBEXTENSION_DATECHANGED | DATECHANGED | |||
| IX_EMAILJOBEXTENSION_REVENUEID | REVENUEID | |||
| PK_EMAILJOBEXTENSION | ID | yes | yes | |
| UIX_EMAILJOBEXTENSION_EMAILJOBID | EMAILJOBID | yes |
Triggers
| Trigger Name | Description |
|---|---|
| TR_EMAILJOBEXTENSION_AUDIT_UPDATE | |
| TR_EMAILJOBEXTENSION_AUDIT_DELETE |