SPONSORBENEFITEXTENSION

FAF Event Benefit Extension

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.
QUANTITY int Default = 0 The number of benefit items associated with this detail record.
DETAILS nvarchar(255) Default = ''
UNITVALUE money Default = 0 The unit value of the benefit item.
TOTALVALUE money Default = 0 Then total value of the benefit item(s).

Foreign Keys

Foreign Key Field Type Null Notes Description
SPONSORID uniqueidentifier EVENTSPONSOR.ID Foreign Key to EVENTSPONSOR table
BENEFITID uniqueidentifier BENEFIT.ID Foreign key to BENEFIT table
EVENTSPONSORSHIPTYPEID uniqueidentifier EVENTSPONSORSHIPTYPE.ID FK to EVENTSPONSORSHIPTYPE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with the benefit.

Indexes

Index Name Fields Unique Primary Clustered
IX_SPONSORBENEFITEXTENSION_DATEADDED DATEADDED yes
IX_SPONSORBENEFITEXTENSION_DATECHANGED DATECHANGED
IX_SPONSORBENEFITEXTENSION_SPONSORID_BENEFITID_EVENTSPONSORSHIPTYPEID SPONSORID, BENEFITID, EVENTSPONSORSHIPTYPEID
PK_SPONSORBENEFITEXTENSION ID yes yes

Triggers

Trigger Name Description
TR_SPONSORBENEFITEXTENSION_AUDIT_UPDATE
TR_SPONSORBENEFITEXTENSION_AUDIT_DELETE