[
  {
    "apiName": "PricebookEntry",
    "keyPrefix": "01u",
    "label": "Price Book Entry",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Price Book Entry — links a Product2 to a Pricebook2; record-level access cascades from Pricebook2.",
    "fields": [
      {
        "apiName": "Pricebook2Id",
        "label": "Price Book",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2",
        "childRelationshipName": "PricebookEntries"
      },
      {
        "apiName": "Product2Id",
        "label": "Product",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Product2"
        ],
        "relationshipName": "Product2",
        "childRelationshipName": "PricebookEntries"
      },
      {
        "apiName": "UnitPrice",
        "label": "List Price",
        "type": "currency",
        "required": true
      },
      {
        "apiName": "CurrencyIsoCode",
        "label": "Currency ISO Code",
        "type": "picklist",
        "default": "USD",
        "options": [
          {
            "label": "Chinese Yuan",
            "value": "CNY"
          },
          {
            "label": "Japanese Yen",
            "value": "JPY"
          },
          {
            "label": "Singapore Dollar",
            "value": "SGD"
          },
          {
            "label": "U.S. Dollar",
            "value": "USD"
          }
        ]
      },
      {
        "apiName": "IsActive",
        "label": "Active",
        "type": "boolean"
      },
      {
        "apiName": "UseStandardPrice",
        "label": "Use Standard Price",
        "type": "boolean"
      },
      {
        "apiName": "ProductCode",
        "label": "Product Code",
        "type": "string"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "Pricebook2Id",
        "parentObject": "Pricebook2",
        "isSharingParent": true
      }
    ]
  }
]
