{
  "db_name": "PostgreSQL",
  "query": "\n            WITH inserted AS (\n                INSERT INTO deployed_model_components (composite_model_id, deployed_model_id, weight, enabled, sort_order)\n                VALUES ($1, $2, $3, $4, $5)\n                RETURNING id, composite_model_id, deployed_model_id, weight, enabled, sort_order, created_at\n            )\n            SELECT\n                inserted.id,\n                inserted.composite_model_id,\n                inserted.deployed_model_id,\n                inserted.weight,\n                inserted.enabled,\n                inserted.sort_order,\n                inserted.created_at,\n                dm.alias as model_alias,\n                dm.model_name,\n                dm.description as model_description,\n                dm.type as model_type,\n                dm.trusted as model_trusted,\n                dm.open_responses_adapter as \"model_open_responses_adapter?\",\n                dm.hosted_on as endpoint_id,\n                e.name as \"endpoint_name?\"\n            FROM inserted\n            JOIN deployed_models dm ON dm.id = inserted.deployed_model_id\n            LEFT JOIN inference_endpoints e ON e.id = dm.hosted_on\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "composite_model_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "deployed_model_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "weight",
        "type_info": "Int4"
      },
      {
        "ordinal": 4,
        "name": "enabled",
        "type_info": "Bool"
      },
      {
        "ordinal": 5,
        "name": "sort_order",
        "type_info": "Int4"
      },
      {
        "ordinal": 6,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "model_alias",
        "type_info": "Varchar"
      },
      {
        "ordinal": 8,
        "name": "model_name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 9,
        "name": "model_description",
        "type_info": "Text"
      },
      {
        "ordinal": 10,
        "name": "model_type",
        "type_info": "Varchar"
      },
      {
        "ordinal": 11,
        "name": "model_trusted",
        "type_info": "Bool"
      },
      {
        "ordinal": 12,
        "name": "model_open_responses_adapter?",
        "type_info": "Bool"
      },
      {
        "ordinal": 13,
        "name": "endpoint_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 14,
        "name": "endpoint_name?",
        "type_info": "Varchar"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid",
        "Int4",
        "Bool",
        "Int4"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      true,
      true,
      false,
      true,
      true,
      true
    ]
  },
  "hash": "fd16d8c7f27a5653f278b7efb0e26098f47343aaebb5ef203f6980402be6fb28"
}
