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": "\n        INSERT INTO email_threads (id, provider_id, link_id, inbox_visible, is_read, latest_inbound_message_ts,\n                             latest_outbound_message_ts, latest_non_spam_message_ts)\n        VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n        ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE\n        SET\n            latest_inbound_message_ts = EXCLUDED.latest_inbound_message_ts,\n            updated_at = NOW()\n        WHERE\n            EXCLUDED.latest_inbound_message_ts IS NOT NULL AND\n            email_threads.latest_inbound_message_ts IS DISTINCT FROM EXCLUDED.latest_inbound_message_ts\n        RETURNING id\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "Uuid",
        "Bool",
        "Bool",
        "Timestamptz",
        "Timestamptz",
        "Timestamptz"
      ]
    },
    "nullable": [
      false
    ]
  },
  "hash": "9d126060416b51acfbcb4e9787954d421138c57da8a6efae63652cded88de19f"
}