[
  {
    "apiName": "HubSpotOwnerBinding__c",
    "label": "HubSpot Owner Binding",
    "pluralLabel": "HubSpot Owner Bindings",
    "tableType": "custom_object",
    "category": "crm",
    "sharingModel": "ReadWrite",
    "enableHierarchySharing": false,
    "description": "Crosswalk between HubSpot owner identities and local CRM owner principals.",
    "fields": [
      {
        "apiName": "PortalId__c",
        "label": "Portal Id",
        "type": "string"
      },
      {
        "apiName": "HubSpotOwnerId__c",
        "label": "HubSpot Owner Id",
        "type": "string"
      },
      {
        "apiName": "HubSpotOwnerType__c",
        "label": "HubSpot Owner Type",
        "type": "picklist",
        "options": [
          {
            "value": "PERSON",
            "label": "PERSON"
          },
          {
            "value": "QUEUE",
            "label": "QUEUE"
          }
        ]
      },
      {
        "apiName": "HubSpotUserId__c",
        "label": "HubSpot User Id",
        "type": "string"
      },
      {
        "apiName": "HubSpotUserIdIncludingInactive__c",
        "label": "HubSpot User Id Including Inactive",
        "type": "string"
      },
      {
        "apiName": "NormalizedEmail__c",
        "label": "Normalized Email",
        "type": "string"
      },
      {
        "apiName": "CRMPrincipalType__c",
        "label": "CRM Principal Type",
        "type": "picklist",
        "options": [
          {
            "value": "User",
            "label": "User"
          },
          {
            "value": "Queue",
            "label": "Queue"
          }
        ]
      },
      {
        "apiName": "CRMPrincipalId__c",
        "label": "CRM Principal Id",
        "type": "string"
      },
      {
        "apiName": "BindingStatus__c",
        "label": "Binding Status",
        "type": "picklist",
        "options": [
          {
            "value": "bound",
            "label": "bound"
          },
          {
            "value": "unresolved",
            "label": "unresolved"
          },
          {
            "value": "ambiguous",
            "label": "ambiguous"
          },
          {
            "value": "inactive",
            "label": "inactive"
          },
          {
            "value": "archived",
            "label": "archived"
          },
          {
            "value": "unsupported",
            "label": "unsupported"
          },
          {
            "value": "default",
            "label": "default"
          }
        ]
      },
      {
        "apiName": "SourceOfTruth__c",
        "label": "Source Of Truth",
        "type": "picklist",
        "options": [
          {
            "value": "manual",
            "label": "manual"
          },
          {
            "value": "auto_email",
            "label": "auto_email"
          },
          {
            "value": "auto_userid",
            "label": "auto_userid"
          }
        ]
      },
      {
        "apiName": "ManualLock__c",
        "label": "Manual Lock",
        "type": "boolean",
        "default": "0"
      },
      {
        "apiName": "LastSeenAt__c",
        "label": "Last Seen At",
        "type": "datetime"
      },
      {
        "apiName": "LastVerifiedAt__c",
        "label": "Last Verified At",
        "type": "datetime"
      }
    ],
    "indices": [
      {
        "name": "idx_HubSpotOwnerBinding_owner_shadow",
        "columns": [
          "CRMPrincipalId__c",
          "BindingStatus__c",
          "CRMPrincipalType__c"
        ]
      }
    ]
  }
]
