{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "oneOf": [
        {
            "title": "Data Table Row",
            "description": "Schema for a single Data Table Row",
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "pattern": "^[A-Fa-f\\d]{24}$"
                },
                "createdAt": {
                    "type": "string",
                    "format": "date-time"
                },
                "updatedAt": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}$": {
                    "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                    ]
                }
            }
        },
        {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string",
                    "format": "date-time"
                },
                "count": {
                    "type": "number"
                },
                "rowIds": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "pattern": "^[A-Fa-f\\d]{24}$"
                    },
                    "maxItems": 1000
                }
            }
        }
    ]
}