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        SELECT id as \"id!\", macro_id as \"macro_id!\",\n               fusionauth_user_id as \"fusionauth_user_id!\",\n               email_address as \"email_address!\",\n               provider as \"provider!: _\",\n               is_sync_active as \"is_sync_active!\",\n               is_primary as \"is_primary!\",\n               needs_reauth as \"needs_reauth!\",\n               last_sync_error_at,\n               created_at as \"created_at!\",\n               updated_at as \"updated_at!\"\n        FROM (\n            SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n                   el.provider, el.is_sync_active, el.is_primary, el.needs_reauth,\n                   el.last_sync_error_at, el.created_at, el.updated_at,el.sync_generation,el.grant_generation\n            FROM email_links el\n            WHERE el.macro_id = $1\n            UNION\n            SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n                   el.provider, el.is_sync_active, el.is_primary, el.needs_reauth,\n                   el.last_sync_error_at, el.created_at, el.updated_at,el.sync_generation,el.grant_generation\n            FROM email_links el\n            JOIN macro_user_links mul ON el.id = mul.link_id\n            WHERE mul.primary_macro_id = $1\n        ) AS combined\n        ORDER BY created_at DESC\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "macro_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "fusionauth_user_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "email_address!",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "provider!: _",
        "type_info": {
          "Custom": {
            "name": "email_user_provider_enum",
            "kind": {
              "Enum": [
                "GMAIL",
                "OUTLOOK"
              ]
            }
          }
        }
      },
      {
        "ordinal": 5,
        "name": "is_sync_active!",
        "type_info": "Bool"
      },
      {
        "ordinal": 6,
        "name": "is_primary!",
        "type_info": "Bool"
      },
      {
        "ordinal": 7,
        "name": "needs_reauth!",
        "type_info": "Bool"
      },
      {
        "ordinal": 8,
        "name": "last_sync_error_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 9,
        "name": "created_at!",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 10,
        "name": "updated_at!",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Text"
      ]
    },
    "nullable": [
      null,
      null,
      null,
      null,
      null,
      null,
      null,
      null,
      null,
      null,
      null
    ]
  },
  "hash": "9194b54e680fca44a2ab7599a19fac785be6eb4ce6903ff3aeeb050a6c0bba4a"
}