FAFIMAGES (4.0SP20)

Table containing images/photos uploaded by the constituents/participants of a fundraising event.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CONSTITUENTID

uniqueidentifier

true

The image owner constituent id

EVENTID

uniqueidentifier

true

The event id related to this Image

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(256)

false

''

Label/name of the image.

DESCRIPTION

nvarchar(256)

false

''

Description of the image.

FILENAME

nvarchar(256)

false

''

Name of file with extension

UPLOADFILENAME

nvarchar(256)

false

''

Path, filename and extension of the originally uploaded file.

IMAGETYPE

nvarchar(50)

false

''

Mime type of the image.

IMAGESIZE

int

false

0

Number of bytes in the image.

IMAGECONTENT

varbinary

true

The serialized image file.

CAPTION

nvarchar(256)

false

''

APPROVED

bit

false

0

Flag to be used for needed approval.

PRIVATE

bit

false

0

Flag images only viewable by the participant.

PHOTOGRAPHER

nvarchar(256)

false

''

Image creator.

PHOTODATETAKEN

datetime

true

Date the photo was taken.

TAGS

nvarchar(256)

false

''

Tags to assign photo, space separated.

EXTERNALFLAG

bit

false

0

Flags photos housed at external sources.

IMAGESOURCECODE

tinyint

false

0

Where the image was added from.

IMAGESOURCE

nvarchar(11) (Computed)

true

Provides a translation for the 'IMAGESOURCECODE' field.

EXTERNALURL

nvarchar(256)

false

''

URL to image if the image is not contained in the IMAGECONTENT.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_FAFIMAGES_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_FAFIMAGES_DATEADDED

DATEADDED

False

False

True

IX_FAFIMAGES_DATECHANGED

DATECHANGED

False

False

False

PK_FAFIMAGES

ID

True

True

False

Triggers
Trigger Name Description

TR_FAFIMAGES_AUDIT_UPDATE

TR_FAFIMAGES_AUDIT_DELETE