{
  "profileVersion": "1.1.0",
  "title": "irvinebroque.com Public SQL Profile",
  "endpoint": "/api/sql",
  "humanInterface": "/explore",
  "catalog": "irvinebroque",
  "transport": {
    "executionMethod": "QUERY",
    "capabilityMethods": [
      "HEAD",
      "OPTIONS"
    ],
    "requestMediaType": "application/sql",
    "acceptQuery": "application/sql;charset=\"UTF-8\"",
    "responseMediaTypes": [
      "application/json; charset=utf-8",
      "text/csv; charset=utf-8; header=present"
    ],
    "versionHeader": "SQL-API-Version",
    "cacheControl": "no-store"
  },
  "dialect": {
    "statements": [
      "SELECT"
    ],
    "clauses": [
      "projection",
      "FROM",
      "WHERE",
      "GROUP BY",
      "ORDER BY",
      "LIMIT"
    ],
    "predicates": [
      "=",
      "!=",
      "<",
      "<=",
      ">",
      ">=",
      "AND",
      "OR",
      "NOT",
      "IS NULL",
      "IS NOT NULL",
      "IN",
      "NOT IN",
      "LIKE",
      "NOT LIKE"
    ],
    "aggregateFunctions": [
      "COUNT"
    ],
    "likeEscape": "\\",
    "exclusions": [
      "writes",
      "DDL",
      "transactions",
      "PRAGMA",
      "ATTACH",
      "joins",
      "HAVING",
      "subqueries",
      "CTEs",
      "set operations",
      "window functions",
      "functions other than COUNT",
      "OFFSET",
      "parameters"
    ]
  },
  "logicalTypes": {
    "text": {
      "sql": "VARCHAR",
      "json": "string",
      "csv": "UTF-8 field"
    },
    "url": {
      "sql": "VARCHAR",
      "json": "string",
      "csv": "UTF-8 field"
    },
    "boolean": {
      "sql": "BOOLEAN",
      "json": "boolean",
      "csv": "true or false"
    },
    "integer": {
      "sql": "BIGINT",
      "json": "JSON-safe number",
      "csv": "decimal"
    },
    "decimal": {
      "sql": "DOUBLE",
      "json": "finite number",
      "csv": "decimal"
    },
    "date": {
      "sql": "DATE",
      "json": "YYYY-MM-DD string",
      "csv": "YYYY-MM-DD"
    },
    "timestamp": {
      "sql": "TIMESTAMP WITH TIME ZONE",
      "json": "RFC 3339 UTC string",
      "csv": "RFC 3339 UTC"
    },
    "json": {
      "sql": "JSON",
      "json": "structured value",
      "csv": "canonical JSON text"
    }
  },
  "csv": {
    "header": "present",
    "null": "\\N",
    "lineEnding": "CRLF"
  },
  "limits": {
    "maxRequestBytes": 16384,
    "maxTokens": 256,
    "maxAstDepth": 16,
    "maxProjectionColumns": 24,
    "maxPredicates": 24,
    "maxInItems": 32,
    "maxPatternLength": 256,
    "maxRows": 100,
    "maxColumns": 24,
    "maxGroupColumns": 2,
    "maxCost": 500,
    "maxResponseBytes": 524288,
    "requestsPerMinute": 120,
    "rateLimitWindowSeconds": 60
  },
  "relations": [
    {
      "catalog": "irvinebroque",
      "schema": "public",
      "name": "writing",
      "surfaceKey": "writing",
      "canonicalSchemaRef": "WritingItem",
      "inclusionReason": "Authored external writing supports citation, source, taxonomy, and publication-time analysis.",
      "defaultOrder": [
        {
          "column": "date",
          "direction": "DESC"
        },
        {
          "column": "title",
          "direction": "ASC"
        },
        {
          "column": "canonical_id",
          "direction": "ASC"
        }
      ],
      "columns": [
        {
          "name": "canonical_id",
          "ordinalPosition": 1,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "canonicalId",
          "provenance": "WritingItem.canonicalId"
        },
        {
          "name": "id",
          "ordinalPosition": 2,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "id",
          "provenance": "WritingItem.id"
        },
        {
          "name": "item_path",
          "ordinalPosition": 3,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "itemPath",
          "provenance": "WritingItem.itemPath"
        },
        {
          "name": "title",
          "ordinalPosition": 4,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "title",
          "provenance": "WritingItem.title"
        },
        {
          "name": "url",
          "ordinalPosition": 5,
          "logicalType": "url",
          "nullable": false,
          "jsonField": "url",
          "provenance": "WritingItem.url"
        },
        {
          "name": "normalized_url",
          "ordinalPosition": 6,
          "logicalType": "url",
          "nullable": false,
          "jsonField": "normalizedUrl",
          "provenance": "WritingItem.normalizedUrl"
        },
        {
          "name": "source",
          "ordinalPosition": 7,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "source",
          "provenance": "WritingItem.source"
        },
        {
          "name": "site_name",
          "ordinalPosition": 8,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "siteName",
          "provenance": "WritingItem.siteName"
        },
        {
          "name": "domain",
          "ordinalPosition": 9,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "domain",
          "provenance": "WritingItem.domain"
        },
        {
          "name": "date",
          "ordinalPosition": 10,
          "logicalType": "timestamp",
          "nullable": false,
          "jsonField": "date",
          "provenance": "WritingItem.date"
        },
        {
          "name": "published_at",
          "ordinalPosition": 11,
          "logicalType": "timestamp",
          "nullable": true,
          "jsonField": "publishedAt",
          "provenance": "WritingItem.publishedAt"
        },
        {
          "name": "added_at",
          "ordinalPosition": 12,
          "logicalType": "timestamp",
          "nullable": true,
          "jsonField": "addedAt",
          "provenance": "WritingItem.addedAt"
        },
        {
          "name": "description",
          "ordinalPosition": 13,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "description",
          "provenance": "WritingItem.description"
        },
        {
          "name": "image",
          "ordinalPosition": 14,
          "logicalType": "url",
          "nullable": true,
          "jsonField": "image",
          "provenance": "WritingItem.image"
        },
        {
          "name": "author",
          "ordinalPosition": 15,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "author",
          "provenance": "WritingItem.author"
        },
        {
          "name": "metadata_source",
          "ordinalPosition": 16,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "metadataSource",
          "provenance": "WritingItem.metadataSource"
        },
        {
          "name": "fetched_at",
          "ordinalPosition": 17,
          "logicalType": "timestamp",
          "nullable": true,
          "jsonField": "fetchedAt",
          "provenance": "WritingItem.fetchedAt"
        },
        {
          "name": "tags",
          "ordinalPosition": 18,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "tags",
          "provenance": "WritingItem.tags"
        },
        {
          "name": "topics",
          "ordinalPosition": 19,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "topics",
          "provenance": "WritingItem.topics"
        },
        {
          "name": "themes",
          "ordinalPosition": 20,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "themes",
          "provenance": "WritingItem.themes"
        },
        {
          "name": "moods",
          "ordinalPosition": 21,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "moods",
          "provenance": "WritingItem.moods"
        },
        {
          "name": "tones",
          "ordinalPosition": 22,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "tones",
          "provenance": "WritingItem.tones"
        },
        {
          "name": "styles",
          "ordinalPosition": 23,
          "logicalType": "json",
          "nullable": true,
          "jsonField": "styles",
          "provenance": "WritingItem.styles"
        },
        {
          "name": "pace",
          "ordinalPosition": 24,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "pace",
          "provenance": "WritingItem.pace"
        }
      ]
    },
    {
      "catalog": "irvinebroque",
      "schema": "information_schema",
      "name": "tables",
      "surfaceKey": null,
      "canonicalSchemaRef": "PublicSqlProfile.relations",
      "inclusionReason": "Bounded discovery of generated logical relations.",
      "defaultOrder": [
        {
          "column": "table_schema",
          "direction": "ASC"
        },
        {
          "column": "table_name",
          "direction": "ASC"
        }
      ],
      "columns": [
        {
          "name": "table_catalog",
          "ordinalPosition": 1,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_catalog",
          "provenance": "generated-catalog.table_catalog"
        },
        {
          "name": "table_schema",
          "ordinalPosition": 2,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_schema",
          "provenance": "generated-catalog.table_schema"
        },
        {
          "name": "table_name",
          "ordinalPosition": 3,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_name",
          "provenance": "generated-catalog.table_name"
        },
        {
          "name": "table_type",
          "ordinalPosition": 4,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_type",
          "provenance": "generated-catalog.table_type"
        }
      ]
    },
    {
      "catalog": "irvinebroque",
      "schema": "information_schema",
      "name": "columns",
      "surfaceKey": null,
      "canonicalSchemaRef": "PublicSqlProfile.relations.columns",
      "inclusionReason": "Bounded discovery of generated logical columns and canonical provenance.",
      "defaultOrder": [
        {
          "column": "table_schema",
          "direction": "ASC"
        },
        {
          "column": "table_name",
          "direction": "ASC"
        },
        {
          "column": "ordinal_position",
          "direction": "ASC"
        }
      ],
      "columns": [
        {
          "name": "table_catalog",
          "ordinalPosition": 1,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_catalog",
          "provenance": "generated-catalog.table_catalog"
        },
        {
          "name": "table_schema",
          "ordinalPosition": 2,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_schema",
          "provenance": "generated-catalog.table_schema"
        },
        {
          "name": "table_name",
          "ordinalPosition": 3,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "table_name",
          "provenance": "generated-catalog.table_name"
        },
        {
          "name": "column_name",
          "ordinalPosition": 4,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "column_name",
          "provenance": "generated-catalog.column_name"
        },
        {
          "name": "ordinal_position",
          "ordinalPosition": 5,
          "logicalType": "integer",
          "nullable": false,
          "jsonField": "ordinal_position",
          "provenance": "generated-catalog.ordinal_position"
        },
        {
          "name": "is_nullable",
          "ordinalPosition": 6,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "is_nullable",
          "provenance": "generated-catalog.is_nullable"
        },
        {
          "name": "data_type",
          "ordinalPosition": 7,
          "logicalType": "text",
          "nullable": false,
          "jsonField": "data_type",
          "provenance": "generated-catalog.data_type"
        },
        {
          "name": "json_field",
          "ordinalPosition": 8,
          "logicalType": "text",
          "nullable": true,
          "jsonField": "json_field",
          "provenance": "generated-catalog.json_field"
        }
      ]
    }
  ],
  "surfaceDispositions": {
    "activities": "excluded: add after a reviewed unit and route-privacy mapping",
    "movies": "excluded: preference-state and nested-credit semantics need a dedicated relation review",
    "places": "excluded: location precision and map-field privacy need a dedicated relation review",
    "events": "excluded: synthetic union surface",
    "sports": "excluded: experience and event union semantics need a dedicated relation review",
    "music": "excluded: heterogeneous union surface",
    "concerts": "excluded: nested artist and setlist semantics need a dedicated relation review",
    "videos": "excluded: category and provider identity need a dedicated relation review",
    "podcasts": "excluded: feed-derived ordering needs a dedicated relation review",
    "tweets": "excluded: author and media privacy need a dedicated relation review",
    "code": "excluded: GitHub activity projection needs a dedicated relation review",
    "photos": "excluded: object-key and location privacy need a dedicated relation review",
    "books": "excluded: broad nested metadata requires a dedicated compact column profile",
    "work": "excluded: synthetic timeline union surface",
    "reading": "excluded: saved-reading source signals need a dedicated privacy review",
    "blog": "excluded: body and generated-description provenance need a dedicated relation review",
    "writing": "included: public.writing",
    "search": "excluded: query-derived surface",
    "feed-items": "excluded: synthetic query-derived surface"
  }
}
