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.

972 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "INSERT INTO whatsapp_chat_membership (chat_id,account_id,generation,consent_at,remote_member,can_post,reconciled,observed_at)\n            SELECT g.id,$1,$2,clock_timestamp(),true,true,true,$4 FROM external_chat g\n            WHERE g.kind = 'direct' AND g.user_id = $3 AND g.state = 'active'\n            ON CONFLICT (chat_id,account_id) DO UPDATE SET generation = excluded.generation, consent_ended_at = NULL,\n              remote_member = true, can_post = true, reconciled = true, observed_at = excluded.observed_at\n            WHERE whatsapp_chat_membership.generation <> excluded.generation\n              OR whatsapp_chat_membership.consent_ended_at IS NOT NULL",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Uuid",
        "Int8",
        "Text",
        "Timestamptz"
      ]
    },
    "nullable": []
  },
  "hash": "99d8d24a6072aa844c409a383e0a5acde3b364700717c4e333199cdf23a43d76"
}