BATCHCONSTITUENTUPDATEPHONES

Stores phones for constituent update batch.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0
NUMBER nvarchar(max) Default = ''
ISPRIMARY bit Default = 0
DONOTCALL 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.
SEASONALSTARTDATE UDT_MONTHDAY Default = '0000'
SEASONALENDDATE UDT_MONTHDAY Default = '0000'
STARTTIME UDT_HOURMINUTE Default = '' Time that the phone number becomes valid.
ENDTIME UDT_HOURMINUTE Default = '' Time that the phone number becomes no longer valid.
STARTDATE date yes The date the phone number becomes valid.
ENDDATE date yes The date the phone number 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
DONOTTEXT bit Default = 0
INFOSOURCECOMMENTS nvarchar(256) Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHCONSTITUENTUPDATEID uniqueidentifier BATCHCONSTITUENTUPDATE.ID FK to BATCHCONSTITUENTUPDATE
PHONETYPECODEID uniqueidentifier yes PHONETYPECODE.LOCALID FK to PHONETYPECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
COUNTRYID uniqueidentifier yes COUNTRY.LOCALID The country for this phone number.
INFOSOURCECODEID uniqueidentifier yes INFOSOURCECODE.ID
PHONEID uniqueidentifier yes PHONE.LOCALID

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHCONSTITUENTUPDATEPHONES_BATCHCONSTITUENTUPDATEID BATCHCONSTITUENTUPDATEID
IX_BATCHCONSTITUENTUPDATEPHONES_DATEADDED DATEADDED yes
IX_BATCHCONSTITUENTUPDATEPHONES_DATECHANGED DATECHANGED
PK_BATCHCONSTITUENTUPDATEPHONES ID yes yes

Triggers

Trigger Name Description
TR_BATCHCONSTITUENTUPDATEPHONES_AUDIT_UPDATE
TR_BATCHCONSTITUENTUPDATEPHONES_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHREVENUECONSTITUENTEDITINFO BATCHCONSTITUENTUPDATEPHONESID