Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.3 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "SELECT m.id AS message_id, m.parent_entity_id::uuid AS \"channel_id!\", t.root_id\n               FROM comms_messages m\n               JOIN comms_message_threads t ON t.root_id = coalesce(m.thread_id, m.id)\n               JOIN comms_messages root ON root.id = t.root_id\n               WHERE m.id = ANY($1) AND m.deleted_at IS NULL AND t.deleted_at IS NULL\n                 AND root.deleted_at IS NULL AND root.thread_id IS NULL\n                 AND m.parent_entity_type = 'channel'\n                 AND t.parent_entity_type = 'channel' AND t.parent_entity_id = m.parent_entity_id\n                 AND root.parent_entity_type = 'channel'\n                 AND root.parent_entity_id = m.parent_entity_id",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "message_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "channel_id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "root_id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "UuidArray"
      ]
    },
    "nullable": [
      false,
      null,
      false
    ]
  },
  "hash": "1c61d555aab014d5f8eb5b32f3fd24df70bd6ae04c912b80e3ee172c983e3a83"
}