FAFPARTICIPANTGALLERYIMAGES

Store images here to be used in the participant's image gallery

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(256) Default = '' Label/name of the image.
DESCRIPTION nvarchar(256) Default = '' Description of the image.
CAPTION nvarchar(256) Default = ''
PRIVATE bit Default = 0 Flag images only viewable by the participant.
SORTORDER int Default = 0 Order the items should be displayed.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID The image owner constituent id
EVENTID uniqueidentifier yes EVENT.ID The event id related to this Image
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
SITEIMAGESID int SiteImages.ID FK to SITEIMAGES

Indexes

Index Name Fields Unique Primary Clustered
IX_FAFPARTICIPANTGALLERYIMAGES_CONSTITUENTID CONSTITUENTID
IX_FAFPARTICIPANTGALLERYIMAGES_DATEADDED DATEADDED yes
IX_FAFPARTICIPANTGALLERYIMAGES_DATECHANGED DATECHANGED
PK_FAFPARTICIPANTGALLERYIMAGES ID yes yes

Triggers

Trigger Name Description
TR_FAFPARTICIPANTGALLERYIMAGES_AUDIT_UPDATE
TR_FAFPARTICIPANTGALLERYIMAGES_AUDIT_DELETE