{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.elimi.africa/contracts/events/organization.created.v1.json",
  "title": "organization.created data",
  "description": "data payload for organization.created. Emitted by Orchestrator in the same transaction as POST /v1/organizations (tenant + caller as super admin). Consumers are analytics and later projections; membership is not inferred from this event.",
  "type": "object",
  "additionalProperties": false,
  "required": ["organizationId", "createdByUserId"],
  "properties": {
    "organizationId": {
      "type": "string",
      "minLength": 1,
      "description": "Orchestrator Organization.id (ULID)"
    },
    "createdByUserId": {
      "type": "string",
      "minLength": 1,
      "description": "Orchestrator User.id of the staff member who created the tenant"
    }
  }
}
