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.1 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "SELECT t.root_id, to_jsonb(t) AS \"state!: Json<ThreadState>\",\n            (SELECT count(*) FROM comms_messages r WHERE r.thread_id = t.root_id AND r.deleted_at IS NULL) AS \"reply_count!\",\n            (SELECT max(created_at) FROM comms_messages r WHERE r.thread_id = t.root_id AND r.deleted_at IS NULL) AS latest_reply_at\n            FROM comms_message_threads t WHERE root_id = ANY($1)",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "root_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "state!: Json<ThreadState>",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 2,
        "name": "reply_count!",
        "type_info": "Int8"
      },
      {
        "ordinal": 3,
        "name": "latest_reply_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "UuidArray"
      ]
    },
    "nullable": [
      false,
      null,
      null,
      null
    ]
  },
  "hash": "a606beb829a7fc411cb6f8636c26d64675fe90a23c5247c494f112745c9f7eba"
}