[
  {
    "apiName": "Case",
    "keyPrefix": "500",
    "label": "Case",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "Private",
    "enableHierarchySharing": true,
    "description": "Standard Salesforce Case object",
    "fields": [
      {
        "apiName": "CaseNumber",
        "label": "Case Number",
        "type": "autonumber",
        "isNameField": true
      },
      {
        "apiName": "Subject",
        "label": "Subject",
        "type": "string",
        "required": true
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "picklist",
        "required": true,
        "default": "New",
        "options": [
          {
            "value": "New",
            "label": "New"
          },
          {
            "value": "Working",
            "label": "Working"
          },
          {
            "value": "Escalated",
            "label": "Escalated"
          },
          {
            "value": "Closed",
            "label": "Closed"
          }
        ]
      },
      {
        "apiName": "Priority",
        "label": "Priority",
        "type": "picklist",
        "required": true,
        "default": "Medium",
        "options": [
          {
            "value": "High",
            "label": "High"
          },
          {
            "value": "Medium",
            "label": "Medium"
          },
          {
            "value": "Low",
            "label": "Low"
          }
        ]
      },
      {
        "apiName": "Origin",
        "label": "Origin",
        "type": "picklist",
        "options": [
          {
            "value": "Phone",
            "label": "Phone"
          },
          {
            "value": "Email",
            "label": "Email"
          },
          {
            "value": "Web",
            "label": "Web"
          }
        ]
      },
      {
        "apiName": "Type",
        "label": "Type",
        "type": "picklist",
        "options": [
          {
            "value": "Problem",
            "label": "Problem"
          },
          {
            "value": "Question",
            "label": "Question"
          },
          {
            "value": "Feature Request",
            "label": "Feature Request"
          }
        ]
      },
      {
        "apiName": "Reason",
        "label": "Reason",
        "type": "picklist",
        "options": [
          {
            "value": "Installation",
            "label": "Installation"
          },
          {
            "value": "Equipment Complexity",
            "label": "Equipment Complexity"
          },
          {
            "value": "Performance",
            "label": "Performance"
          },
          {
            "value": "Breakdown",
            "label": "Breakdown"
          },
          {
            "value": "Equipment Design",
            "label": "Equipment Design"
          },
          {
            "value": "Feedback",
            "label": "Feedback"
          },
          {
            "value": "Other",
            "label": "Other"
          }
        ]
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "Contact",
        "childRelationshipName": "Cases"
      },
      {
        "apiName": "AccountId",
        "label": "Account",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account",
        "childRelationshipName": "Cases"
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "Comments",
        "label": "Comments",
        "type": "textarea"
      },
      {
        "apiName": "AssetId",
        "type": "reference",
        "label": "AssetId",
        "referenceTo": [
          "Asset"
        ]
      },
      {
        "apiName": "BusinessHoursId",
        "type": "string",
        "label": "BusinessHoursId"
      },
      {
        "apiName": "ParentId",
        "type": "reference",
        "label": "ParentId",
        "referenceTo": [
          "Case"
        ]
      },
      {
        "apiName": "SourceId",
        "type": "string",
        "label": "SourceId"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Assignee_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Assignee Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Brand_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Brand Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Created_At__c",
        "type": "datetime",
        "label": "Zendesk Support Ticket Created At"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Form_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Form Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Group_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Group Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_ID__c",
        "type": "string",
        "label": "Zendesk Support Ticket ID"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Initial_Assigned__c",
        "type": "datetime",
        "label": "Zendesk Support Ticket Initial Assigned"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Organization_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Organization Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Requester_As_Lead__c",
        "type": "reference",
        "label": "Zendesk Support Ticket Requester As Lead",
        "referenceTo": [
          "Lead"
        ],
        "relationshipName": "Zendesk_Support_Tiicket_As_Case"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Requester_Email__c",
        "type": "string",
        "label": "Zendesk Support Ticket Requester Email"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Requester_Name__c",
        "type": "string",
        "label": "Zendesk Support Ticket Requester Name"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Resolution_Bus__c",
        "type": "double",
        "label": "Zendesk Support Ticket Resolution (Bus)"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Resolution_Cal__c",
        "type": "double",
        "label": "Zendesk Support Ticket Resolution (Cal)"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Solved_At__c",
        "type": "datetime",
        "label": "Zendesk Support Ticket Solved At"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Tags__c",
        "type": "textarea",
        "label": "Zendesk Support Ticket Tag"
      },
      {
        "apiName": "Zendesk_Support_Ticket_URL__c",
        "type": "url",
        "label": "Zendesk Support Ticket URL"
      },
      {
        "apiName": "Zendesk_Support_Ticket_Updated_At__c",
        "type": "datetime",
        "label": "Zendesk Support Ticket Updated At"
      },
      {
        "apiName": "OwnerId",
        "type": "reference",
        "label": "Owner ID",
        "required": true,
        "referenceTo": [
          "Group",
          "User"
        ],
        "relationshipName": "Owner",
        "isPolymorphic": true
      }
    ]
  }
]
