Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT EXISTS (\n            SELECT 1\n            FROM email_attachments a\n            JOIN email_messages m ON a.message_id = m.id\n            LEFT JOIN document_email de ON de.email_attachment_id = a.id\n            WHERE m.link_id = $2\n                AND m.provider_id = $1\n                AND a.reference_url IS NULL\n                AND de.email_attachment_id IS NULL\n                AND a.upload_claimed_at IS NULL\n                AND a.filename IS NOT NULL\n                AND (\n                    a.mime_type = ANY($3::text[])\n                    OR (\n                        a.mime_type = 'application/octet-stream'\n                        AND UPPER(SUBSTRING(a.filename FROM '\\.([^.]+)$')) = ANY($4::text[])\n                    )\n                )\n        ) AS \"has_candidate!\"\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "has_candidate!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Uuid",
        "TextArray",
        "TextArray"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "ceb4b7aafaaac234d92895ef82992597b4f564dd4bdbdb5b13e1ffc042213add"
}