{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-project-budget-role-schema.json",
  "title": "ProjectBudgetRole",
  "description": "Project budget role",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runn-budget-roles-api-openapi.yml#/components/schemas/ProjectBudgetRole",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "integer"
    },
    "roleId": {
      "type": "integer"
    },
    "estimatedMinutes": {
      "description": "Estimated Minutes: The total number of minutes budgeted for a role on a project.",
      "type": "integer"
    },
    "estimatedBudget": {
      "description": "The budget in local currency. This value is calculated live and rounded using ROUND_HALF_UP. estimatedBudget = estimatedMinutes / 60 * projectRateMinute",
      "type": "integer"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was last updated."
    }
  },
  "required": [
    "projectId",
    "roleId",
    "estimatedMinutes",
    "estimatedBudget",
    "createdAt",
    "updatedAt"
  ]
}