{
  "title": "Companycar",
  "type": "object",
  "properties": {
    "StartingDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "EndingDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "WorkerId": {
      "type": "integer"
    },
    "LicensePlate": {
      "type": "string",
      "minLength": 0,
      "maxLength": 15
    },
    "CatRSZ": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "pattern": "^[0-9]*$"
    },
    "MotorType": {
      "type": "string",
      "enum": [
        "Gasoline",
        "Diesel",
        "LPG",
        "Electric",
        "CNG"
      ]
    },
    "TaxHorsepower": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 99.0
    },
    "Co2EmissionsHybrideWLTP": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 500.0
    },
    "Co2EmissionsHybride": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 500.0
    },
    "Co2EmissionsWLTP": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 500.0
    },
    "Co2Emissions": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 500.0
    },
    "Code": {
      "type": "integer",
      "minimum": 4000.0,
      "maximum": 8999.0
    },
    "FuelCard": {
      "type": "string",
      "minLength": 0,
      "maxLength": 20
    },
    "Brand": {
      "type": "string",
      "minLength": 0,
      "maxLength": 50
    },
    "OrderDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "RegistrationDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "CatalogPrice": {
      "type": "number"
    },
    "Informative": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "LightTruck": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "PoolCar": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "PersContributionAmount": {
      "type": "number"
    },
    "PersContributionPercentage": {
      "type": "number"
    },
    "PersContributionCode": {
      "type": "integer",
      "minimum": 4000.0,
      "maximum": 8999.0
    },
    "PersContributionStartdate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "PersContributionEnddate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    }
  },
  "required": [
    "StartingDate",
    "LicensePlate"
  ]
}