{
  "db_name": "PostgreSQL",
  "query": "select\n                k.id,\n                k.workspace_id,\n                k.name,\n                k.prefix,\n                k.scopes_json,\n                k.status,\n                k.created_at as \"created_at!: time::OffsetDateTime\",\n                k.last_used_at as \"last_used_at: time::OffsetDateTime\"\n             from platform_api_keys k\n             join workspaces w on w.id = k.workspace_id\n             where w.slug = $1\n               and k.secret_hash = $2\n               and k.status = 'active'\n             limit 1",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "workspace_id",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "name",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "prefix",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "scopes_json",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 5,
        "name": "status",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "created_at!: time::OffsetDateTime",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "last_used_at: time::OffsetDateTime",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      true
    ]
  },
  "hash": "213432827436e3a17fb2c17e392c1f8d7aa7b7624c64185fe0d19a3b2bd7d713"
}
