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.8 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT\n                ct.id,\n                ct.company_id,\n                ct.email,\n                ct.name,\n                ct.hidden,\n                ct.first_interaction,\n                ct.last_interaction,\n                ct.created_at,\n                ct.updated_at\n            FROM crm_contacts ct\n            LEFT JOIN crm_companies co ON co.id = ct.company_id\n            WHERE ct.email = LOWER($1)\n              AND ct.team_id = $2\n              AND ($3 OR (ct.hidden = FALSE AND co.hidden IS NOT TRUE))\n            LIMIT 2\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "company_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "email",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "name",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "hidden",
        "type_info": "Bool"
      },
      {
        "ordinal": 5,
        "name": "first_interaction",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "last_interaction",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Uuid",
        "Bool"
      ]
    },
    "nullable": [
      false,
      true,
      true,
      true,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "547a904d56bdbc5e54109a0232b8675bdf7e71a2184fba9ab5d38ec6a740bc70"
}