{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assignar/json-schema/assignar-activity-schema.json",
  "title": "Activity",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assignar-activities-api-openapi.yml#/components/schemas/Activity",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "rule": {
      "type": "integer"
    },
    "billable": {
      "type": "integer"
    },
    "active": {
      "type": "boolean"
    },
    "sortorder": {
      "type": "integer"
    },
    "type_id": {
      "type": "integer",
      "description": "Activity type identifier."
    },
    "is_payable": {
      "type": "boolean"
    },
    "date_added": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "date_modified": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_by": {
      "type": "integer",
      "readOnly": true
    },
    "external_id": {
      "type": "string"
    },
    "uom_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "deleted_by_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "integration_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "activity_type": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    }
  }
}