{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Normalized billable usage row",
  "type": "object",
  "required": [
    "customer_id",
    "usage_date",
    "product_code",
    "billable_quantity",
    "source_record_count"
  ],
  "properties": {
    "customer_id": {"type": "string"},
    "usage_date": {"type": "string", "format": "date"},
    "product_code": {"type": "string"},
    "billable_quantity": {"type": "string", "pattern": "^-?[0-9]+(?:\\.[0-9]+)?$"},
    "source_record_count": {"type": "integer", "minimum": 0}
  },
  "additionalProperties": false
}
