{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-betterment-schema.json",
  "title": "AssetBetterment",
  "description": "Capital work that extended one facility asset's life — an elevator modernization, a\nboiler retube, a major component replacement. A betterment re-bases the asset's\ndepreciation prospectively: the original basis keeps depreciating on its original\nschedule, and the capitalized amount becomes its own layer depreciating from\n`occurred_on` over the life the work bought. The asset's `purchase_date` is never\nchanged — that column is the depreciation start, the age basis, the replacement-value\nescalation base, the deferred-maintenance test and the renewal forecast anchor, and\nmoving it would claim the whole asset is new.\n\nDistinct from `AssetLifecycleEvent`, which models work expected in future and is keyed\nto an asset type. Distinct from a condition assessment, which records what someone\nobserved. Recording a betterment never implies either.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-asset-betterments-api-openapi.yml#/components/schemas/AssetBetterment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "asset_id": {
      "type": "string",
      "format": "uuid"
    },
    "occurred_on": {
      "type": "string",
      "format": "date",
      "description": "Date the work went into service — not the invoice date; the layer depreciates from here"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "capitalized_amount": {
      "type": "number",
      "description": "Amount added to the asset's value. Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "added_life_years": {
      "type": [
        "number",
        "null"
      ],
      "description": "Extra service life the work bought, in years"
    },
    "asset_lifecycle_event_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The lifecycle strategy event this executed, if any"
    },
    "work_order_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "asset_cost_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The cost row holding the spend, so the money is not double-entered"
    },
    "recorded_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}