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.6 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            d.id AS \"id!\",\n            d.name AS \"title!\",\n            d.owner AS \"owner!\",\n            COALESCE(\n                (\n                    SELECT json_agg(\n                        json_build_object(\n                            'property', pd.display_name,\n                            'data_type', pd.data_type,\n                            'values', ep.values\n                        )\n                    )\n                    FROM entity_properties ep\n                    JOIN property_definitions pd ON pd.id = ep.property_definition_id\n                    WHERE ep.entity_id = d.id\n                      AND ep.entity_type = 'TASK'::property_entity_type\n                      AND ep.values IS NOT NULL\n                ),\n                '[]'::json\n            ) AS \"properties!\"\n        FROM \"Document\" d\n        WHERE d.id = ANY($1)\n          AND d.\"deletedAt\" IS NULL\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "title!",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "owner!",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "properties!",
        "type_info": "Json"
      }
    ],
    "parameters": {
      "Left": [
        "TextArray"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      null
    ]
  },
  "hash": "37ebebbf2cf47f4acc92d65e80734ca11632e2b32cf5e8b529feb373b63ebe81"
}