{
  "db_name": "PostgreSQL",
  "query": "\n            INSERT INTO runtime_configs (role_id, config_json, version, is_active)\n            VALUES (\n                $1, \n                $2, \n                COALESCE((SELECT MAX(version) FROM runtime_configs WHERE role_id = $1), 0) + 1,\n                true\n            )\n            RETURNING id, role_id, config_json, version, is_active, updated_at\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "role_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "config_json",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 3,
        "name": "version",
        "type_info": "Int4"
      },
      {
        "ordinal": 4,
        "name": "is_active",
        "type_info": "Bool"
      },
      {
        "ordinal": 5,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Jsonb"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "3006d31f309f2ce0aab8883d793007c396ab79cc1c1263fd59945f7a8a1a6a22"
}
