COMMENT_TEXT (4.0)

Table containing FAF user comments, made on participants or media

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

EVENTID

uniqueidentifier

false

The id of the event this comment was made in. Useful for archiving.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

AUTHORCONSTITUENTID

uniqueidentifier

true

The constituent id of the comment author, if they are logged-in.

AUTHORNAME

nvarchar(100)

false

''

Full name of the comment author. Most useful for comments by non-constituents.

COMMENTTEXT

nvarchar(1000)

false

''

Full text of the posted comment

REFERENCEID

uniqueidentifier

false

GUID of the participant, image or video

REFERENCETYPECODE

tinyint

false

0

Commenttype that references a participant, image, or video

REFERENCETYPE

nvarchar(11) (Computed)

true

Provides a translation for the 'REFERENCETYPECODE' field.

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_COMMENT_TEXT_DATEADDED

DATEADDED

False

False

True

IX_COMMENT_TEXT_DATECHANGED

DATECHANGED

False

False

False

IX_COMMENT_TEXT_REFERENCEID

REFERENCEID

False

False

False

PK_COMMENT_TEXT

ID

True

True

False

Triggers
Trigger Name Description

TR_COMMENT_TEXT_AUDIT_UPDATE

TR_COMMENT_TEXT_AUDIT_DELETE