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 SELECT id, amount_cents, stripe_invoice_id, status::text AS \"status!\",\n (status = 'pending'\n AND stripe_invoice_id IS NULL\n AND updated_at < NOW() - INTERVAL '10 minutes') AS \"orphaned!\"\n FROM ai_credit_reload\n WHERE user_id = $1\n AND kind = 'automatic'\n AND (status = 'pending'\n OR (status = 'failed' AND stripe_invoice_id IS NOT NULL))\n ORDER BY created_at\n FOR UPDATE\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "amount_cents",
"type_info": "Int8"
},
{
"ordinal": 2,
"name": "stripe_invoice_id",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "status!",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "orphaned!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
true,
null,
null
]
},
"hash": "4a50c393e27e4977ab814ba99b7081153eea11c38d163ab05d8eb92c89dc568d"
}