APPEALATTACHMENT (4.0SP17)

This table contains attachments belonging to appeals.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

AUTHORID

uniqueidentifier

true

The author of the attachment.

APPEALATTACHMENTTYPECODEID

uniqueidentifier

false

Indicates the user-defined type of this attachment.

APPEALID

uniqueidentifier

false

The appeal record to which this attachment belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATEENTERED

datetime

false

The date the attachment was entered.

TITLE

nvarchar(50)

false

''

The title of the attachment.

FILENAME

nvarchar(255)

false

''

The original file name for the attachment.

FILE

varbinary

false

The actual file for the attachment.

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_APPEALATTACHMENT_APPEALID

APPEALID

False

False

False

IX_APPEALATTACHMENT_AUTHORID

AUTHORID

False

False

False

IX_APPEALATTACHMENT_DATEADDED

DATEADDED

False

False

True

IX_APPEALATTACHMENT_DATECHANGED

DATECHANGED

False

False

False

PK_APPEALATTACHMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_APPEALATTACHMENT_AUDIT_UPDATE

TR_APPEALATTACHMENT_AUDIT_DELETE