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.6 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT id, user_id, team_id, source, kind, foreign_id, parent_id, review_id, status,\n                   initiator, metadata, entity_id, entity_type, last_error, waiting_on, created_at,\n                   updated_at\n            FROM import_entity\n            WHERE source = $3 AND foreign_id = ANY($2::text[])\n              AND status IN ('importing', 'imported')\n              AND user_id <> $1\n              AND team_id IS NOT NULL\n              AND team_id = (SELECT team_id FROM team_user WHERE user_id = $1)\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "user_id",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "team_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "source",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "kind",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "foreign_id",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "parent_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 7,
        "name": "review_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 8,
        "name": "status",
        "type_info": "Text"
      },
      {
        "ordinal": 9,
        "name": "initiator",
        "type_info": "Text"
      },
      {
        "ordinal": 10,
        "name": "metadata",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 11,
        "name": "entity_id",
        "type_info": "Text"
      },
      {
        "ordinal": 12,
        "name": "entity_type",
        "type_info": "Text"
      },
      {
        "ordinal": 13,
        "name": "last_error",
        "type_info": "Text"
      },
      {
        "ordinal": 14,
        "name": "waiting_on",
        "type_info": "Uuid"
      },
      {
        "ordinal": 15,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 16,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "TextArray",
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      false,
      true,
      false,
      true,
      true,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      false,
      false
    ]
  },
  "hash": "4bc35d5d34475ff3f4c5ca769c9b04b28fec8991b1f1a9c09146eaed0ed1d6c7"
}