{
  "db_name": "PostgreSQL",
  "query": "\n            INSERT INTO onboarding_states (user_id, role_id, status, progress_json, completed_at)\n            VALUES ($1, $2, 'COMPLETED', $3, NOW())\n            ON CONFLICT (user_id, role_id) DO UPDATE\n                SET status = 'COMPLETED',\n                    progress_json = EXCLUDED.progress_json,\n                    completed_at = NOW(),\n                    updated_at = NOW()\n            RETURNING id, user_id, role_id, status, progress_json,\n                      completed_at, created_at, updated_at\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "user_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "role_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "status",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "progress_json",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 5,
        "name": "completed_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid",
        "Jsonb"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      true,
      false,
      false
    ]
  },
  "hash": "dfc6e975b6e02b0c6eb6d500807f0b2aa2f002290443309d055fb8b9552ddaa1"
}
