BATCHPHONEFINDER

Stores PhoneFinder batch information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0
PHONENUMBER nvarchar(20) Default = '' The phone number to insert or update
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.
PHONEMATCHTYPE nvarchar(1) Default = '' The match type returned by the PhoneFinder service
MATCHCOMPOSITESCORE nvarchar(5) Default = '' The match composite score returned by the PhoneFinder service
PHONESTATUS nvarchar(1) Default = '' The phone status returned by the PhoneFinder service
DONOTCALLSTATUS nvarchar(1) Default = '' The phone's do not call status returned by the PhoneFinder service
PHONEVERIFIED bit Default = 0 Whether or not the phone was verified by the finder process

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHID uniqueidentifier BATCH.ID The batch the data in this table belongs to
PHONEFINDERID uniqueidentifier PHONEFINDER.ID This batch's parent PhoneFinder process
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID The constituent to update
ADDRESSID uniqueidentifier yes ADDRESS.LOCALID The address of the constituent to update
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHPHONEFINDER_ADDRESSID ADDRESSID
IX_BATCHPHONEFINDER_CONSTITUENTID CONSTITUENTID
IX_BATCHPHONEFINDER_DATEADDED DATEADDED yes
IX_BATCHPHONEFINDER_DATECHANGED DATECHANGED
PK_BATCHPHONEFINDER ID yes yes

Triggers

Trigger Name Description
TR_BATCHPHONEFINDER_AUDIT_UPDATE
TR_BATCHPHONEFINDER_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHPHONEFINDERBATCHSYSTEMMESSAGES BATCHPHONEFINDERID
BATCHPHONEFINDERBATCHUSERMESSAGE ID