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 FROM ai_overage_charge\n WHERE user_id = $1\n AND period_start = $2\n AND accounting_policy = 'legacy'\n AND (\n status = 'failed'\n OR (\n status = 'pending'\n AND stripe_invoice_id IS NULL\n AND updated_at < NOW() - INTERVAL '10 minutes'\n )\n )\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"
}
],
"parameters": {
"Left": [
"Text",
"Timestamptz"
]
},
"nullable": [
false,
false,
true,
null
]
},
"hash": "7724f36f7904253f6bccd8db3b5d2eb180669cc5363bf47875bb22c64312731b"
}