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.

875 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "UPDATE email_draft_transfers SET state=CASE WHEN $5 THEN 'retained' ELSE 'cleanup' END,\n            issue=NULL,revision=revision+1,available_at=now(),updated_at=now()\n            WHERE destination_id=$1 AND revision=$2 AND 'transfer:'||id::text=$3 AND state IN ('cleanup','conflict')\n                AND (lease_until IS NULL OR lease_until<now()) AND (actor_id=$4 OR EXISTS(SELECT 1 FROM email_links source WHERE source.id=source_link_id AND (source.macro_id=$4 OR EXISTS(SELECT 1 FROM macro_user_links u WHERE u.link_id=source.id AND u.primary_macro_id=$4))))",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Uuid",
        "Int8",
        "Text",
        "Text",
        "Bool"
      ]
    },
    "nullable": []
  },
  "hash": "3dd9b9bc938114ad1b480abd5e6c7c27887d00cf210474fb9f2a57a1d1a151cd"
}