{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundroute-ai/json-schema/groundroute-ai-tenant-row-schema.json",
  "title": "TenantRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundroute-ai-openapi.json#/components/schemas/TenantRow",
  "properties": {
    "tenant_id": {
      "type": "string",
      "title": "Tenant Id"
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "signed_up_at": {
      "type": "string",
      "format": "date-time",
      "title": "Signed Up At"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "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"
    },
    "est_margin_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Est Margin Pct"
    },
    "cache_hit_rate": {
      "type": "number",
      "title": "Cache Hit Rate"
    },
    "error_rate": {
      "type": "number",
      "title": "Error Rate"
    },
    "health": {
      "type": "string",
      "title": "Health"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "tenant_id",
    "company_name",
    "email",
    "signed_up_at",
    "tier",
    "status",
    "prepaid_credit_usd",
    "searches",
    "provider_cost_usd",
    "est_revenue_usd",
    "est_margin_pct",
    "cache_hit_rate",
    "error_rate",
    "health"
  ]
}