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.

2.1 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT a.id, m.parent_entity_id::uuid AS \"channel_id!\", a.message_id, m.sender_id,\n                a.entity_type, a.entity_id,\n                a.width AS \"width?\", a.height AS \"height?\", a.created_at\n            FROM comms_attachments a\n            JOIN comms_messages m ON m.id = a.message_id\n            WHERE m.parent_entity_type = 'channel' AND m.parent_entity_id = $1::uuid::text\n              AND m.deleted_at IS NULL\n              AND ($2::timestamptz IS NULL OR (a.created_at, a.id) < ($2, $3))\n              AND ($5::bool IS NULL\n                   OR ($5 = true AND a.entity_type LIKE 'static/%')\n                   OR ($5 = false AND a.entity_type NOT LIKE 'static/%'))\n            ORDER BY a.created_at DESC, a.id DESC\n            LIMIT $4\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "channel_id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "message_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "sender_id",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "entity_type",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "entity_id",
        "type_info": "Varchar"
      },
      {
        "ordinal": 6,
        "name": "width?",
        "type_info": "Int4"
      },
      {
        "ordinal": 7,
        "name": "height?",
        "type_info": "Int4"
      },
      {
        "ordinal": 8,
        "name": "created_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Timestamptz",
        "Uuid",
        "Int8",
        "Bool"
      ]
    },
    "nullable": [
      false,
      null,
      false,
      false,
      false,
      false,
      true,
      true,
      false
    ]
  },
  "hash": "65632dba407e66fb2750de33215a1698425f0074ac73abe13ccb10f7f677a429"
}