FAFREGISTRATIONTYPEGOAL

Goal section of FAFREGISTRATIONTYPE

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
REGTYPEGOALCODE tinyint Default = 0 Registration Type Goals
MINFUNDRAISING money Default = 0 Fundraising Goal
ISNOTLOWERFUNDRAISING bit Default = 0 Cannot be lower than Fundraising Goal
PARTICIPANTMUSTPAYBALANCE bit Default = 0 Participant Must Pay Balance
PARTICIPANTPAYSBALANCEMESSAGE nvarchar(1000) Default = '' Participant pays Balance Message
RECRUITEMENT int Default = 0 Recruitment Goal
ISNOTLOWERRECRUITEMENT bit Default = 0 Cannot be lower than Recruitment Goal
VOLUNTEERRECRUITEMENT int Default = 0 Volunteer Recruitment
ISNOTLOWERVOLUNTEERRECRUITEMENT bit Default = 0 Cannot be lower than Volunteer Recruitment Goal
DONORRETENTION decimal(9, 4) Default = 0 Donor Retention Goal
ISNOTLOWERDONORRETENTION bit Default = 0 Cannot be lower than Donor Retention Goal
UNIT int Default = 0 Unit Goal
ISNOTLOWERUNIT bit Default = 0 Cannot be lower than Unit Goal
COMMUNICATIONS int Default = 0 Communications Goal
ISNOTLOWERCOMMUNICATION bit Default = 0 Cannot be lower than Communications Goal
LABELFORUNIT nvarchar(50) Default = '' Label for Unit Goal
TEAMMEMBERS int Default = 0 Team Members Goal
ISNOTLOWERTEAMMEMBERS bit Default = 0 Cannot be lower than Team Members Goal
TEAMMEMBERRETENTION decimal(9, 4) Default = 0 Team Member Retention Goal
ISNOTLOWERTEAMMEMBERRETENTION bit Default = 0 Cannot be lower than Team Member Retention Goal
TEAMS int Default = 0 Teams Goal
ISNOTLOWERTEAMS bit Default = 0 Cannot be lower than Teams Goal
TEAMRETENTION decimal(9, 4) Default = 0 Team Retention Goal
ISNOTLOWERTEAMRETENTION bit Default = 0 Cannot be lower than Team Retention Goal
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.
TARGETFUNDRAISING money Default = 0 Target Fundraising Goal
ISNOTLOWERTARGETFUNDRAISING bit Default = 0 Cannot be lower than Target Fundraising Goal
REGTYPEGOAL nvarchar(15) (Computed) yes CASE [REGTYPEGOALCODE] WHEN 0 THEN N'Goals' WHEN 1 THEN N'Team Goals' WHEN 2 THEN N'Company Goals' WHEN 3 THEN N'Household Goals' END Provides a translation for the 'REGTYPEGOALCODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTPRICEID uniqueidentifier EVENTPRICE.ID Registration Product ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_FAFREGISTRATIONTYPEGOAL_DATEADDED DATEADDED yes
IX_FAFREGISTRATIONTYPEGOAL_DATECHANGED DATECHANGED
PK_FAFREGISTRATIONTYPEGOAL ID yes yes
UIX_FAFREGISTRATIONTYPEGOAL_EVENTPRICEID_REGTYPEGOALCODE EVENTPRICEID, REGTYPEGOALCODE yes

Triggers

Trigger Name Description
TR_FAFREGISTRATIONTYPEGOAL_AUDIT_UPDATE
TR_FAFREGISTRATIONTYPEGOAL_AUDIT_DELETE