FAFFRIENDLYURLPARAMS

Extra parameters for FAF participant friendly url

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PAGETYPE int Default = 0 Page type
PARTICIPANTID uniqueidentifier Participant ID
CUSTOMIDENTIFIER nvarchar(100) Default = '' User-definable custom identifier.
SEQUENCEID int Identity column used to increment the default lookupid.
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.
LOOKUPID nvarchar(100) (Computed) yes (CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END)

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
NFGCAMPAIGNLEVELID uniqueidentifier yes FAFNFGCAMPAIGNLEVEL.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_FAFFRIENDLYURLPARAMS_DATEADDED DATEADDED yes
IX_FAFFRIENDLYURLPARAMS_DATECHANGED DATECHANGED
PK_FAFFRIENDLYURLPARAMS ID yes yes
UC_FAFFRIENDLYURLPARAMS_LOOKUPID LOOKUPID yes
UC_FAFFRIENDLYURLPARAMS_PARTICIPANTID PARTICIPANTID yes

Triggers

Trigger Name Description
TR_FAFFRIENDLYURLPARAMS_AUDIT_UPDATE
TR_FAFFRIENDLYURLPARAMS_AUDIT_DELETE