BATCHCONSTITUENTUPDATEEMAILADDRESSES

Stores email addresses for constituent update batch.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0
EMAILADDRESS UDT_EMAILADDRESS Default = ''
ISPRIMARY bit Default = 0
DONOTEMAIL bit Default = 0
UPDATEHOUSEHOLD bit Default = 0
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.
STARTDATE date yes The date the email address becomes valid.
ENDDATE date yes The date the email address becomes invalid.
ISMANUALEXCEPTION bit Default = 0
ROWORIGINCODE tinyint Default = 0
ROWORIGIN nvarchar(129) (Computed) yes CASE [ROWORIGINCODE] WHEN 0 THEN N'Unspecified' WHEN 1 THEN N'Included in the collection field XML at time of batch save' WHEN 2 THEN N'Automatically included by the system during import or matching to correspond to an existing contact row linked to the constituent' END
INFOSOURCECOMMENTS nvarchar(500) yes Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHCONSTITUENTUPDATEID uniqueidentifier BATCHCONSTITUENTUPDATE.ID FK to BATCHCONSTITUENTUPDATE
EMAILADDRESSTYPECODEID uniqueidentifier yes EMAILADDRESSTYPECODE.ID FK to EMAILADDRESSTYPECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
INFOSOURCECODEID uniqueidentifier yes INFOSOURCECODE.ID
EMAILADDRESSID uniqueidentifier yes EMAILADDRESS.ID
DONOTEMAILREASONCODEID uniqueidentifier yes DONOTEMAILREASONCODE.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHCONSTITUENTUPDATEEMAILADDRESSES_BATCHCONSTITUENTUPDATEID BATCHCONSTITUENTUPDATEID
IX_BATCHCONSTITUENTUPDATEEMAILADDRESSES_DATEADDED DATEADDED yes
IX_BATCHCONSTITUENTUPDATEEMAILADDRESSES_DATECHANGED DATECHANGED
PK_BATCHCONSTITUENTUPDATEEMAILADDRESSES ID yes yes

Triggers

Trigger Name Description
TR_BATCHCONSTITUENTUPDATEEMAILADDRESSES_AUDIT_UPDATE
TR_BATCHCONSTITUENTUPDATEEMAILADDRESSES_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHREVENUECONSTITUENTEDITINFO BATCHCONSTITUENTUPDATEEMAILADDRESSESID