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 INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n SELECT $1, $2, u.user_id, 'user', $3\n FROM UNNEST($4::text[]) as u(user_id)\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n DO UPDATE SET access_level = EXCLUDED.access_level, updated_at = NOW()\n WHERE entity_access.access_level != 'owner'\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Text",
{
"Custom": {
"name": "\"AccessLevel\"",
"kind": {
"Enum": [
"view",
"comment",
"edit",
"owner"
]
}
}
},
"TextArray"
]
},
"nullable": []
},
"hash": "15293bb4cd4863c99a889780b29c08fcef36a794c8628b5bca793f72103a4a90"
}