PROSPECTMANAGERHISTORY

Stores historical information on prospect managers.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEFROM datetime yes The date that the fundraiser became associated with the prospect.
DATETO datetime The date that the fundraiser ceased to be associated with the prospect.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
PROSPECTID uniqueidentifier PROSPECT.LOCALID FK to PROSPECT
FUNDRAISERID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROSPECTMANAGERHISTORY_DATEADDED DATEADDED yes
IX_PROSPECTMANAGERHISTORY_DATECHANGED DATECHANGED
IX_PROSPECTMANAGERHISTORY_FUNDRAISERID FUNDRAISERID
IX_PROSPECTMANAGERHISTORY_PROSPECTID PROSPECTID
PK_PROSPECTMANAGERHISTORY ID yes yes

Triggers

Trigger Name Description
TR_PROSPECTMANAGERHISTORY_AUDIT_UPDATE
TR_PROSPECTMANAGERHISTORY_AUDIT_DELETE