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 calendars\n SET is_deleted = NOT (id = ANY($2::uuid[])),\n sync_token = CASE\n WHEN id = ANY($2::uuid[]) THEN sync_token\n ELSE NULL\n END,\n materialized_starts_at = CASE\n WHEN id = ANY($2::uuid[]) THEN materialized_starts_at\n ELSE NULL\n END,\n materialized_ends_at = CASE\n WHEN id = ANY($2::uuid[]) THEN materialized_ends_at\n ELSE NULL\n END,\n materialized_start_date = CASE\n WHEN id = ANY($2::uuid[]) THEN materialized_start_date\n ELSE NULL\n END,\n materialized_end_date = CASE\n WHEN id = ANY($2::uuid[]) THEN materialized_end_date\n ELSE NULL\n END,\n updated_at = now()\n WHERE account_id = $1\n AND is_deleted IS DISTINCT FROM NOT (id = ANY($2::uuid[]))\n RETURNING id, is_deleted\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "is_deleted",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid",
"UuidArray"
]
},
"nullable": [
false,
false
]
},
"hash": "100aae2dcbdee28bf29600b581d32e14c71ad209e0e74191349555aea5822902"
}