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.5 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n    SELECT DISTINCT ON (l.id, m.thread_id)\n        l.id,\n        m.thread_id as \"thread_id!\",\n        l.link_id,\n        l.provider_label_id,\n        l.name,\n        l.created_at,\n        l.message_list_visibility as \"message_list_visibility: _\",\n        l.label_list_visibility as \"label_list_visibility: _\",\n        l.type as \"type_: _\"\n    FROM\n         email_messages m\n    JOIN email_effective_message_labels ml ON m.id = ml.message_id\n    JOIN email_labels l ON ml.label_id = l.id\n    WHERE m.thread_id = ANY($1)\n    ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "thread_id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "link_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "provider_label_id",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "message_list_visibility: _",
        "type_info": {
          "Custom": {
            "name": "email_message_list_visibility_enum",
            "kind": {
              "Enum": [
                "Show",
                "Hide"
              ]
            }
          }
        }
      },
      {
        "ordinal": 7,
        "name": "label_list_visibility: _",
        "type_info": {
          "Custom": {
            "name": "email_label_list_visibility_enum",
            "kind": {
              "Enum": [
                "LabelShow",
                "LabelShowIfUnread",
                "LabelHide"
              ]
            }
          }
        }
      },
      {
        "ordinal": 8,
        "name": "type_: _",
        "type_info": {
          "Custom": {
            "name": "email_label_type_enum",
            "kind": {
              "Enum": [
                "System",
                "User"
              ]
            }
          }
        }
      }
    ],
    "parameters": {
      "Left": [
        "UuidArray"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "552533130df2690d76f5a3e6163361d6c231f380f9e4d5bf38cf40c4f6a26864"
}