DESIGNATIONLEVELATTACHMENT (4.0SP20)

This table contains attachments belonging to a Fundraising Purpose.

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.

DESIGNATIONLEVELATTACHTYPECODEID

uniqueidentifier

false

Indicates the user-defined type of this attachment.

DESIGNATIONLEVELID

uniqueidentifier

false

The designation level 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_DESIGNATIONLEVELATTACHMENT_AUTHORID

AUTHORID

False

False

False

IX_DESIGNATIONLEVELATTACHMENT_DATEADDED

DATEADDED

False

False

True

IX_DESIGNATIONLEVELATTACHMENT_DATECHANGED

DATECHANGED

False

False

False

IX_DESIGNATIONLEVELATTACHMENT_DESIGNATIONLEVELID

DESIGNATIONLEVELID

False

False

False

PK_DESIGNATIONLEVELATTACHMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_DESIGNATIONLEVELATTACHMENT_AUDIT_UPDATE

TR_DESIGNATIONLEVELATTACHMENT_AUDIT_DELETE