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.2 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "SELECT to_jsonb(root) AS \"message!: Json<StoredMessage>\"\n                   FROM comms_messages target\n                   JOIN comms_messages root ON root.id = COALESCE(target.thread_id, target.id)\n                   JOIN comms_message_threads state ON state.root_id = root.id\n                   WHERE target.id = $3 AND target.parent_entity_type = $1 AND target.parent_entity_id = $2\n                     AND root.parent_entity_type = $1 AND root.parent_entity_id = $2\n                     AND (state.deleted_at IS NULL OR $4)\n                     AND (root.deleted_at IS NULL OR $1 = 'document' OR ($4 AND state.deleted_at IS NOT NULL) OR EXISTS (\n                         SELECT 1 FROM comms_messages reply\n                         WHERE reply.thread_id = root.id AND reply.deleted_at IS NULL))",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "message!: Json<StoredMessage>",
        "type_info": "Jsonb"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text",
        "Uuid",
        "Bool"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "c6f0745ca61c7c7cf681dd3bfb81ede4113a3ee8569b522f7fe9c9fd66251ae1"
}