{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deputy/json-schema/deputy-company-schema.json",
  "title": "Company",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deputy-company-api-openapi.yml#/components/schemas/Company",
  "type": "object",
  "properties": {
    "Id": {
      "type": "integer"
    },
    "Portfolio": {
      "type": "integer"
    },
    "Code": {
      "type": "string",
      "maxLength": 6
    },
    "Active": {
      "type": "boolean"
    },
    "ParentCompany": {
      "type": "integer"
    },
    "CompanyName": {
      "type": "string",
      "maxLength": 200
    },
    "TradingName": {
      "type": "string",
      "maxLength": 32
    },
    "BusinessNumber": {
      "type": "string",
      "maxLength": 32
    },
    "CompanyNumber": {
      "type": "string",
      "maxLength": 64
    },
    "IsWorkplace": {
      "type": "boolean"
    },
    "IsPayrollEntity": {
      "type": "boolean"
    },
    "PayrollExportCode": {
      "type": "string",
      "maxLength": 255
    },
    "Address": {
      "type": "integer"
    },
    "Contact": {
      "type": "integer"
    },
    "Creator": {
      "type": "integer"
    },
    "Created": {
      "type": "string",
      "format": "date-time"
    },
    "Modified": {
      "type": "string"
    },
    "ParentCompanyObject": {
      "type": "object"
    },
    "AddressObject": {
      "type": "object"
    },
    "ContactObject": {
      "type": "object"
    }
  },
  "required": [
    "Id",
    "Code",
    "CompanyName",
    "IsWorkplace",
    "IsPayrollEntity",
    "Modified"
  ]
}