{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-assetmovement-response-schema.json",
  "title": "AssetmovementResponse",
  "description": "Asset movement response body data",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-asset-movements-api-openapi.yml#/components/schemas/AssetmovementResponse",
  "properties": {
    "asset_id": {
      "description": "Asset ID",
      "type": "integer",
      "format": "int32"
    },
    "assigned_type": {
      "description": "Type of the entity to whom the asset is being assigned",
      "type": "string",
      "format": "string",
      "enum": [
        "staff",
        "spm",
        "visitor"
      ]
    },
    "assigned_staff_id": {
      "description": "ID of the staff to whom the asset is being assigned",
      "type": "integer",
      "format": "int32"
    },
    "assigned_spm_id": {
      "description": "ID of the contractor member to whom the asset is being assigned",
      "type": "integer",
      "format": "int32"
    },
    "assigned_visitor_id": {
      "description": "ID of the visitor to whom the asset is being assigned",
      "type": "integer",
      "format": "int32"
    },
    "signed_out": {
      "description": "Datetime when the asset is signed out",
      "type": "string",
      "format": "date-time"
    },
    "signed_in": {
      "description": "Datetime when the asset is signed in",
      "type": "string",
      "format": "date-time"
    },
    "dueback": {
      "description": "Dueback date for the asset",
      "type": "string",
      "format": "date-time"
    },
    "notes": {
      "description": "Notes for the asset movement",
      "type": "string",
      "format": "string"
    },
    "issued_out": {
      "description": "ID of the employee by whom the asset is issued out",
      "type": "string",
      "format": "int32"
    },
    "issued_in": {
      "description": "ID of the employee by whom the asset is issued in",
      "type": "string",
      "format": "int32"
    }
  },
  "type": "object"
}