TEAMEXTENSION

Additional fields related to team

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PARTICIPANTGOAL int Default = 0 Total Participant Goal
TEAMMEMBERGOAL int Default = 0 Total Team Member Goal
STATUSCODE tinyint Default = 0 Team Status
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.
VOLUNTEERGOAL int Default = 0 Total Volunteer Recruitment Goal
COMMUNICATIONGOAL int Default = 0 Communication Goal
OTHERGOAL int Default = 0 Custom Goal
PCTTEAMMEMBERRETENSION decimal(9, 4) Default = 0 Percentage of Team Members to retain
TEAMRECRUITMENTGOAL int Default = 0 Total number of Teams in a Company
PCTTEAMSRETENSION decimal(9, 4) Default = 0 Percentage of Teams to retain in a Company
TYPECODE tinyint Default = 1 Type
TYPE nvarchar(9) (Computed) yes CASE [TYPECODE] WHEN 1 THEN N'Team' WHEN 2 THEN N'Company' WHEN 3 THEN N'Household' END Provides a translation for the 'TYPECODE' field.
TARGETFUNDRAISINGGOAL money Default = 0 Target fundraising goal
DONORRETENTIONGOAL decimal(9, 4) Default = 0 Percentage of Donors to Retain
STATUS nvarchar(8) (Computed) yes CASE [STATUSCODE] WHEN 0 THEN N'Active' WHEN 1 THEN N'Pending' WHEN 2 THEN N'Declined' END Provides a translation for the 'STATUSCODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
TEAMFUNDRAISINGTEAMID uniqueidentifier TEAMFUNDRAISINGTEAM.ID Foreign Key to TEAMFUNDRAISINGTEAM table
EVENTID uniqueidentifier EVENT.ID Foreign Key to EVENT table
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
FAFFUNDRAISINGGAUGEID uniqueidentifier yes FAFFUNDRAISINGGAUGE.ID Foreign Key to Event table
HOUSEHOLDID uniqueidentifier yes GROUPDATA.ID Foreign Key to GROUPDATA table
TEAMCONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID FK to CONSTITUENT
NFGCAMPAIGNLEVELID uniqueidentifier yes FAFNFGCAMPAIGNLEVEL.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_TEAMEXTENSION_DATEADDED DATEADDED yes
IX_TEAMEXTENSION_DATECHANGED DATECHANGED
IX_TEAMEXTENSION_TEAMCONSTITUENTID TEAMCONSTITUENTID
IX_TEAMEXTENSION_TEAMFUNDRAISINGTEAMID TEAMFUNDRAISINGTEAMID
PK_TEAMEXTENSION ID yes yes
UIX_TEAMEXTENSION_EVENTID_TEAMFUNDRAISINGTEAMID EVENTID, TEAMFUNDRAISINGTEAMID yes

Triggers

Trigger Name Description
TR_TEAMEXTENSION_INSERT_FAFGROUPDIRECTHIERARCHY
TR_TEAMEXTENSION_UPDATE_TEAMCONSTITUENT
TR_TEAMEXTENSION_AUDIT_UPDATE
TR_TEAMEXTENSION_AUDIT_DELETE