GLACCOUNTCODEATTACHMENT (4.0SP20)

This table contains attachments belonging to account code.

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.

ACCOUNTCODEATTACHMENTTYPECODEID

uniqueidentifier

false

Indicates the user-defined type of this attachment.

GLACCOUNTCODEID

uniqueidentifier

false

The account code 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 that the attachment was entered

TITLE

nvarchar(50)

false

''

The title of the attachment.

FILE

varbinary

false

The actual file for the attachment.

FILENAME

nvarchar(255)

false

''

The original file name 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_GLACCOUNTCODEATTACHMENT_AUTHORID

AUTHORID

False

False

False

IX_GLACCOUNTCODEATTACHMENT_DATEADDED

DATEADDED

False

False

True

IX_GLACCOUNTCODEATTACHMENT_DATECHANGED

DATECHANGED

False

False

False

IX_GLACCOUNTCODEATTACHMENT_GLACCOUNTCODEID

GLACCOUNTCODEID

False

False

False

PK_GLACCOUNTCODEATTACHMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_GLACCOUNTCODEATTACHMENT_AUDIT_UPDATE

TR_GLACCOUNTCODEATTACHMENT_AUDIT_DELETE