{
    "type": "object",
    "properties": {
        "relations": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Unique identifier for the relation"
                    },
                    "associationId": {
                        "type": "string",
                        "description": "ID of the association this relation belongs to"
                    },
                    "fromObjectId": {
                        "type": "string",
                        "description": "ID of the source object"
                    },
                    "toObjectId": {
                        "type": "string",
                        "description": "ID of the target object"
                    },
                    "fromObjectType": {
                        "type": "string",
                        "description": "Type of the source object"
                    },
                    "toObjectType": {
                        "type": "string",
                        "description": "Type of the target object"
                    },
                    "metadata": {
                        "type": "object",
                        "description": "Additional metadata for the relation"
                    },
                    "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the relation was created"
                    },
                    "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the relation was last updated"
                    }
                }
            },
            "description": "Array of relations matching the criteria"
        },
        "meta": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "Total number of relations"
                },
                "currentPage": {
                    "type": "integer",
                    "description": "Current page number"
                },
                "nextPage": {
                    "type": "integer",
                    "description": "Next page number"
                },
                "prevPage": {
                    "type": "integer",
                    "description": "Previous page number"
                },
                "totalPages": {
                    "type": "integer",
                    "description": "Total number of pages"
                }
            },
            "description": "Pagination metadata"
        }
    },
    "version": 1
}
