Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
{
"db_name": "PostgreSQL",
"query": "\n UPDATE calendar_backfill_jobs\n SET lease_expires_at = now() + interval '2 minutes',\n updated_at = now()\n WHERE id = $1\n AND email_link_id = $2\n AND status = 'running'\n AND lease_token = $3\n AND lease_expires_at > now()\n AND EXISTS (\n SELECT 1\n FROM email_link_google_scopes scopes\n WHERE scopes.link_id = calendar_backfill_jobs.email_link_id\n AND scopes.grant_version = calendar_backfill_jobs.grant_version\n AND scopes.granted_scopes @> $4::text[]\n )\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Uuid",
"TextArray"
]
},
"nullable": []
},
"hash": "c87baddeae70242a9989cfdf1a3d43ed58119ce0149a654e02301e8bf980756d"
}