PROSPECTPLANMANAGERHISTORY

Stores historical information on prospect plan primary and secondary managers.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ISPRIMARYMANAGER bit Default = 1 True if the fundraiser is the primary manager on the plan. Otherwise, the fundraiser is the secondary manager.
DATEFROM datetime yes The date that the fundraiser became associated with the prospect plan.
DATETO datetime The date that the fundraiser ceased to be associated with the prospect plan.
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
PROSPECTPLANID uniqueidentifier PROSPECTPLAN.ID FK to PROSPECTPLAN
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_PROSPECTPLANMANAGERHISTORY_DATEADDED DATEADDED yes
IX_PROSPECTPLANMANAGERHISTORY_DATECHANGED DATECHANGED
IX_PROSPECTPLANMANAGERHISTORY_FUNDRAISERID FUNDRAISERID
IX_PROSPECTPLANMANAGERHISTORY_PROSPECTPLANID PROSPECTPLANID
PK_PROSPECTPLANMANAGERHISTORY ID yes yes

Triggers

Trigger Name Description
TR_PROSPECTPLANMANAGERHISTORY_AUDIT_UPDATE
TR_PROSPECTPLANMANAGERHISTORY_AUDIT_DELETE