Space Docs
Domain Model

Deficiency Report

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
workspaceIdstringYes—ID of the associated workspace
siteIdstringYes—ID of the associated site
workOrderIdstringNo—ID of the associated work order
workPackageIdunknownNo—ID of the associated work package
inspectionDatestring.date-timeYes—Inspection date
inspectorIdstringYes—ID of the associated inspector
reportStatusenum(draft, submitted, reviewed, closed)Yes—Report status
deficiencyCountintegerYes—Deficiency count
summarystringYes—Summary
findingsunknownYes—Findings
remediationQuoteIdstringNo—ID of the associated remediation quote
remediationWorkOrderIdstringNo—ID of the associated remediation work order
reviewedBystringNo—Reviewed by
reviewedAtstring.date-timeNo—Reviewed at
notesstringNo—Notes
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
workspaceIdstringNo—ID of the associated workspace
siteIdstringYes—ID of the associated site
workOrderIdstringNo—ID of the associated work order
workPackageIdstringNo—ID of the associated work package
inspectionDatestring.date-timeYes—Inspection date
inspectorIdstringYes—ID of the associated inspector
reportStatusenum(draft, submitted, reviewed, closed)Yes"draft"Report status
deficiencyCountintegerYes—Deficiency count
summarystringYes—Summary
findingsunknownYes[]Findings
remediationQuoteIdstringNo—ID of the associated remediation quote
remediationWorkOrderIdstringNo—ID of the associated remediation work order
reviewedBystringNo—Reviewed by
reviewedAtstring.date-timeNo—Reviewed at
notesstringNo—Notes
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
siteIdstringNo—ID of the associated site
workOrderIdstringNo—ID of the associated work order
workPackageIdstringNo—ID of the associated work package
inspectionDatestring.date-timeNo—Inspection date
reportStatusenum(draft, submitted, reviewed, closed)No—Report status
deficiencyCountintegerNo—Deficiency count
summarystringNo—Summary
findingsunknownNo—Findings
remediationQuoteIdstringNo—ID of the associated remediation quote
remediationWorkOrderIdstringNo—ID of the associated remediation work order
reviewedBystringNo—Reviewed by
reviewedAtstring.date-timeNo—Reviewed at
notesstringNo—Notes

On this page