FAFRSSFEED

Table to store RSS Feeds

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
TYPECODE tinyint Default = 0 Type
RSSFEEDURL UDT_WEBADDRESS Default = '' url of the RSS Feed
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(11) (Computed) yes CASE [TYPECODE] WHEN 0 THEN N'Participant' WHEN 1 THEN N'Team' WHEN 2 THEN N'Company' WHEN 3 THEN N'Household' END Provides a translation for the 'TYPECODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier EVENT.ID The event id related to this Feed
REGISTRANTID uniqueidentifier yes REGISTRANT.ID The registrant id related to this Feed
TEAMFUNDRAISINGTEAMID uniqueidentifier yes TEAMFUNDRAISINGTEAM.ID The Team id related to this Feed
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_FAFRSSFEED_DATEADDED DATEADDED yes
IX_FAFRSSFEED_DATECHANGED DATECHANGED
IX_FAFRSSFEED_EVENTID_REGISTRANTID EVENTID, REGISTRANTID
PK_FAFRSSFEED ID yes yes

Triggers

Trigger Name Description
TR_FAFRSSFEED_AUDIT_UPDATE
TR_FAFRSSFEED_AUDIT_DELETE