TEAMFUNDRAISER

Stores information pertaining to team fundraisers.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GOAL money Default = 0 The fundraising goal for the fundraising team.
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.
ORGANIZATIONGOAL money Default = 0 The Fundraising goal for the fundraising team in organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
APPEALID uniqueidentifier APPEAL.LOCALID FK to APPEAL
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from goal to organization goal.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with the fundraising team.

Indexes

Index Name Fields Unique Primary Clustered
IX_TEAMFUNDRAISER_BASECURRENCYID BASECURRENCYID
IX_TEAMFUNDRAISER_DATEADDED DATEADDED yes
IX_TEAMFUNDRAISER_DATECHANGED DATECHANGED
IX_TEAMFUNDRAISER_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_TEAMFUNDRAISER ID yes yes
UIX_TEAMFUNDRAISER_CONSTITUENTID_APPEALID CONSTITUENTID, APPEALID yes

Triggers

Trigger Name Description
TR_TEAMFUNDRAISER_INSERTUPDATE_CURRENCY
TR_TEAMFUNDRAISER_DELETE_BBNCTEAMFUNDRAISERIDMAP
TR_TEAMFUNDRAISER_INSERT_BBNCTEAMFUNDRAISERIDMAP
TR_TEAMFUNDRAISER_AUDIT_UPDATE
TR_TEAMFUNDRAISER_AUDIT_DELETE
TR_TEAMFUNDRAISER_MARKASCONSTITUENT

Referenced by

Referenced by Field
TEAMFUNDRAISINGTEAMMEMBER TEAMFUNDRAISERID