JOURNALENTRYANNOTATION
Contains journal entry annotations.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
ANNOTATIONCATEGORYCODE |
tinyint |
|
Default = 2 |
Annotation category |
ANNOTATIONCATEGORY |
nvarchar(18) (Computed) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
JOURNALENTRYID |
uniqueidentifier |
|
JOURNALENTRY.ID
|
The FK to the JournalEntry Table. |
APPUSERID |
uniqueidentifier |
yes |
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_JOURNALENTRYANNOTATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_JOURNALENTRYANNOTATION_DATECHANGED |
DATECHANGED |
|
|
|
PK_JOURNALENTRYANNOTATION |
ID |
yes |
yes |
|
UIX_JOURNALENTRYANNOTATION_JOURNALENTRYID_REFERENCENAME_ANNOTATIONCATEGORYCODE_SEQUENCE |
JOURNALENTRYID, REFERENCENAME, ANNOTATIONCATEGORYCODE, SEQUENCE |
yes |
|
|
Triggers