ZRM Docs
Domain Model

Document

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
customerIdstringNoID of the associated customer
vendorIdstringNoID of the associated vendor
siteIdstringNoID of the associated site
relatedEntityTypestringNoRelated entity type
relatedEntityIdstringNoID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, other)YesDocument type
filenamestringYesFilename
objectStorageKeystringYesObject storage key
mimeTypestringNoMime type
uploadedByUserIdstringNoID of the associated uploaded by user
documentDatestring.date-timeNoDocument date
versionintegerYesVersion
extractionStatusenum(pending, processing, completed, failed, not_applicable)YesExtraction status
aiSummarystringNoAi summary
classificationTagsstring[]NoClassification tags
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
vendorIdstringNoID of the associated vendor
siteIdstringNoID of the associated site
relatedEntityTypestringNoRelated entity type
relatedEntityIdstringNoID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, other)YesDocument type
filenamestringYesFilename
objectStorageKeystringYesObject storage key
mimeTypestringNoMime type
uploadedByUserIdstringNoID of the associated uploaded by user
documentDatestring.date-timeNoDocument date
versionintegerYes1Version
extractionStatusenum(pending, processing, completed, failed, not_applicable)Yes"pending"Extraction status
aiSummarystringNoAi summary
classificationTagsstring[]NoClassification tags
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
vendorIdstringNoID of the associated vendor
siteIdstringNoID of the associated site
relatedEntityTypestringNoRelated entity type
relatedEntityIdstringNoID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, other)NoDocument type
filenamestringNoFilename
objectStorageKeystringNoObject storage key
mimeTypestringNoMime type
uploadedByUserIdstringNoID of the associated uploaded by user
documentDatestring.date-timeNoDocument date
aiSummarystringNoAi summary
classificationTagsstring[]NoClassification tags

On this page