JOURNALENTRYANNOTATION (4.0SP20)

Contains journal entry annotations.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

JOURNALENTRYID

uniqueidentifier

false

The FK to the JournalEntry Table.

APPUSERID

uniqueidentifier

true

The FK to the Application User table. Indicates which user added this annotation, if any.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ANNOTATIONCATEGORYCODE

tinyint

false

2

Annotation category

ANNOTATIONCATEGORY

nvarchar(18) (Computed)

true

Provides a translation for the 'ANNOTATIONCATEGORYCODE' field.

REFERENCENAME

nvarchar(255)

false

''

Name of field or other item this annotation is associated with.

SEQUENCE

int

false

0

Sequence of this journal entry annotation.

TEXT

nvarchar(4000)

false

''

Annotation associated with this journal entry.

VALIDATIONCODE

int

false

0

Error and warning codes

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_JOURNALENTRYANNOTATION_DATEADDED

DATEADDED

False

False

True

IX_JOURNALENTRYANNOTATION_DATECHANGED

DATECHANGED

False

False

False

PK_JOURNALENTRYANNOTATION

ID

True

True

False

UIX_JOURNALENTRYANNOTATION_JOURNALENTRYID_REFERENCENAME_ANNOTATIONCATEGORYCODE_SEQUENCE

JOURNALENTRYID

REFERENCENAME

ANNOTATIONCATEGORYCODE

SEQUENCE

True

False

False

Triggers
Trigger Name Description

TR_JOURNALENTRYANNOTATION_AUDIT_UPDATE

TR_JOURNALENTRYANNOTATION_AUDIT_DELETE