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.

944 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n        SELECT dp.\"documentId\"::uuid, 'document', u.user_id, 'user', sp.\"linkShareAccessLevel\"::\"AccessLevel\"\n        FROM \"DocumentPermission\" dp\n        JOIN \"SharePermission\" sp ON sp.id = dp.\"sharePermissionId\"\n        CROSS JOIN UNNEST($2::text[]) AS u(user_id)\n        WHERE dp.\"documentId\" = $1\n          AND sp.\"linkShare\" IN ('PUBLIC', 'TEAM')\n          AND sp.\"linkShareAccessLevel\" IS NOT NULL\n        ON CONFLICT (entity_id, entity_type, source_id, source_type)\n        WHERE granted_from_project_id IS NULL\n        DO NOTHING\n        ",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Text",
        "TextArray"
      ]
    },
    "nullable": []
  },
  "hash": "3d868403250366e7a222e6ad1767660b7fe784d879c69e1c0522f31812443924"
}