Skip to content

dbo.primeAttachment ​

Info Generated by scripts/Generate-DataDictionary.ps1 - do not edit by hand. Edit descriptions in schemas/tables/dbo.primeAttachment.json and regenerate.

Columns ​

#ColumnTypeNullableFlagsDescription
1iduniqueidentifiernoPrimary key / unique identifier for this record
2descriptiontext(16)yesFree-text description
3file_namevarchar(255)noOriginal file name of the uploaded attachment
4attachmentTypeIduniqueidentifieryesForeign key to primeAttachmentType
5attachmentStatusvarchar(50)noStatus of the attachment upload/processing
6mimeTypevarchar(50)noMIME content type of the file
7sizeintyesFile size in bytes
8urltext(16)yesURL/link to the resource
9objectIduniqueidentifieryesIdentifier of the related object this record applies to
10objectTypevarchar(50)noType of the related object this record applies to (e.g. Job, Contact)
11createdAtdatetimeyesTimestamp the record was created
12createdByvarchar(100)yesUser/system that created the record
13versionintyesOptimistic-concurrency row version number

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__primeAtt__3213E83F2D83DD90CLUSTEREDyesyesid
IX_primeAttachment_attachmentTypeId_objectIdNONCLUSTEREDattachmentTypeId, objectId
IX_primeAttachment_attachmentTypeIdNONCLUSTEREDattachmentTypeId, file_namecreatedAt, objectId, objectType

Relationships (inferred) ​

FromToConfidence
dbo.primeAttachment.attachmentTypeIddbo.primeAttachmentType.idhigh
dbo.primeAttachment.objectIddbo.primeJobs.Idmedium

Referenced by ​

Procedures: dbo.spPrimeGetAttachmentInformation, dbo.spPrimeGetJobAttachments, dbo.spPrimeUpsertAttachments