REGISTRANTBENEFITEXTENSION

Registrant Benefit Extension

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
BENEFITPREFERENCE nvarchar(500) Default = '' Benefit Option Preference
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.
BENEFITTYPECODE tinyint Default = 1 Type of Benefit
BENEFITTYPE nvarchar(33) (Computed) yes CASE [BENEFITTYPECODE] WHEN 0 THEN N'Registration' WHEN 1 THEN N'Fundraising incentive' WHEN 2 THEN N'Participant recruitment incentive' WHEN 3 THEN N'Donation retention incentive' WHEN 4 THEN N'Communications incentive' WHEN 5 THEN N'Volunteer recruitment incentive' END Provides a translation for the 'BENEFITTYPECODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
REGISTRANTID uniqueidentifier REGISTRANT.ID Foreign Key to REGISTRANT table
BENEFITID uniqueidentifier BENEFIT.ID Foreign key to Registrant table
BENEFITOPTIONID uniqueidentifier yes BENEFITOPTION.ID FK to BENEFITOPTION
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_REGISTRANTBENEFITEXTENSION_DATEADDED DATEADDED yes
IX_REGISTRANTBENEFITEXTENSION_DATECHANGED DATECHANGED
PK_REGISTRANTBENEFITEXTENSION ID yes yes
UIX_REGISTRANTBENEFITEXTENSION_REGISTRANTID_BENEFITID_BENEFITOPTIONID REGISTRANTID, BENEFITID, BENEFITOPTIONID yes

Triggers

Trigger Name Description
TR_REGISTRANTBENEFITEXTENSION_AUDIT_UPDATE
TR_REGISTRANTBENEFITEXTENSION_AUDIT_DELETE