BATCHCONSTITUENTUPDATEADDRESSES

Stores addresses for constituent update batch.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0 Stores the user-defined sequence for addresses on a constituent.
ADDRESSBLOCK nvarchar(150) Default = ''
CITY nvarchar(max) Default = ''
POSTCODE nvarchar(12) Default = ''
HISTORICALSTARTDATE date yes Indicates the date that the constituent started using this address.
ISPRIMARY bit Default = 0
DONOTMAIL bit Default = 0
UPDATEHOUSEHOLD bit Default = 0
STARTDATE UDT_MONTHDAY Default = '0000' For seasonal address types only; DD/MM start date of when this address should be considered for mailings.
ENDDATE UDT_MONTHDAY Default = '0000' For seasonal address types only; DD/MM end date of when this address should be considered for mailings.
DPC nvarchar(max) Default = ''
CART nvarchar(max) Default = ''
LOT nvarchar(5) Default = ''
CERTIFICATIONDATA int Default = 0
LASTVALIDATIONATTEMPTDATE date yes
OMITFROMVALIDATION bit Default = 0
VALIDATIONMESSAGE nvarchar(200) Default = ''
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.
INFOSOURCECOMMENTS nvarchar(256) Default = '' Contains additional comments about the information source.
HISTORICALENDDATE date yes Indicates the date that the constituent stopped using this address.
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

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHCONSTITUENTUPDATEID uniqueidentifier BATCHCONSTITUENTUPDATE.ID FK to BATCHCONSTITUENTUPDATE
ADDRESSTYPECODEID uniqueidentifier yes ADDRESSTYPECODE.ID FK to ADDRESSTYPECODE
COUNTRYID uniqueidentifier COUNTRY.LOCALID FK to COUNTRY
STATEID uniqueidentifier yes STATE.LOCALID FK to STATE
DONOTMAILREASONCODEID uniqueidentifier yes DONOTMAILREASONCODE.ID FK to DONOTMAILREASONCODE
INFOSOURCECODEID uniqueidentifier yes INFOSOURCECODE.ID FK to INFOSOURCECODE
COUNTYCODEID uniqueidentifier yes COUNTYCODE.LOCALID FK to COUNTYCODE
REGIONCODEID uniqueidentifier yes REGIONCODE.LOCALID FK to REGIONCODE
CONGRESSIONALDISTRICTCODEID uniqueidentifier yes CONGRESSIONALDISTRICTCODE.ID FK to CONGRESSIONALDISTRICTCODE
STATEHOUSEDISTRICTCODEID uniqueidentifier yes STATEHOUSEDISTRICTCODE.ID FK to STATEHOUSEDISTRICTCODE
STATESENATEDISTRICTCODEID uniqueidentifier yes STATESENATEDISTRICTCODE.ID FK to STATESENATEDISTRICTCODE
LOCALPRECINCTCODEID uniqueidentifier yes LOCALPRECINCTCODE.ID FK to LOCALPRECINCTCODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
ADDRESSID uniqueidentifier yes ADDRESS.LOCALID FK to ADDRESS
MANUALEXCEPTIONSIMILARADDRESSID uniqueidentifier yes ADDRESS.LOCALID

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHCONSTITUENTUPDATEADDRESSES_ADDRESSID ADDRESSID
IX_BATCHCONSTITUENTUPDATEADDRESSES_BATCHCONSTITUENTUPDATEID BATCHCONSTITUENTUPDATEID
IX_BATCHCONSTITUENTUPDATEADDRESSES_DATEADDED DATEADDED yes
IX_BATCHCONSTITUENTUPDATEADDRESSES_DATECHANGED DATECHANGED
IX_BATCHCONSTITUENTUPDATEADDRESSES_MANUALEXCEPTIONSIMILARADDRESSID MANUALEXCEPTIONSIMILARADDRESSID
PK_BATCHCONSTITUENTUPDATEADDRESSES ID yes yes

Triggers

Trigger Name Description
TR_BATCHCONSTITUENTUPDATEADDRESSES_AUDIT_UPDATE
TR_BATCHCONSTITUENTUPDATEADDRESSES_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHREVENUECONSTITUENTEDITINFO BATCHCONSTITUENTUPDATEADDRESSESID