{
  "@context": "http://www.w3.org/ns/csvw",
  "url": "oneticket-tarif-fix.csv",
  "tableSchema": {
    "columns": [
      {
        "name": "product_id",
        "titles": "product_id",
        "datatype": "string",
        "required": true,
        "constraints": {
          "enum": [
            "network_1d",
            "network_7d",
            "network_30d",
            "network_90d",
            "network_180d",
            "network_365d",
            "sjt25_90d",
            "sjt25_365d",
            "bicycle_under150",
            "bicycle_over150",
            "dog_under150",
            "dog_over150"
          ]
        }
      },
      {
        "name": "product_type",
        "titles": "product_type",
        "datatype": "string",
        "required": true,
        "constraints": {
          "enum": [
            "network",
            "discount_card",
            "bicycle",
            "dog"
          ]
        }
      },
      {
        "name": "validity_days",
        "titles": "validity_days",
        "datatype": "integer",
        "null": [
          ""
        ]
      },
      {
        "name": "carriage_class",
        "titles": "carriage_class",
        "datatype": "integer",
        "null": [
          ""
        ],
        "constraints": {
          "enum": [
            1,
            2
          ]
        }
      },
      {
        "name": "distance_band",
        "titles": "distance_band",
        "datatype": "string",
        "null": [
          ""
        ],
        "constraints": {
          "enum": [
            "lte_150_km",
            "gt_150_km"
          ]
        }
      },
      {
        "name": "price_amount",
        "titles": "price_amount",
        "datatype": "integer",
        "required": true,
        "description": "Číselná hodnota ceny bez uvedení měny."
      },
      {
        "name": "price_currency",
        "titles": "price_currency",
        "datatype": "string",
        "required": true,
        "description": "Měna ceny podle ISO 4217.",
        "constraints": {
          "enum": [
            "CZK"
          ]
        }
      },
      {
        "name": "valid_from",
        "titles": "valid_from",
        "datatype": {
          "base": "date",
          "format": "yyyy-MM-dd"
        },
        "required": true
      },
      {
        "name": "valid_to",
        "titles": "valid_to",
        "datatype": {
          "base": "date",
          "format": "yyyy-MM-dd"
        },
        "required": true
      }
    ]
  }
}