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\n ep.property_definition_id,\n pd.team_id,\n pd.user_id,\n pd.database_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.is_system,\n ep.values as \"values: serde_json::Value\"\n FROM entity_properties ep\n INNER JOIN property_definitions pd ON pd.id = ep.property_definition_id\n WHERE ep.entity_id = $1\n AND ep.entity_type = $2\n AND (\n pd.data_type <> $4\n OR pd.user_id = $3\n OR pd.team_id IN (SELECT tu.team_id FROM team_user tu WHERE tu.user_id = $3)\n )\n ORDER BY LOWER(pd.display_name)\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "property_definition_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "team_id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "user_id",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "database_id",
"type_info": "Uuid"
},
{
"ordinal": 4,
"name": "display_name",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "data_type: DataType",
"type_info": {
"Custom": {
"name": "property_data_type",
"kind": {
"Enum": [
"BOOLEAN",
"DATE",
"NUMBER",
"STRING",
"SELECT_NUMBER",
"SELECT_STRING",
"ENTITY",
"LINK",
"TAG",
"DATE_RANGE"
]
}
}
}
},
{
"ordinal": 6,
"name": "is_multi_select",
"type_info": "Bool"
},
{
"ordinal": 7,
"name": "is_system",
"type_info": "Bool"
},
{
"ordinal": 8,
"name": "values: serde_json::Value",
"type_info": "Jsonb"
}
],
"parameters": {
"Left": [
"Text",
{
"Custom": {
"name": "property_entity_type",
"kind": {
"Enum": [
"CHANNEL",
"CHAT",
"DOCUMENT",
"PROJECT",
"THREAD",
"USER",
"COMPANY",
"TASK",
"CALL_RECORD",
"CALENDAR_EVENT",
"INITIATIVE",
"CONTACT",
"DATABASE_ROW"
]
}
}
},
"Text",
{
"Custom": {
"name": "property_data_type",
"kind": {
"Enum": [
"BOOLEAN",
"DATE",
"NUMBER",
"STRING",
"SELECT_NUMBER",
"SELECT_STRING",
"ENTITY",
"LINK",
"TAG",
"DATE_RANGE"
]
}
}
}
]
},
"nullable": [
false,
true,
true,
true,
false,
false,
false,
false,
true
]
},
"hash": "aec1406df47b6e01c0b005827895f6f6564ded3589679a159df36eebfdf883eb"
}