{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Событие создания записи",
  "type": "object",
  "required": ["id", "event", "created_at", "club_id", "schema_version", "data"],
  "properties": {
    "id": { "type": "string", "description": "Стабильный идентификатор события, включая повторную доставку." },
    "event": { "const": "booking.created" },
    "created_at": { "type": "string", "format": "date-time" },
    "club_id": { "type": "string" },
    "schema_version": { "const": 1 },
    "data": {
      "type": "object",
      "required": ["id"],
      "properties": {
        "id": { "type": "string", "description": "Идентификатор записи." },
        "status": { "type": ["string", "null"] }
      }
    }
  },
  "examples": [{
    "id": "booking.created:demo-booking",
    "event": "booking.created",
    "created_at": "2026-12-07T10:00:00+03:00",
    "club_id": "demo-club",
    "schema_version": 1,
    "data": { "id": "demo-booking", "status": "confirmed" }
  }]
}
