{
  "data": {
    "tree": [
      {
        "value": "record_in",
        "tree": [
          {
            "value": "name",
            "key": "name"
          },
          {
            "value": "customerId",
            "key": "customer_id",
            "required": true,
            "inmutable": true
          },
          {
            "value": "clientId",
            "key": "client_id",
            "required": true,
            "inmutable": true
          },
          {
            "value": "supCustomerId",
            "key": "supervisor.customer_id",
            "required": true,
            "inmutable": true
          },
          {
            "value": "supUserId",
            "key": "supervisor.user_id"
          },
          {
            "value": "advCustomerId",
            "key": "advisor.customer_id"
          },
          {
            "value": "advUserId",
            "key": "advisor.user_id"
          },
          {
            "value": "lawCustomerId",
            "key": "lawyer.customer_id"
          },
          {
            "value": "lawUserId",
            "key": "lawyer.user_id"
          },
          {
            "value": "investors",
            "key": "investors",
            "array": true,
            "tree": [
              {
                "value": "invCustomerId",
                "key": "customer_id"
              },
              {
                "value": "invUserId",
                "key": "user_id"
              },
              {
                "value": "priority",
                "key": "priority",
                "schema": "investor/priority"
              }
            ]
          },
          {
            "value": "stateType",
            "key": "stateType",
            "schema": "state/types",
            "required": true,
            "inmutable": true
          },
          {
            "value": "minCap",
            "key": "invest.min_cap"
          },
          {
            "value": "maxCap",
            "key": "invest.max_cap"
          },
          {
            "value": "selfEV",
            "key": "invest.self_ev"
          },
          {
            "value": "invStruct",
            "key": "invest.structure",
            "schema": "transaction/structure"
          },
          {
            "value": "invPeriod",
            "key": "invest.period",
            "schema": "investor/period"
          },
          {
            "value": "invPhase",
            "key": "invest.phase",
            "schema": "investor/phases"
          },
          {
            "value": "invStake",
            "key": "invest.stake",
            "schema": "company/stake"
          },
          {
            "value": "invType",
            "key": "invest.type",
            "schema": "investor/types"
          },
          {
            "value": "largestShInPct",
            "key": "captable.largest_sh_pct"
          },
          {
            "value": "largestShName",
            "key": "captable.largest_sh_name"
          },
          {
            "value": "uvp",
            "key": "market.uvp"
          },
          {
            "value": "comp",
            "key": "market.comp"
          },
          {
            "value": "econ",
            "key": "market.econ"
          },
          {
            "value": "notes",
            "key": "market.notes"
          }
        ]
      },
      {
        "value": "record_out",
        "tree": [
          {
            "value": "name",
            "key": "name"
          },
          {
            "value": "transaction_id",
            "key": "transactionId"
          },
          {
            "value": "client_id",
            "key": "clientId"
          },
          {
            "value": "customer_id",
            "key": "customerId"
          },
          {
            "value": "type",
            "key": "stateType"
          },
          {
            "value": "supervisor",
            "tree": [
              {
                "value": "customer_id",
                "key": "supCustomerId"
              },
              {
                "value": "user_id",
                "key": "supUserId"
              }
            ]
          },
          {
            "value": "advisor",
            "tree": [
              {
                "value": "customer_id",
                "key": "advCustomerId"
              },
              {
                "value": "user_id",
                "key": "advUserId"
              }
            ]
          },
          {
            "value": "lawyer",
            "tree": [
              {
                "value": "customer_id",
                "key": "lawCustomerId"
              },
              {
                "value": "user_id",
                "key": "lawUserId"
              }
            ]
          },
          {
            "value": "investors",
            "key": "investors",
            "tree": [
              {
                "value": "customer_id",
                "key": "invCustomerId"
              },
              {
                "value": "user_id",
                "key": "invUserId"
              },
              {
                "value": "priority",
                "key": "priority"
              }
            ]
          },
          {
            "value": "invest",
            "tree": [
              {
                "value": "min_cap",
                "key": "minCap"
              },
              {
                "value": "max_cap",
                "key": "maxCap"
              },
              {
                "value": "self_ev",
                "key": "selfEV"
              },
              {
                "value": "structure",
                "key": "invStruct"
              },
              {
                "value": "period",
                "key": "invPeriod"
              },
              {
                "value": "phase",
                "key": "invPhase"
              },
              {
                "value": "stake",
                "key": "invStake"
              },
              {
                "value": "type",
                "key": "invType"
              }
            ]
          },
          {
            "value": "captable",
            "tree": [
              {
                "value": "largest_sh_pct",
                "key": "largestShInPct"
              },
              {
                "value": "largest_sh_name",
                "key": "largestShName"
              }
            ]
          },
          {
            "value": "market",
            "tree": [
              {
                "value": "uvp",
                "key": "uvp"
              },
              {
                "value": "comp",
                "key": "comp"
              },
              {
                "value": "econ",
                "key": "econ"
              },
              {
                "value": "notes",
                "key": "notes"
              }
            ]
          }
        ]
      },
      {
        "value": "index_by",
        "tree": [
          {
            "value": "customer",
            "key": "customerId"
          },
          {
            "value": "client",
            "key": "clientId"
          },
          {
            "value": "advisor",
            "key": "advCustomerId"
          },
          {
            "value": "lawyer",
            "key": "lawCustomerId"
          },
          {
            "value": "supervisor",
            "key": "supCustomerId"
          },
          {
            "value": "investor",
            "key": "investors[].invCustomerId"
          }          
        ]
      }
    ]
  }
}
