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.

3.0 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n                INSERT INTO import_entity\n                    (user_id, source, kind, foreign_id, status, initiator, metadata, parent_id,\n                     review_id)\n                VALUES ($1, $2, $3, $4, 'staged', 'chat', $5, $6, $7)\n                ON CONFLICT (user_id, source, foreign_id) DO UPDATE\n                SET kind = EXCLUDED.kind, metadata = EXCLUDED.metadata,\n                    parent_id = EXCLUDED.parent_id, status = 'staged',\n                    review_id = EXCLUDED.review_id, last_error = NULL, updated_at = NOW()\n                WHERE import_entity.status IN ('staged', 'discarded')\n                RETURNING id, user_id, team_id, source, kind, foreign_id, parent_id, review_id,\n                          status, initiator, metadata, entity_id, entity_type, last_error,\n                          waiting_on, created_at, updated_at\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",
        "Text",
        "Text",
        "Text",
        "Jsonb",
        "Uuid",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      false,
      true,
      false,
      true,
      true,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      false,
      false
    ]
  },
  "hash": "102b0fc31f8c2f28fa12bbb66d249b6dc743b1cf7f83cc54b8b6ea521d03c631"
}