FAFINCENTIVELEVEL

Incentive Level FAF event

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' Name of the Incentive Level
DESCRIPTION nvarchar(1000) Default = '' Description of the Incentive Level
TYPECODE tinyint Default = 1 Type of Incentive Level
MAXIMUMAMOUNT money Default = 0 Maximum amount for Fundraising
MAXIMUMNUMBER int Default = 0 Maximum number for Participant recruitment, Communications and Volunteer recruitment
MAXIMUMRETENTION decimal(6, 5) Default = 0 Maximum retention for Donor retention
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.
TYPE nvarchar(23) (Computed) yes CASE [TYPECODE] WHEN 1 THEN N'Fundraising' WHEN 2 THEN N'Participant recruitment' WHEN 3 THEN N'Donation retention' WHEN 4 THEN N'Communications' WHEN 5 THEN N'Volunteer recruitment' END Provides a translation for the 'TYPECODE' field.
COPYSOURCEID uniqueidentifier yes Original copy from ID
COPYBATCHGUID uniqueidentifier yes Copy batch ID

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier EVENT.ID Event ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_FAFINCENTIVELEVEL_DATEADDED DATEADDED yes
IX_FAFINCENTIVELEVEL_DATECHANGED DATECHANGED
PK_FAFINCENTIVELEVEL ID yes yes
UIX_FAFINCENTIVELEVEL_EVENTID_TYPE_MAXIMUMAMOUNT_MAXIMUMNUMBER_MAXIMUMRETENTION EVENTID, TYPE, MAXIMUMAMOUNT, MAXIMUMNUMBER, MAXIMUMRETENTION yes

Triggers

Trigger Name Description
TR_FAFINCENTIVELEVEL_AUDIT_UPDATE
TR_FAFINCENTIVELEVEL_AUDIT_DELETE

Referenced by

Referenced by Field
FAFINCENTIVELEVELBENEFIT FAFINCENTIVELEVELID