Domain Model
Inspection Result
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| pmScheduleId | string | Yes | — | ID of the associated pm schedule |
| systemId | string | No | — | ID of the associated system |
| assetId | string | No | — | ID of the associated asset |
| result | enum(pass, fail, partial, not_inspected) | Yes | — | Result |
| findings | string | No | — | Findings |
| recommendations | string | No | — | Recommendations |
| inspectedByUserId | string | No | — | ID of the associated inspected by user |
| inspectedAt | string.date-time | No | — | Inspected at |
| workspaceId | string | Yes | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| pmScheduleId | string | Yes | — | ID of the associated pm schedule |
| systemId | string | No | — | ID of the associated system |
| assetId | string | No | — | ID of the associated asset |
| result | enum(pass, fail, partial, not_inspected) | Yes | — | Result |
| findings | string | No | — | Findings |
| recommendations | string | No | — | Recommendations |
| inspectedByUserId | string | No | — | ID of the associated inspected by user |
| inspectedAt | string.date-time | No | — | Inspected at |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| systemId | string | No | — | ID of the associated system |
| assetId | string | No | — | ID of the associated asset |
| result | enum(pass, fail, partial, not_inspected) | No | — | Result |
| findings | string | No | — | Findings |
| recommendations | string | No | — | Recommendations |
| inspectedByUserId | string | No | — | ID of the associated inspected by user |
| inspectedAt | string.date-time | No | — | Inspected at |