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.2 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            mr.message_id,\n            c.id,\n            c.link_id,\n            c.email_address,\n            COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n            c.original_photo_url,\n            c.sfs_photo_url,\n            c.created_at,\n            c.updated_at,\n            mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n        FROM email_message_recipients mr\n        JOIN email_contacts c ON mr.contact_id = c.id\n        WHERE mr.message_id = $1\n        ORDER BY mr.recipient_type\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "message_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "link_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "email_address",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "original_photo_url",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "sfs_photo_url",
        "type_info": "Text"
      },
      {
        "ordinal": 7,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "updated_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 9,
        "name": "recipient_type!: db::address::EmailRecipientType",
        "type_info": {
          "Custom": {
            "name": "email_recipient_type",
            "kind": {
              "Enum": [
                "TO",
                "CC",
                "BCC"
              ]
            }
          }
        }
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      null,
      true,
      true,
      false,
      false,
      false
    ]
  },
  "hash": "aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79"
}