{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE library_blocks \n            SET description = COALESCE($1, description),\n                tags = COALESCE($2, tags),\n                updated_at = NOW()\n            WHERE id = $3 AND organization_id = $4\n            RETURNING id, organization_id, created_by, name, description, block_type, block_data, tags, usage_count as \"usage_count!\", created_at, updated_at\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "organization_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "created_by",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "name",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "block_type",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "block_data",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 7,
        "name": "tags",
        "type_info": "TextArray"
      },
      {
        "ordinal": 8,
        "name": "usage_count!",
        "type_info": "Int4"
      },
      {
        "ordinal": 9,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 10,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "TextArray",
        "Uuid",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      true,
      false,
      false,
      true,
      true,
      false,
      false
    ]
  },
  "hash": "cc7467f5734e57f581fab98e7e37a934a7852474ed2eb3ea7b26e4d14b8a4df0"
}
