| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
ANNOTATIONCATEGORYCODE |
tinyint | Default = 2 | Annotation category | |
ANNOTATIONCATEGORY |
nvarchar(18) (Computed) | ![]() |
CASE [ANNOTATIONCATEGORYCODE] WHEN 1 THEN N'Overridden Warning' WHEN 2 THEN N'Note' WHEN 3 THEN N'Unknown Value' WHEN 4 THEN N'Warning Message' WHEN 5 THEN N'Error Message' END | Provides a translation for the 'ANNOTATIONCATEGORYCODE' field. |
REFERENCENAME |
nvarchar(255) | Default = '' | Name of field or other item this annotation is associated with. | |
SEQUENCE |
int | Default = 0 | Sequence of this journal entry annotation. | |
TEXT |
nvarchar(4000) | Default = '' | Annotation associated with this journal entry. | |
VALIDATIONCODE |
int | Default = 0 | Error and warning codes | |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
JOURNALENTRYID |
uniqueidentifier | JOURNALENTRY.ID | The FK to the JournalEntry Table. | |
APPUSERID |
uniqueidentifier | ![]() |
APPUSER.ID | The FK to the Application User table. Indicates which user added this annotation, if any. |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_JOURNALENTRYANNOTATION_DATEADDED |
DATEADDED | ![]() |
||
IX_JOURNALENTRYANNOTATION_DATECHANGED |
DATECHANGED | |||
PK_JOURNALENTRYANNOTATION |
ID | ![]() |
![]() |
|
UIX_JOURNALENTRYANNOTATION_JOURNALENTRYID_REFERENCENAME_ANNOTATIONCATEGORYCODE_SEQUENCE |
JOURNALENTRYID, REFERENCENAME, ANNOTATIONCATEGORYCODE, SEQUENCE | ![]() |
| Trigger Name | Description |
|---|---|
TR_JOURNALENTRYANNOTATION_AUDIT_UPDATE |
|
TR_JOURNALENTRYANNOTATION_AUDIT_DELETE |

ID
ANNOTATIONCATEGORYCODE
ANNOTATIONCATEGORY
JOURNALENTRYID
IX_JOURNALENTRYANNOTATION_DATEADDED
IX_JOURNALENTRYANNOTATION_DATECHANGED