[
  {
    "apiName": "Account",
    "label": "Account",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "Private",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Account object",
    "fields": [
      {
        "apiName": "Name",
        "label": "Account Name",
        "type": "string",
        "required": true,
        "isNameField": true
      },
      {
        "apiName": "Type",
        "label": "Account Type",
        "type": "string"
      },
      {
        "apiName": "ParentId",
        "label": "Parent Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Parent"
      },
      {
        "apiName": "Phone",
        "label": "Phone",
        "type": "phone"
      },
      {
        "apiName": "Fax",
        "label": "Fax",
        "type": "phone"
      },
      {
        "apiName": "Website",
        "label": "Website",
        "type": "url"
      },
      {
        "apiName": "Industry",
        "label": "Industry",
        "type": "string"
      },
      {
        "apiName": "AnnualRevenue",
        "label": "Annual Revenue",
        "type": "currency"
      },
      {
        "apiName": "NumberOfEmployees",
        "label": "Number of Employees",
        "type": "double"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Rating",
        "label": "Rating",
        "type": "string"
      },
      {
        "apiName": "AccountSource",
        "label": "Account Source",
        "type": "picklist",
        "options": [
          { "value": "Advertisement", "label": "Advertisement" },
          { "value": "Customer Event", "label": "Customer Event" },
          { "value": "Employee Referral", "label": "Employee Referral" },
          { "value": "External Referral", "label": "External Referral" },
          { "value": "Partner", "label": "Partner" },
          { "value": "Public Relations", "label": "Public Relations" },
          { "value": "Seminar - Internal", "label": "Seminar - Internal" },
          { "value": "Seminar - Partner", "label": "Seminar - Partner" },
          { "value": "Trade Show", "label": "Trade Show" },
          { "value": "Web", "label": "Web" },
          { "value": "Word of mouth", "label": "Word of mouth" },
          { "value": "Other", "label": "Other" }
        ]
      },
      {
        "apiName": "BillingStreet",
        "label": "Billing Street",
        "type": "textarea"
      },
      {
        "apiName": "BillingCity",
        "label": "Billing City",
        "type": "string"
      },
      {
        "apiName": "BillingState",
        "label": "Billing State",
        "type": "string"
      },
      {
        "apiName": "BillingPostalCode",
        "label": "Billing Postal Code",
        "type": "string"
      },
      {
        "apiName": "BillingCountry",
        "label": "Billing Country",
        "type": "string"
      },
      {
        "apiName": "BillingCountryCode",
        "label": "Billing Country Code",
        "type": "string"
      },
      {
        "apiName": "ShippingStreet",
        "label": "Shipping Street",
        "type": "textarea"
      },
      {
        "apiName": "ShippingCity",
        "label": "Shipping City",
        "type": "string"
      },
      {
        "apiName": "ShippingState",
        "label": "Shipping State",
        "type": "string"
      },
      {
        "apiName": "ShippingPostalCode",
        "label": "Shipping Postal Code",
        "type": "string"
      },
      {
        "apiName": "ShippingCountry",
        "label": "Shipping Country",
        "type": "string"
      },
      {
        "apiName": "ShippingCountryCode",
        "label": "Shipping Country Code",
        "type": "string"
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type",
        "type": "reference",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType"
      }
    ]
  },
  {
    "apiName": "Contact",
    "label": "Contact",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Contact object",
    "fields": [
      {
        "apiName": "Salutation",
        "label": "Salutation",
        "type": "string",
        "compoundFieldName": "Name"
      },
      {
        "apiName": "FirstName",
        "label": "First Name",
        "type": "string",
        "compoundFieldName": "Name"
      },
      {
        "apiName": "LastName",
        "label": "Last Name",
        "type": "string",
        "required": true,
        "isNameField": true,
        "compoundFieldName": "Name"
      },
      {
        "apiName": "Title",
        "label": "Title",
        "type": "string"
      },
      {
        "apiName": "Department",
        "label": "Department",
        "type": "string"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "Phone",
        "label": "Phone",
        "type": "phone"
      },
      {
        "apiName": "MobilePhone",
        "label": "Mobile Phone",
        "type": "phone"
      },
      {
        "apiName": "Email",
        "label": "Email",
        "type": "email"
      },
      {
        "apiName": "HasOptedOutOfEmail",
        "label": "Email Opt Out",
        "type": "boolean"
      },
      {
        "apiName": "DoNotCall",
        "label": "Do Not Call",
        "type": "boolean"
      },
      {
        "apiName": "EmailBouncedDate",
        "label": "Email Bounced Date",
        "type": "datetime"
      },
      {
        "apiName": "EmailBouncedReason",
        "label": "Email Bounced Reason",
        "type": "string"
      },
      {
        "apiName": "LeadSource",
        "label": "Lead Source",
        "type": "picklist",
        "options": [
          { "value": "Advertisement", "label": "Advertisement" },
          { "value": "Customer Event", "label": "Customer Event" },
          { "value": "Employee Referral", "label": "Employee Referral" },
          { "value": "External Referral", "label": "External Referral" },
          { "value": "Partner", "label": "Partner" },
          { "value": "Public Relations", "label": "Public Relations" },
          { "value": "Seminar - Internal", "label": "Seminar - Internal" },
          { "value": "Seminar - Partner", "label": "Seminar - Partner" },
          { "value": "Trade Show", "label": "Trade Show" },
          { "value": "Web", "label": "Web" },
          { "value": "Word of mouth", "label": "Word of mouth" },
          { "value": "Other", "label": "Other" }
        ]
      },
      {
        "apiName": "Jigsaw",
        "label": "Data.com Key",
        "type": "string"
      },
      {
        "apiName": "JigsawContactId",
        "label": "Jigsaw Contact ID",
        "type": "string"
      },
      {
        "apiName": "AssistantName",
        "label": "Assistant Name",
        "type": "string"
      },
      {
        "apiName": "AssistantPhone",
        "label": "Assistant Phone",
        "type": "phone"
      },
      {
        "apiName": "Birthdate",
        "label": "Birthdate",
        "type": "date"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "MailingStreet",
        "label": "Mailing Street",
        "type": "textarea"
      },
      {
        "apiName": "MailingCity",
        "label": "Mailing City",
        "type": "string"
      },
      {
        "apiName": "MailingState",
        "label": "Mailing State",
        "type": "string"
      },
      {
        "apiName": "MailingPostalCode",
        "label": "Mailing Postal Code",
        "type": "string"
      },
      {
        "apiName": "MailingCountry",
        "label": "Mailing Country",
        "type": "string"
      },
      {
        "apiName": "MailingStateCode",
        "label": "Mailing State/Province Code",
        "type": "string"
      },
      {
        "apiName": "MailingCountryCode",
        "label": "Mailing Country Code",
        "type": "string"
      },
      {
        "apiName": "MailingLatitude",
        "label": "Mailing Latitude",
        "type": "double"
      },
      {
        "apiName": "MailingLongitude",
        "label": "Mailing Longitude",
        "type": "double"
      },
      {
        "apiName": "MailingGeocodeAccuracy",
        "label": "Mailing Geocode Accuracy",
        "type": "string"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "AccountId",
        "parentObject": "Account",
        "isSharingParent": true,
        "cascadeDelete": false
      }
    ]
  },
  {
    "apiName": "Lead",
    "label": "Lead",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "Private",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Lead object",
    "fields": [
      {
        "apiName": "Salutation",
        "label": "Salutation",
        "type": "string",
        "compoundFieldName": "Name"
      },
      {
        "apiName": "FirstName",
        "label": "First Name",
        "type": "string",
        "compoundFieldName": "Name"
      },
      {
        "apiName": "LastName",
        "label": "Last Name",
        "type": "string",
        "required": true,
        "isNameField": true,
        "compoundFieldName": "Name"
      },
      {
        "apiName": "Company",
        "label": "Company",
        "type": "string",
        "required": true
      },
      {
        "apiName": "Title",
        "label": "Title",
        "type": "string"
      },
      {
        "apiName": "LeadSource",
        "label": "Lead Source",
        "type": "picklist",
        "options": [
          { "value": "Advertisement", "label": "Advertisement" },
          { "value": "Customer Event", "label": "Customer Event" },
          { "value": "Employee Referral", "label": "Employee Referral" },
          { "value": "External Referral", "label": "External Referral" },
          { "value": "Partner", "label": "Partner" },
          { "value": "Public Relations", "label": "Public Relations" },
          { "value": "Seminar - Internal", "label": "Seminar - Internal" },
          { "value": "Seminar - Partner", "label": "Seminar - Partner" },
          { "value": "Trade Show", "label": "Trade Show" },
          { "value": "Web", "label": "Web" },
          { "value": "Word of mouth", "label": "Word of mouth" },
          { "value": "Other", "label": "Other" }
        ]
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "picklist",
        "required": true,
        "default": "Open - Not Contacted",
        "options": [
          { "value": "Open - Not Contacted", "label": "Open - Not Contacted" },
          { "value": "Working - Contacted", "label": "Working - Contacted" },
          { "value": "Qualified", "label": "Qualified" },
          { "value": "Nurture", "label": "Nurture" },
          { "value": "Converted", "label": "Converted", "tags": ["converted"] },
          { "value": "Closed - Converted", "label": "Closed - Converted", "tags": ["converted"] },
          { "value": "Closed - Not Converted", "label": "Closed - Not Converted" }
        ]
      },
      {
        "apiName": "Phone",
        "label": "Phone",
        "type": "phone"
      },
      {
        "apiName": "MobilePhone",
        "label": "Mobile Phone",
        "type": "phone"
      },
      {
        "apiName": "Email",
        "label": "Email",
        "type": "email"
      },
      {
        "apiName": "HasOptedOutOfEmail",
        "label": "Email Opt Out",
        "type": "boolean"
      },
      {
        "apiName": "DoNotCall",
        "label": "Do Not Call",
        "type": "boolean"
      },
      {
        "apiName": "EmailBouncedDate",
        "label": "Email Bounced Date",
        "type": "datetime"
      },
      {
        "apiName": "EmailBouncedReason",
        "label": "Email Bounced Reason",
        "type": "string"
      },
      {
        "apiName": "Website",
        "label": "Website",
        "type": "url"
      },
      {
        "apiName": "Industry",
        "label": "Industry",
        "type": "string"
      },
      {
        "apiName": "Street",
        "label": "Street",
        "type": "textarea"
      },
      {
        "apiName": "City",
        "label": "City",
        "type": "string"
      },
      {
        "apiName": "State",
        "label": "State",
        "type": "string"
      },
      {
        "apiName": "PostalCode",
        "label": "Postal Code",
        "type": "string"
      },
      {
        "apiName": "Country",
        "label": "Country",
        "type": "string"
      },
      {
        "apiName": "StateCode",
        "label": "State/Province Code",
        "type": "string"
      },
      {
        "apiName": "CountryCode",
        "label": "Country Code",
        "type": "string"
      },
      {
        "apiName": "Latitude",
        "label": "Latitude",
        "type": "double"
      },
      {
        "apiName": "Longitude",
        "label": "Longitude",
        "type": "double"
      },
      {
        "apiName": "GeocodeAccuracy",
        "label": "Geocode Accuracy",
        "type": "string"
      },
      {
        "apiName": "AnnualRevenue",
        "label": "Annual Revenue",
        "type": "currency"
      },
      {
        "apiName": "NumberOfEmployees",
        "label": "Number of Employees",
        "type": "double"
      },
      {
        "apiName": "Rating",
        "label": "Rating",
        "type": "string"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Jigsaw",
        "label": "Data.com Key",
        "type": "string"
      },
      {
        "apiName": "JigsawContactId",
        "label": "Jigsaw Contact ID",
        "type": "string"
      },
      {
        "apiName": "IsConverted",
        "label": "Converted",
        "type": "boolean"
      },
      {
        "apiName": "ConvertedDate",
        "label": "Converted Date",
        "type": "date"
      },
      {
        "apiName": "ConvertedAccountId",
        "label": "Converted Account ID",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "ConvertedAccount"
      },
      {
        "apiName": "ConvertedContactId",
        "label": "Converted Contact ID",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "ConvertedContact"
      },
      {
        "apiName": "ConvertedOpportunityId",
        "label": "Converted Opportunity ID",
        "type": "reference",
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "ConvertedOpportunity"
      }
    ]
  },
  {
    "apiName": "Opportunity",
    "label": "Opportunity",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "Private",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Opportunity object",
    "pathField": "StageName",
    "fields": [
      {
        "apiName": "Name",
        "label": "Opportunity Name",
        "type": "string",
        "required": true,
        "isNameField": true
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "StageName",
        "label": "Stage",
        "type": "picklist",
        "required": true,
        "default": "Prospecting",
        "options": [
          {
            "value": "Prospecting",
            "label": "Prospecting"
          },
          {
            "value": "Discovery & Qualification",
            "label": "Discovery & Qualification"
          },
          {
            "value": "Technical Validation",
            "label": "Technical Validation"
          },
          {
            "value": "Business Validation",
            "label": "Business Validation"
          },
          {
            "value": "Negotiation",
            "label": "Negotiation"
          },
          {
            "value": "Deal Closed",
            "label": "Deal Closed"
          },
          {
            "value": "Launched",
            "label": "Launched"
          },
          {
            "value": "Closed Lost",
            "label": "Closed Lost"
          }
        ]
      },
      {
        "apiName": "Amount",
        "label": "Amount",
        "type": "currency",
        "rollupConfig": {
          "summaryObject": "OpportunityLineItem",
          "summaryField": "TotalPrice",
          "relationshipField": "OpportunityId",
          "calcType": "SUM"
        }
      },
      {
        "apiName": "CloseDate",
        "label": "Close Date",
        "type": "date",
        "required": true
      },
      {
        "apiName": "Probability",
        "label": "Probability",
        "type": "percent"
      },
      {
        "apiName": "Type",
        "label": "Opportunity Type",
        "type": "string"
      },
      {
        "apiName": "LeadSource",
        "label": "Lead Source",
        "type": "picklist",
        "options": [
          { "value": "Advertisement", "label": "Advertisement" },
          { "value": "Customer Event", "label": "Customer Event" },
          { "value": "Employee Referral", "label": "Employee Referral" },
          { "value": "External Referral", "label": "External Referral" },
          { "value": "Partner", "label": "Partner" },
          { "value": "Public Relations", "label": "Public Relations" },
          { "value": "Seminar - Internal", "label": "Seminar - Internal" },
          { "value": "Seminar - Partner", "label": "Seminar - Partner" },
          { "value": "Trade Show", "label": "Trade Show" },
          { "value": "Web", "label": "Web" },
          { "value": "Word of mouth", "label": "Word of mouth" },
          { "value": "Other", "label": "Other" }
        ]
      },
      {
        "apiName": "NextStep",
        "label": "Next Step",
        "type": "textarea"
      },
      {
        "apiName": "CampaignId",
        "label": "Campaign",
        "type": "reference",
        "referenceTo": [
          "Campaign"
        ],
        "relationshipName": "Campaign"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type",
        "type": "reference",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType"
      }
    ]
  },
  {
    "apiName": "OpportunityContactRole",
    "label": "Opportunity Contact Role",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Opportunity Contact Role object; record-level access cascades from Opportunity while object and field access are derived from Opportunity and Contact permissions.",
    "accessPolicy": {
      "mode": "derived",
      "objectRead": {
        "allOf": [
          { "kind": "objectPermission", "object": "Opportunity", "operation": "Read" },
          { "kind": "objectPermission", "object": "Contact", "operation": "Read" }
        ]
      },
      "objectCreate": {
        "allOf": [
          { "kind": "objectPermission", "object": "Opportunity", "operation": "Edit" },
          { "kind": "objectPermission", "object": "Contact", "operation": "Read" }
        ]
      },
      "objectEdit": {
        "allOf": [
          { "kind": "objectPermission", "object": "Opportunity", "operation": "Edit" },
          { "kind": "objectPermission", "object": "Contact", "operation": "Read" }
        ]
      },
      "objectDelete": {
        "allOf": [
          { "kind": "objectPermission", "object": "Opportunity", "operation": "Edit" },
          { "kind": "objectPermission", "object": "Contact", "operation": "Read" }
        ]
      },
      "fieldRead": { "inherit": "objectRead" },
      "fieldEdit": { "inherit": "objectEdit" }
    },
    "fields": [
      {
        "apiName": "OpportunityId",
        "label": "Opportunity",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity"
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "Contact"
      },
      {
        "apiName": "Role",
        "label": "Role",
        "type": "string"
      },
      {
        "apiName": "IsPrimary",
        "label": "Primary",
        "type": "boolean",
        "required": true,
        "default": "0"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "OpportunityId",
        "parentObject": "Opportunity",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "Quote",
    "label": "Quote",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Quote object",
    "fields": [
      {
        "apiName": "Name",
        "label": "Quote Name",
        "type": "string",
        "required": true,
        "isNameField": true,
        "isCompound": true,
        "composedFrom": [
          "QuoteNumber"
        ]
      },
      {
        "apiName": "QuoteNumber",
        "label": "Quote Number",
        "type": "autonumber"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "string",
        "required": true,
        "default": "Draft"
      },
      {
        "apiName": "OpportunityId",
        "label": "Opportunity",
        "type": "reference",
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "ContractId",
        "label": "Contract",
        "type": "reference",
        "referenceTo": [
          "Contract"
        ],
        "relationshipName": "Contract"
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "Contact"
      },
      {
        "apiName": "ExpirationDate",
        "label": "Expiration Date",
        "type": "date"
      },
      {
        "apiName": "Subtotal",
        "label": "Subtotal",
        "type": "currency"
      },
      {
        "apiName": "TotalPrice",
        "label": "Total Price",
        "type": "currency"
      },
      {
        "apiName": "Discount",
        "label": "Discount",
        "type": "percent"
      },
      {
        "apiName": "Tax",
        "label": "Tax",
        "type": "currency"
      },
      {
        "apiName": "GrandTotal",
        "label": "Grand Total",
        "type": "currency"
      },
      {
        "apiName": "Email",
        "label": "Email",
        "type": "email"
      },
      {
        "apiName": "Phone",
        "label": "Phone",
        "type": "phone"
      },
      {
        "apiName": "Fax",
        "label": "Fax",
        "type": "phone"
      },
      {
        "apiName": "BillingStreet",
        "label": "Billing Street",
        "type": "textarea"
      },
      {
        "apiName": "BillingCity",
        "label": "Billing City",
        "type": "string"
      },
      {
        "apiName": "BillingCountry",
        "label": "Billing Country",
        "type": "string"
      },
      {
        "apiName": "ShippingStreet",
        "label": "Shipping Street",
        "type": "textarea"
      },
      {
        "apiName": "ShippingCity",
        "label": "Shipping City",
        "type": "string"
      },
      {
        "apiName": "ShippingCountry",
        "label": "Shipping Country",
        "type": "string"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Pricebook2Id",
        "label": "Price Book",
        "type": "reference",
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2"
      },
      {
        "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"
          }
        ]
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "OpportunityId",
        "parentObject": "Opportunity",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "Case",
    "label": "Case",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "Private",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Case object",
    "fields": [
      {
        "apiName": "CaseNumber",
        "label": "Case Number",
        "type": "autonumber"
      },
      {
        "apiName": "Subject",
        "label": "Subject",
        "type": "string",
        "required": true
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "string",
        "required": true,
        "default": "New"
      },
      {
        "apiName": "Priority",
        "label": "Priority",
        "type": "string",
        "required": true,
        "default": "Medium"
      },
      {
        "apiName": "Origin",
        "label": "Origin",
        "type": "string"
      },
      {
        "apiName": "Type",
        "label": "Type",
        "type": "string"
      },
      {
        "apiName": "Reason",
        "label": "Reason",
        "type": "string"
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "Contact"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Comments",
        "label": "Comments",
        "type": "textarea"
      }
    ]
  },
  {
    "apiName": "CaseComment",
    "label": "Case Comment",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce CaseComment object; record-level visibility follows the parent Case while object and field access are delegated through metadata-authored access policy.",
    "accessPolicy": {
      "mode": "derived",
      "objectRead": {
        "kind": "objectPermission",
        "object": "Case",
        "operation": "Read"
      },
      "objectCreate": {
        "kind": "objectPermission",
        "object": "Case",
        "operation": "Edit"
      },
      "objectEdit": {
        "allOf": [
          { "kind": "objectPermission", "object": "Case", "operation": "Edit" },
          {
            "anyOf": [
              { "kind": "objectPermission", "object": "Case", "operation": "ModifyAllRecords" },
              {
                "allOf": [
                  { "kind": "systemPermission", "apiName": "EditCaseComments" },
                  { "kind": "recordFieldEqualsCurrentUser", "field": "CreatedById" }
                ]
              }
            ]
          }
        ]
      },
      "objectDelete": {
        "allOf": [
          { "kind": "objectPermission", "object": "Case", "operation": "Edit" },
          {
            "anyOf": [
              { "kind": "objectPermission", "object": "Case", "operation": "ModifyAllRecords" },
              {
                "allOf": [
                  { "kind": "systemPermission", "apiName": "EditCaseComments" },
                  { "kind": "recordFieldEqualsCurrentUser", "field": "CreatedById" }
                ]
              }
            ]
          }
        ]
      },
      "fieldRead": { "inherit": "objectRead" },
      "fieldEdit": { "inherit": "objectEdit" }
    },
    "fields": [
      {
        "apiName": "ParentId",
        "label": "Case",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Case"
        ],
        "relationshipName": "Parent"
      },
      {
        "apiName": "CommentBody",
        "label": "Comment Body",
        "type": "textarea",
        "required": true
      },
      {
        "apiName": "IsPublished",
        "label": "Published",
        "type": "boolean",
        "required": true,
        "default": "0"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "ParentId",
        "parentObject": "Case",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "Task",
    "label": "Task",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Task object",
    "fields": [
      {
        "apiName": "Subject",
        "label": "Subject",
        "type": "string"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "picklist",
        "default": "Not Started",
        "options": [
          {
            "value": "Not Started",
            "label": "Not Started"
          },
          {
            "value": "In Progress",
            "label": "In Progress"
          },
          {
            "value": "Completed",
            "label": "Completed"
          },
          {
            "value": "Waiting on someone else",
            "label": "Waiting on someone else"
          },
          {
            "value": "Deferred",
            "label": "Deferred"
          }
        ]
      },
      {
        "apiName": "Priority",
        "label": "Priority",
        "type": "picklist",
        "default": "Normal",
        "options": [
          {
            "value": "High",
            "label": "High"
          },
          {
            "value": "Normal",
            "label": "Normal"
          },
          {
            "value": "Low",
            "label": "Low"
          }
        ]
      },
      {
        "apiName": "ActivityDate",
        "label": "Due Date Only",
        "type": "date"
      },
      {
        "apiName": "ActivityDateTime",
        "label": "Due Date Time",
        "type": "datetime"
      },
      {
        "apiName": "Description",
        "label": "Comments",
        "type": "textarea"
      },
      {
        "apiName": "WhoId",
        "label": "Name",
        "type": "reference",
        "referenceTo": [
          "Contact",
          "Lead"
        ],
        "isPolymorphic": true,
        "relationshipName": "Who"
      },
      {
        "apiName": "WhatId",
        "label": "Related To",
        "type": "reference",
        "referenceTo": [
          "Account",
          "Asset",
          "Campaign",
          "Case",
          "Contract",
          "Opportunity",
          "Order",
          "Product2",
          "Quote"
        ],
        "isPolymorphic": true,
        "relationshipName": "What"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type ID",
        "type": "reference",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType"
      },
      {
        "apiName": "Type",
        "label": "Type",
        "type": "picklist",
        "options": [
          {
            "value": "Call",
            "label": "Call"
          },
          {
            "value": "Email",
            "label": "Email"
          },
          {
            "value": "Meeting",
            "label": "Meeting"
          },
          {
            "value": "Other",
            "label": "Other"
          }
        ]
      },
      {
        "apiName": "IsClosed",
        "label": "Closed",
        "type": "boolean"
      },
      {
        "apiName": "IsArchived",
        "label": "Archived",
        "type": "boolean"
      },
      {
        "apiName": "IsHighPriority",
        "label": "High Priority",
        "type": "boolean"
      },
      {
        "apiName": "IsTaskLatestUpdate",
        "label": "Latest Update",
        "type": "boolean"
      },
      {
        "apiName": "IsRecurrence",
        "label": "Create Recurring Series of Tasks",
        "type": "boolean"
      },
      {
        "apiName": "IsReminderSet",
        "label": "Reminder Set",
        "type": "boolean"
      },
      {
        "apiName": "ReminderDateTime",
        "label": "Reminder Date/Time",
        "type": "datetime"
      },
      {
        "apiName": "CompletedDateTime",
        "label": "Completed Date/Time",
        "type": "datetime"
      },
      {
        "apiName": "CallDurationInSeconds",
        "label": "Call Duration",
        "type": "double"
      },
      {
        "apiName": "CallType",
        "label": "Call Type",
        "type": "picklist",
        "options": [
          {
            "value": "Internal",
            "label": "Internal"
          },
          {
            "value": "Inbound",
            "label": "Inbound"
          },
          {
            "value": "Outbound",
            "label": "Outbound"
          }
        ]
      },
      {
        "apiName": "CallDisposition",
        "label": "Call Result",
        "type": "string"
      },
      {
        "apiName": "CallObject",
        "label": "Call Object Identifier",
        "type": "string"
      },
      {
        "apiName": "TaskSubtype",
        "label": "Task Subtype",
        "type": "picklist",
        "default": "Task",
        "options": [
          {
            "value": "Task",
            "label": "Task"
          },
          {
            "value": "Call",
            "label": "Call"
          },
          {
            "value": "Email",
            "label": "Email"
          }
        ]
      },
      {
        "apiName": "ActivitySubtype",
        "label": "Activity Subtype",
        "type": "picklist",
        "options": [
          {
            "value": "Task",
            "label": "Task"
          },
          {
            "value": "Call",
            "label": "Call"
          },
          {
            "value": "Email",
            "label": "Email"
          }
        ]
      },
      {
        "apiName": "RecurrenceActivityId",
        "label": "Recurrence Activity ID",
        "type": "reference",
        "referenceTo": [
          "Task"
        ],
        "relationshipName": "RecurrenceActivity"
      },
      {
        "apiName": "RecurrenceStartDateOnly",
        "label": "Recurrence Start",
        "type": "date"
      },
      {
        "apiName": "RecurrenceEndDateOnly",
        "label": "Recurrence End",
        "type": "date"
      },
      {
        "apiName": "RecurrenceTimeZoneSidKey",
        "label": "Recurrence Time Zone",
        "type": "string"
      },
      {
        "apiName": "RecurrenceType",
        "label": "Recurrence Type",
        "type": "picklist",
        "options": [
          {
            "value": "RecursDaily",
            "label": "Daily"
          },
          {
            "value": "RecursEveryWeekday",
            "label": "Every Weekday"
          },
          {
            "value": "RecursWeekly",
            "label": "Weekly"
          },
          {
            "value": "RecursMonthly",
            "label": "Monthly"
          },
          {
            "value": "RecursMonthlyNth",
            "label": "Monthly Nth"
          },
          {
            "value": "RecursYearly",
            "label": "Yearly"
          },
          {
            "value": "RecursYearlyNth",
            "label": "Yearly Nth"
          }
        ]
      },
      {
        "apiName": "RecurrenceInterval",
        "label": "Recurrence Interval",
        "type": "double"
      },
      {
        "apiName": "RecurrenceDayOfWeekMask",
        "label": "Recurrence Day Of Week Mask",
        "type": "double"
      },
      {
        "apiName": "RecurrenceDayOfMonth",
        "label": "Recurrence Day Of Month",
        "type": "double"
      },
      {
        "apiName": "RecurrenceInstance",
        "label": "Recurrence Instance",
        "type": "picklist",
        "options": [
          {
            "value": "First",
            "label": "First"
          },
          {
            "value": "Second",
            "label": "Second"
          },
          {
            "value": "Third",
            "label": "Third"
          },
          {
            "value": "Fourth",
            "label": "Fourth"
          },
          {
            "value": "Last",
            "label": "Last"
          }
        ]
      },
      {
        "apiName": "RecurrenceMonthOfYear",
        "label": "Recurrence Month Of Year",
        "type": "picklist",
        "options": [
          {
            "value": "January",
            "label": "January"
          },
          {
            "value": "February",
            "label": "February"
          },
          {
            "value": "March",
            "label": "March"
          },
          {
            "value": "April",
            "label": "April"
          },
          {
            "value": "May",
            "label": "May"
          },
          {
            "value": "June",
            "label": "June"
          },
          {
            "value": "July",
            "label": "July"
          },
          {
            "value": "August",
            "label": "August"
          },
          {
            "value": "September",
            "label": "September"
          },
          {
            "value": "October",
            "label": "October"
          },
          {
            "value": "November",
            "label": "November"
          },
          {
            "value": "December",
            "label": "December"
          }
        ]
      },
      {
        "apiName": "RecurrenceRegeneratedType",
        "label": "Recurrence Regenerated Type",
        "type": "picklist",
        "options": [
          {
            "value": "RecurrenceRegenerateAfterDueDate",
            "label": "After due date"
          },
          {
            "value": "RecurrenceRegenerateAfterToday",
            "label": "After date completed"
          },
          {
            "value": "RecurrenceRegenerated",
            "label": "Task closed"
          }
        ]
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "AccountId",
        "parentObject": "Account",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "Campaign",
    "label": "Campaign",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "PublicRead",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Campaign object",
    "fields": [
      {
        "apiName": "Name",
        "label": "Campaign Name",
        "type": "string",
        "required": true,
        "isNameField": true
      },
      {
        "apiName": "Type",
        "label": "Campaign Type",
        "type": "string"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "string"
      },
      {
        "apiName": "StartDate",
        "label": "Start Date",
        "type": "date"
      },
      {
        "apiName": "EndDate",
        "label": "End Date",
        "type": "date"
      },
      {
        "apiName": "IsActive",
        "label": "Active",
        "type": "boolean",
        "required": true,
        "default": "0"
      },
      {
        "apiName": "BudgetedCost",
        "label": "Budgeted Cost",
        "type": "currency"
      },
      {
        "apiName": "ActualCost",
        "label": "Actual Cost",
        "type": "currency"
      },
      {
        "apiName": "ExpectedRevenue",
        "label": "Expected Revenue",
        "type": "currency"
      },
      {
        "apiName": "NumberSent",
        "label": "Number Sent",
        "type": "double"
      },
      {
        "apiName": "NumberOfResponses",
        "label": "Number of Responses",
        "type": "double"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      }
    ]
  },
  {
    "apiName": "CampaignMember",
    "label": "Campaign Member",
    "pluralLabel": "Campaign Members",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "description": "Standard Salesforce CampaignMember object",
    "fields": [
      {
        "apiName": "CampaignId",
        "label": "Campaign",
        "type": "reference",
        "required": true,
        "referenceTo": ["Campaign"],
        "relationshipName": "Campaign"
      },
      {
        "apiName": "LeadId",
        "label": "Lead",
        "type": "reference",
        "referenceTo": ["Lead"],
        "relationshipName": "Lead"
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "referenceTo": ["Contact"],
        "relationshipName": "Contact"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "string"
      },
      {
        "apiName": "HasResponded",
        "label": "Responded",
        "type": "boolean",
        "default": "0"
      },
      {
        "apiName": "FirstRespondedDate",
        "label": "First Responded Date",
        "type": "date"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "CampaignId",
        "parentObject": "Campaign",
        "isSharingParent": true,
        "cascadeDelete": false
      }
    ]
  },
  {
    "apiName": "Order",
    "label": "Order",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Order object",
    "fields": [
      {
        "apiName": "OrderNumber",
        "label": "Order Number",
        "type": "autonumber"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "ContractId",
        "label": "Contract",
        "type": "reference",
        "referenceTo": [
          "Contract"
        ],
        "relationshipName": "Contract"
      },
      {
        "apiName": "QuoteId",
        "label": "Quote",
        "type": "reference",
        "referenceTo": [
          "Quote"
        ],
        "relationshipName": "Quote"
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type",
        "type": "reference",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "string",
        "required": true,
        "default": "Draft"
      },
      {
        "apiName": "EffectiveDate",
        "label": "Effective Date",
        "type": "date",
        "required": true
      },
      {
        "apiName": "EndDate",
        "label": "End Date",
        "type": "date"
      },
      {
        "apiName": "TotalAmount",
        "label": "Total Amount",
        "type": "currency"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Type",
        "label": "Type",
        "type": "picklist",
        "required": false,
        "options": [
          {
            "label": "New",
            "value": "New"
          },
          {
            "label": "Renewal",
            "value": "Renewal"
          },
          {
            "label": "Expansion",
            "value": "Expansion"
          }
        ]
      },
      {
        "apiName": "StatusCode",
        "label": "Status Category",
        "type": "picklist",
        "required": true,
        "default": "Draft",
        "options": [
          {
            "label": "Draft",
            "value": "Draft",
            "isDefault": true
          },
          {
            "label": "Activated",
            "value": "Activated"
          }
        ]
      },
      {
        "apiName": "ActivatedDate",
        "label": "Activated Date",
        "type": "datetime"
      },
      {
        "apiName": "ActivatedById",
        "label": "Activated By",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "ActivatedBy"
      },
      {
        "apiName": "OpportunityId",
        "label": "Opportunity",
        "type": "reference",
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity"
      },
      {
        "apiName": "Pricebook2Id",
        "label": "Price Book",
        "type": "reference",
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2"
      },
      {
        "apiName": "CurrencyIsoCode",
        "label": "Currency ISO Code",
        "type": "picklist",
        "required": true,
        "default": "USD",
        "options": [
          {
            "label": "Chinese Yuan",
            "value": "CNY"
          },
          {
            "label": "Japanese Yen",
            "value": "JPY"
          },
          {
            "label": "Singapore Dollar",
            "value": "SGD"
          },
          {
            "label": "U.S. Dollar",
            "value": "USD"
          }
        ]
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "AccountId",
        "parentObject": "Account",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "Contract",
    "label": "Contract",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Contract object \u2014 legal agreements linked to Accounts",
    "fields": [
      {
        "apiName": "Name",
        "label": "Contract Name",
        "type": "string",
        "isNameField": true
      },
      {
        "apiName": "AccountId",
        "label": "Account Name",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "picklist",
        "required": true,
        "default": "Draft",
        "options": [
          {
            "label": "Draft",
            "value": "Draft",
            "isDefault": true
          },
          {
            "label": "InApproval",
            "value": "InApproval"
          },
          {
            "label": "Activated",
            "value": "Activated"
          },
          {
            "label": "Effective",
            "value": "Effective"
          }
        ]
      },
      {
        "apiName": "StartDate",
        "label": "Contract Start Date",
        "type": "date",
        "required": true
      },
      {
        "apiName": "ContractTerm",
        "label": "Contract Term (months)",
        "type": "double",
        "required": true
      },
      {
        "apiName": "ContractNumber",
        "label": "Contract Number",
        "type": "autonumber"
      },
      {
        "apiName": "EndDate",
        "label": "Contract End Date",
        "type": "date"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "BillingStreet",
        "label": "Billing Street",
        "type": "textarea"
      },
      {
        "apiName": "BillingCity",
        "label": "Billing City",
        "type": "string"
      },
      {
        "apiName": "BillingState",
        "label": "Billing State",
        "type": "string"
      },
      {
        "apiName": "BillingPostalCode",
        "label": "Billing Zip/Postal Code",
        "type": "string"
      },
      {
        "apiName": "BillingCountry",
        "label": "Billing Country",
        "type": "string"
      },
      {
        "apiName": "ShippingStreet",
        "label": "Shipping Street",
        "type": "textarea"
      },
      {
        "apiName": "ShippingCity",
        "label": "Shipping City",
        "type": "string"
      },
      {
        "apiName": "ShippingState",
        "label": "Shipping State",
        "type": "string"
      },
      {
        "apiName": "ShippingPostalCode",
        "label": "Shipping Zip/Postal Code",
        "type": "string"
      },
      {
        "apiName": "ShippingCountry",
        "label": "Shipping Country",
        "type": "string"
      },
      {
        "apiName": "CompanySignedId",
        "label": "Company Signed By",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "CompanySigned"
      },
      {
        "apiName": "CompanySignedDate",
        "label": "Company Signed Date",
        "type": "date"
      },
      {
        "apiName": "CustomerSignedId",
        "label": "Customer Signed By",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "CustomerSigned"
      },
      {
        "apiName": "CustomerSignedDate",
        "label": "Customer Signed Date",
        "type": "date"
      },
      {
        "apiName": "CustomerSignedTitle",
        "label": "Customer Signed Title",
        "type": "string"
      },
      {
        "apiName": "SpecialTerms",
        "label": "Special Terms",
        "type": "textarea"
      },
      {
        "apiName": "Pricebook2Id",
        "label": "Price Book",
        "type": "reference",
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2"
      },
      {
        "apiName": "RecordTypeId",
        "label": "Record Type",
        "type": "reference",
        "referenceTo": [
          "RecordType"
        ],
        "relationshipName": "RecordType"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "AccountId",
        "parentObject": "Account",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "RecordType",
    "label": "RecordType",
    "tableType": "standard_object",
    "category": "system",
    "sharingModel": "PublicRead",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce RecordType object \u2014 categorises records within an object for page layouts, picklist values, and business processes",
    "fields": [
      {
        "apiName": "Name",
        "label": "Name",
        "type": "string"
      },
      {
        "apiName": "DeveloperName",
        "label": "Developer Name",
        "type": "string"
      },
      {
        "apiName": "NamespacePrefix",
        "label": "Namespace Prefix",
        "type": "string"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "BusinessProcessId",
        "label": "Business Process",
        "type": "string"
      },
      {
        "apiName": "SobjectType",
        "label": "SObject Type",
        "type": "string"
      },
      {
        "apiName": "IsActive",
        "label": "Active",
        "type": "boolean"
      }
    ]
  },
  {
    "apiName": "Pricebook2",
    "label": "Pricebook2",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "PublicRead",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Price Book object \u2014 defines product pricing for opportunities and quotes",
    "fields": [
      {
        "apiName": "Name",
        "label": "Name",
        "type": "string"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "IsActive",
        "label": "Active",
        "type": "boolean"
      },
      {
        "apiName": "IsArchived",
        "label": "Archived",
        "type": "boolean"
      },
      {
        "apiName": "IsStandard",
        "label": "Standard Price Book",
        "type": "boolean"
      }
    ]
  },
  {
    "apiName": "OpportunityLineItem",
    "label": "Opportunity Line Item",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Opportunity Line Item object \u2014 represents products sold in an opportunity",
    "fields": [
      {
        "apiName": "OpportunityId",
        "label": "Opportunity",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Opportunity"
        ],
        "relationshipName": "Opportunity"
      },
      {
        "apiName": "PricebookEntryId",
        "label": "Price Book Entry",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "PricebookEntry"
        ],
        "relationshipName": "PricebookEntry"
      },
      {
        "apiName": "Quantity",
        "label": "Quantity",
        "type": "double",
        "required": true
      },
      {
        "apiName": "UnitPrice",
        "label": "Unit Price",
        "type": "currency"
      },
      {
        "apiName": "TotalPrice",
        "label": "Total Price",
        "type": "currency"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "ServiceDate",
        "label": "Service Date",
        "type": "date"
      },
      {
        "apiName": "ListPrice",
        "label": "List Price",
        "type": "currency"
      },
      {
        "apiName": "Discount",
        "label": "Discount",
        "type": "percent"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "OpportunityId",
        "parentObject": "Opportunity",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "QuoteLineItem",
    "label": "Quote Line Item",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Quote Line Item \u2014 products on a quote; record-level access cascades from Quote.",
    "fields": [
      {
        "apiName": "QuoteId",
        "label": "Quote",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Quote"
        ],
        "relationshipName": "Quote"
      },
      {
        "apiName": "PricebookEntryId",
        "label": "Price Book Entry",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "PricebookEntry"
        ],
        "relationshipName": "PricebookEntry"
      },
      {
        "apiName": "Quantity",
        "label": "Quantity",
        "type": "double",
        "required": true
      },
      {
        "apiName": "UnitPrice",
        "label": "Sales Price",
        "type": "currency",
        "required": true
      },
      {
        "apiName": "ListPrice",
        "label": "List Price",
        "type": "currency"
      },
      {
        "apiName": "TotalPrice",
        "label": "Total Price",
        "type": "currency"
      },
      {
        "apiName": "Subtotal",
        "label": "Subtotal",
        "type": "currency"
      },
      {
        "apiName": "Discount",
        "label": "Discount",
        "type": "percent"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "ServiceDate",
        "label": "Service Date",
        "type": "date"
      },
      {
        "apiName": "LineNumber",
        "label": "Line Number",
        "type": "string"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "QuoteId",
        "parentObject": "Quote",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "OrderItem",
    "label": "Order Product",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Order Product \u2014 products on an order; record-level access cascades from Order.",
    "fields": [
      {
        "apiName": "OrderId",
        "label": "Order",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Order"
        ],
        "relationshipName": "Order"
      },
      {
        "apiName": "PricebookEntryId",
        "label": "Price Book Entry",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "PricebookEntry"
        ],
        "relationshipName": "PricebookEntry"
      },
      {
        "apiName": "Product2Id",
        "label": "Product",
        "type": "reference",
        "referenceTo": [
          "Product2"
        ],
        "relationshipName": "Product2"
      },
      {
        "apiName": "Quantity",
        "label": "Quantity",
        "type": "double",
        "required": true
      },
      {
        "apiName": "UnitPrice",
        "label": "Unit Price",
        "type": "currency",
        "required": true
      },
      {
        "apiName": "ListPrice",
        "label": "List Price",
        "type": "currency"
      },
      {
        "apiName": "TotalPrice",
        "label": "Total Price",
        "type": "currency"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "ServiceDate",
        "label": "Start Date",
        "type": "date"
      },
      {
        "apiName": "EndDate",
        "label": "End Date",
        "type": "date"
      },
      {
        "apiName": "OrderItemNumber",
        "label": "Order Product Number",
        "type": "string"
      },
      {
        "apiName": "OriginalOrderItemId",
        "label": "Original Order Product",
        "type": "reference",
        "referenceTo": [
          "OrderItem"
        ],
        "relationshipName": "OriginalOrderItem"
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "OrderId",
        "parentObject": "Order",
        "isSharingParent": true
      }
    ]
  },
  {
    "apiName": "PricebookEntry",
    "label": "Price Book Entry",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "enableHierarchySharing": false,
    "description": "Standard Salesforce Price Book Entry \u2014 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"
      },
      {
        "apiName": "Product2Id",
        "label": "Product",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Product2"
        ],
        "relationshipName": "Product2"
      },
      {
        "apiName": "UnitPrice",
        "label": "List Price",
        "type": "currency",
        "required": true
      },
      {
        "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
      }
    ]
  }
]
