[
  {
    "apiName": "Region_All__c",
    "label": "Region Allocation",
    "pluralLabel": "Region Allocation",
    "tableType": "custom_object",
    "category": "crm",
    "sharingModel": "ReadWrite",
    "enableHierarchySharing": false,
    "description": "Per-region approver matrix. Maps a Region value to the set of regional users that downstream Flows (e.g. Credits_Stamp_Approvers) stamp onto approval-bearing records before submission. One row per Region. See docs/object-proposals/poc-credits-refactor.md §7 for the Credits routing semantics.",
    "fields": [
      {
        "apiName": "Region__c",
        "label": "Region",
        "type": "picklist",
        "options": [
          {
            "value": "APAC",
            "label": "APAC"
          },
          {
            "value": "EMEA",
            "label": "EMEA"
          },
          {
            "value": "Japan",
            "label": "Japan"
          },
          {
            "value": "NA",
            "label": "NA"
          },
          {
            "value": "LATAM",
            "label": "LATAM"
          }
        ]
      },
      {
        "apiName": "Region_DM__c",
        "label": "Region DM",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_DM__r",
        "childRelationshipName": "Region_Allocation1",
        "deleteConstraint": "SetNull",
        "description": "Deal Desk owner for this region. Used by the deal-desk team — not consumed by Credits approval routing. Preserved unchanged (including the legacy `Region_Allocation1` child relationship name) for backward compatibility with existing Deal Desk workflows and any external SOQL subqueries that reference the legacy name."
      },
      {
        "apiName": "Region_GPE__c",
        "label": "Region GPE",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_GPE__r",
        "childRelationshipName": "Region_Allocation_GPE",
        "deleteConstraint": "SetNull",
        "description": "Global Partner Engineering owner for this region. Preserved as a pack-owned reference field so legacy region allocation data and any downstream workflows that still read Region_GPE__c remain source-backed compatible during pack reapply."
      },
      {
        "apiName": "Region_BG_Leader__c",
        "label": "BG Leader",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_BG_Leader__r",
        "childRelationshipName": "Regions_As_BG_Leader",
        "deleteConstraint": "SetNull",
        "description": "Business Group Leader for this region (per proposal §7.3, BG Leader = regional leader). Stamped onto Credits records as BG_Leader_User__c by the Credits_Stamp_Approvers Flow. Replaces the prior misuse of Region_DM__c for BG Leader routing."
      },
      {
        "apiName": "Region_Pre_Sales_Manager__c",
        "label": "Pre-Sales Manager",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_Pre_Sales_Manager__r",
        "childRelationshipName": "Regions_As_Pre_Sales_Manager",
        "deleteConstraint": "SetNull",
        "description": "Pre-Sales Manager for this region. Stamped onto Credits records as Presales_Manager_User__c by the Credits_Stamp_Approvers Flow. Renamed from Region_Pre_Sales__c to clarify this is a single manager, not a generic pre-sales role."
      },
      {
        "apiName": "Regional_Finance__c",
        "label": "Regional Finance",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Regional_Finance__r",
        "childRelationshipName": "Region_Finance",
        "deleteConstraint": "SetNull",
        "description": "Regional Finance approver for this region. Stamped onto Credits records as Finance_Approver_User__c by the Credits_Stamp_Approvers Flow. Field name retains the established business term 'Regional Finance' (the team function, not a Manager-titled individual). Child relationship name `Region_Finance` preserved unchanged for backward compatibility with any external SOQL subqueries that reference it."
      },
      {
        "apiName": "Region_Marketing_Manager__c",
        "label": "Marketing Manager",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_Marketing_Manager__r",
        "childRelationshipName": "Regions_As_Marketing_Manager",
        "deleteConstraint": "SetNull",
        "description": "Regional Marketing Manager. Not consumed by Credits approval; reserved for future cross-functional workflows. Renamed from Regional_Marketing__c for naming consistency with the other *_Manager__c fields."
      },
      {
        "apiName": "Region_SDR_Manager__c",
        "label": "SDR Manager",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_SDR_Manager__r",
        "childRelationshipName": "Regions_As_SDR_Manager",
        "deleteConstraint": "SetNull",
        "description": "Regional Sales Development Rep Manager. Not consumed by Credits approval; reserved for future cross-functional workflows. Renamed from Regional_SDR__c for naming consistency."
      },
      {
        "apiName": "Region_Tech_Support_Manager__c",
        "label": "Technical Support Manager",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_Tech_Support_Manager__r",
        "childRelationshipName": "Regions_As_Tech_Support_Manager",
        "deleteConstraint": "SetNull",
        "description": "Regional Technical Support Manager. Not consumed by Credits approval; reserved for future cross-functional workflows. Renamed from Technical_Support__c for naming consistency."
      },
      {
        "apiName": "Region_Ops__c",
        "label": "Regional Ops",
        "type": "reference",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Region_Ops__r",
        "childRelationshipName": "Regions_As_Ops",
        "deleteConstraint": "SetNull",
        "description": "Regional operations owner for this region. Stamped onto Credits / Credits_Topup records as Regional_Ops_User__c by the Credits_Stamp_Approvers / Credits_Topup_Stamp_Approvers Flows, and notified on final approval to perform the downstream credit reset in the external system (proposal §0 Phase 3 item 2). NOT an approval-routing field — its absence does not trigger the NeedsTriage fallback (unlike the three approver fields)."
      }
    ],
    "keyPrefix": "a0Q"
  }
]
