DEFAULTCOMMENT

This table contains the default comments.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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.
HTMLCOMMENT nvarchar(max) Default = '' The comment text including HTML formatting.
TEXTCOMMENT nvarchar(4000) Default = '' The plain text of the comment.
SEQUENCE int Default = 0 Sequence number for the comment
ISACTIVE bit Default = 1 Active or inactive comment

Foreign Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_DEFAULTCOMMENT_DATEADDED DATEADDED yes
IX_DEFAULTCOMMENT_DATECHANGED DATECHANGED
PK_DEFAULTCOMMENT ID yes yes
UIX_DEFAULTCOMMENT_SEQUENCE SEQUENCE yes

Triggers

Trigger Name Description
TR_DEFAULTCOMMENT_AUDIT_UPDATE
TR_DEFAULTCOMMENT_AUDIT_DELETE