EVENTSPONSOR

This table includes details about constituents who perform a sponsorship for a specific event.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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.
EVENTSPONSORSHIPLOGOID int Default = 0 Event Sponsor Logo image id
EVENTSPONSORSHIPURL UDT_WEBADDRESS Default = '' Event sponsor URL
SPONSORSHIPMESSAGE nvarchar(2000) Default = '' FAF Event sponsor message
FEESAMOUNT money Default = 0 The final amount sponsor paid.
ORGANIZATIONCONSTITUENTID uniqueidentifier yes The constituent ID of the organization record.
BENEFITSWAIVED bit Default = 0 Indicates if this registrant has waived benefits.
ISCANCELLED bit Default = 0 Designates whether or not the registrant has cancelled.
CUSTOMIDENTIFIER nvarchar(100) Default = '' User-definable custom identifier.
SEQUENCEID int Identity column used to increment the default lookupid.
LOOKUPID nvarchar(100) (Computed) yes (CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN 'evspn-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) Unique identifier that supports user defined values as well as system generated values.
FEESWAIVED bit Default = 0 Indicates if this registration fee is waived.
ALLOWADMINACCESSHQ bit Default = 1

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier EVENT.ID FK to EVENT
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
EVENTSPONSORSHIPTYPEID uniqueidentifier EVENTSPONSORSHIPTYPE.ID FK to EVENTSPONSORSHIPTYPE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CREDITCARDID uniqueidentifier yes CREDITCARD.ID Foreign Key to CREDITCARD table

Indexes

Index Name Fields Unique Primary Clustered
IX_EVENTSPONSOR_CONSTITUENTID CONSTITUENTID
IX_EVENTSPONSOR_DATEADDED DATEADDED yes
IX_EVENTSPONSOR_DATECHANGED DATECHANGED
IX_EVENTSPONSOR_EVENTID EVENTID
IX_EVENTSPONSOR_EVENTSPONSORSHIPTYPEID EVENTSPONSORSHIPTYPEID
PK_EVENTSPONSOR ID yes yes
UC_EVENTSPONSOR_LOOKUPID LOOKUPID yes

Triggers

Trigger Name Description
TR_EVENTSPONSOR_AUDIT_UPDATE
TR_EVENTSPONSOR_AUDIT_DELETE

Referenced by

Referenced by Field
SPONSORBENEFITEXTENSION SPONSORID
SPONSORBENEFITOPTION SPONSORID
SPONSORDONATION SPONSORID