BATCHPEOPLEFINDER

Stores PeopleFinder batch information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0
NEWADDRESSBLOCK nvarchar(150) Default = '' The new address received from DES.
NEWCITY nvarchar(50) Default = '' The new city received from DES.
NEWPOSTCODE nvarchar(12) Default = '' The new post code received from DES.
OTHERLASTNAME nvarchar(100) Default = '' The new last name received from DES.
NEWPHONENUMBER nvarchar(100) Default = '' The new phone number received from DES.
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.
NEWADDRESSINFOSOURCE nvarchar(20) Default = '' The new info source received from DES.
DECEASEDYEAR UDT_FUZZYDATE Default = '00000000' The year deceased received from DES.
CONFIDENCELEVEL smallint Default = ((0)) The confidence level received from the third party as to how firm this information is.
SENDMAIL bit Default = 1 The value received from DES.
ISDECEASED bit Default = 0 The value received from DES.
DECEASEDYEARDISPLAY varchar(4) (Computed) yes case ISDECEASED when 1 then LEFT(DECEASEDYEAR,4) when 0 then '' end The display value for DECEASEDYEAR

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHID uniqueidentifier BATCH.ID FK to BATCH
PEOPLEFINDERID uniqueidentifier PEOPLEFINDER.ID FK to PEOPLEFINDER
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID FK to CONSTITUENT
OLDADDRESSID uniqueidentifier yes ADDRESS.LOCALID FK to ADDRESS
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
NEWSTATEID uniqueidentifier yes STATE.LOCALID The new state received from DES.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHPEOPLEFINDER_CONSTITUENTID CONSTITUENTID
IX_BATCHPEOPLEFINDER_DATEADDED DATEADDED yes
IX_BATCHPEOPLEFINDER_DATECHANGED DATECHANGED
IX_BATCHPEOPLEFINDER_OLDADDRESSID OLDADDRESSID
PK_BATCHPEOPLEFINDER ID yes yes

Triggers

Trigger Name Description
TR_BATCHPEOPLEFINDER_AUDIT_UPDATE
TR_BATCHPEOPLEFINDER_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHPEOPLEFINDERBATCHSYSTEMMESSAGES BATCHPEOPLEFINDERID
BATCHPEOPLEFINDERBATCHUSERMESSAGE ID