{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundroute-ai/json-schema/groundroute-ai-tenant-drill-schema.json",
  "title": "TenantDrill",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundroute-ai-openapi.json#/components/schemas/TenantDrill",
  "properties": {
    "tenant_id": {
      "type": "string",
      "title": "Tenant Id"
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name"
    },
    "signed_up_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Signed Up At"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "window": {
      "type": "string",
      "title": "Window"
    },
    "prepaid_credit_usd": {
      "type": "number",
      "title": "Prepaid Credit Usd"
    },
    "searches": {
      "type": "integer",
      "title": "Searches"
    },
    "provider_cost_usd": {
      "type": "number",
      "title": "Provider Cost Usd"
    },
    "est_revenue_usd": {
      "type": "number",
      "title": "Est Revenue Usd"
    },
    "cache_mix": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Cache Mix"
    },
    "engine_mix": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Engine Mix"
    },
    "error_rate": {
      "type": "number",
      "title": "Error Rate"
    },
    "p95_latency_ms": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "P95 Latency Ms"
    },
    "users": {
      "items": {
        "$ref": "#/$defs/AdminUserRow"
      },
      "type": "array",
      "title": "Users"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "tenant_id",
    "company_name",
    "signed_up_at",
    "tier",
    "window",
    "prepaid_credit_usd",
    "searches",
    "provider_cost_usd",
    "est_revenue_usd",
    "cache_mix",
    "engine_mix",
    "error_rate",
    "p95_latency_ms",
    "users"
  ],
  "$defs": {
    "AdminUserRow": {
      "properties": {
        "email": {
          "type": "string",
          "title": "Email"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "email",
        "created_at"
      ],
      "title": "AdminUserRow"
    }
  }
}