[
  {
    "apiName": "ProcessInstance",
    "description": "Runtime approval instances for submitted records",
    "fields": [
      {
        "apiName": "CompletedDate",
        "label": "Completed Date",
        "type": "datetime"
      },
      {
        "apiName": "CreatedById",
        "createable": false,
        "label": "Created By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "CreatedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "CreatedDate",
        "createable": false,
        "default": "CURRENT_TIMESTAMP",
        "label": "Created Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "Id",
        "createable": false,
        "label": "Record ID",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "LastModifiedDate",
        "createable": false,
        "default": "CURRENT_TIMESTAMP",
        "label": "Last Modified Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "ProcessDefinitionId",
        "label": "Process Definition",
        "referenceTo": [
          "ProcessDefinition"
        ],
        "required": true,
        "type": "reference"
      },
      {
        "apiName": "Status",
        "default": "Pending",
        "label": "Status",
        "required": true,
        "type": "string"
      },
      {
        "apiName": "SubmittedById",
        "label": "Submitted By",
        "referenceTo": [
          "User"
        ],
        "type": "reference"
      },
      {
        "apiName": "TargetObjectId",
        "label": "Target Record",
        "required": true,
        "type": "string"
      }
    ],
    "keyPrefix": "04g",
    "label": "Approval Instance",
    "pluralLabel": "Approval Instances",
    "sharingModel": "PublicReadWrite",
    "tableType": "standard_object"
  }
]
