BATCHCONSTITUENTPHONE (4.0SP17)

Stores constituent phone batch information.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHCONSTITUENTID

uniqueidentifier

false

FK to BATCHCONSTITUENT

PHONETYPECODEID

uniqueidentifier

true

FK to PHONETYPECODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

COUNTRYID

uniqueidentifier

true

The country for this phone number.

Fields
Field Field Type Null Notes Description

NUMBER

nvarchar(100)

false

''

ISPRIMARY

bit

false

0

SEQUENCE

int

false

0

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

STARTTIME

UDT_HOURMINUTE

false

''

Time that the phone number becomes valid.

ENDTIME

UDT_HOURMINUTE

false

''

Time that the phone number becomes no longer valid.

STARTDATE

date

true

The date the phone number becomes valid.

SEASONALSTARTDATE

UDT_MONTHDAY

false

'0000'

For seasonal phone types only: DD/MM start date of when this phone should be considered.

SEASONALENDDATE

UDT_MONTHDAY

false

'0000'

For seasonal phone types only: DD/MM end date of when this phone should be considered.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHCONSTITUENTPHONE_DATEADDED

DATEADDED

False

False

True

IX_BATCHCONSTITUENTPHONE_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHCONSTITUENTPHONE

ID

True

True

False

UIX_BATCHCONSTITUENTPHONE_BATCHCONSTITUENTID_PHONETYPECODEID_NUMBER

BATCHCONSTITUENTID

PHONETYPECODEID

NUMBER

True

False

False

Triggers
Trigger Name Description

TR_BATCHCONSTITUENTPHONE_AUDIT_UPDATE

TR_BATCHCONSTITUENTPHONE_AUDIT_DELETE