[
  {
    "apiName": "Partner_Attribution__c",
    "label": "Partner Attribution",
    "pluralLabel": "Partner Attributions",
    "tableType": "custom_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Downstream object for recording partner attribution entries against an Opportunity.",
    "fields": [
      {
        "apiName": "Opportunity__c",
        "label": "Opportunity",
        "type": "masterdetail",
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity__r",
        "childRelationshipName": "Partner_Attributions"
      },
      {
        "apiName": "Partner__c",
        "label": "Partner Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Partner__r",
        "childRelationshipName": "Partner_Attributions",
        "deleteConstraint": "SetNull"
      },
      {
        "apiName": "Attribution_Percentage__c",
        "label": "Attribution Percentage",
        "type": "percent"
      },
      {
        "apiName": "Notes__c",
        "label": "Notes",
        "type": "textarea"
      }
    ],
    "keyPrefix": "a0W"
  }
]
