ATTACHMENT Table

The Attachment table stores all identifying information about the letters, faxes, e-mail messages, URLs and other files that are attached to accounts, contacts, opportunities, tickets, defects, contracts, and procedures. The table stores information such as description, date attached, file size and name, and identifying data.

If you applied the SLX Indexes for MS SQL.sql script to your database, your index information may be different than described in this topic.  For more information, see the Index Changes.pdf document.

Legend
 

Field Datatype (Length) Allow Nulls Indexes Relationship Related Table and Field

ATTACHID (PK)

STANDARDID

NOT NULL

ATTACHMENT_ATTACHID_PK (CA)

(One) to (Many)

REMOTEATTACHMENTS.ATTACHID

ATTACHDATE

datetime

NULLS

 

 

 

ACCOUNTID (FK)

STANDARDID

NULLS

ATTACHMENT_ACCOUNTID (IE)

(Many) to (One)

ACCOUNT.ACCOUNTID

CONTACTID (FK)

STANDARDID

NULLS

ATTACHMENT_CONTACTID (IE)

(Many) to (One)

CONTACT.CONTACTID

OPPORTUNITYID (FK)

STANDARDID

NULLS

ATTACHMENT_OPPORTUNITYID (IE)

(Many) to (One)

OPPORTUNITY.OPPORTUNITYID

DESCRIPTION

varchar(128)

NULLS

 

 

 

DATATYPE

BOOLEAN

NULLS

 

 

 

FILESIZE

int

NULLS

 

 

 

FILENAME

varchar(255)

NULLS

 

 

 

USERID (FK)

STANDARDID

NULLS

 

(Many) to (One)

 

USERSECURITY.USERID

DATA

DATABLOB

NULLS

 

 

 

CONTRACTID (FK)

STANDARDID

NULLS

 

(Many) to (One)

CONTRACT.CONTRACTID

DEFECTID (FK)

STANDARDID

NULLS

 

(Many) to (One)

DEFECT.DEFECTID

DOCUMENTTYPE

varchar(80)

NULLS

 

 

 

PROCEDUREID (FK)

STANDARDID

NULLS

ATTACHMENT_PROCEDUREID (IE)

(Many) to (One)

 

PROCEDURE.PROCEDUREID

PRODUCTID (FK)

STANDARDID

NULLS

ATTACHMENT_PRODUCTID (IE)

(Many) to (One)

 

PRODUCT.PRODUCTID

RMAID (FK)

STANDARDID

NULLS

ATTACHMENT_RMAID (IE)

(Many) to (One)

RMA.RMAID

TICKETID (FK)

STANDARDID

NULLS

ATTACHMENT_TICKETID (IE)

(Many) to (One)

TICKET.TICKETID

HISTORYID (FK)

char(12)

NULLS

ATTACHMENT_HISTORYID (IE)

(Many) to (One)

HISTORY.HISTORYID

MODIFYDATE

datetime

NULLS

 

 

 

MODIFYUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

CREATEDATE

datetime

NULLS

 

 

 

CREATEUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

LEADID (FK)

char(12)

NULLS

 

(Many) to (One)

LEAD.LEADID

ACTIVITYID (FK)

varchar(12)

NULLS

 

(Many) to (One)

ACTIVITY.ACTIVITYID

SALESORDERID (FK)

char(12)

NULLS

 

(Many) to (One)

SALESORDER.SALESORDERID

CREATESOURCE

varchar(64)

NULLS

 

 

 

QUOTEID (FK)

varchar(12)

NULLS

 

(Many) to (One)

QUOTE.QUOTEID