[
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Account",
    "table": "crmacct",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "crmacct_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "incidentRelations",
        "toMany": {
          "type": "IncidentRelation",
          "column": "crmacct_number",
          "inverse": "account"
        }
      },
      {
        "name": "opportunityRelations",
        "toMany": {
          "type": "OpportunityRelation",
          "column": "crmacct_number",
          "inverse": "account"
        }
      },
      {
        "name": "toDoRelations",
        "toMany": {
          "type": "ToDoRelation",
          "column": "crmacct_number",
          "inverse": "account"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Contact",
    "table": "cntct",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "cntct_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "incidentRelations",
        "toMany": {
          "type": "IncidentRelation",
          "column": "cntct_number",
          "inverse": "contact"
        }
      },
      {
        "name": "opportunityRelations",
        "toMany": {
          "type": "OpportunityRelation",
          "column": "cntct_number",
          "inverse": "contact"
        }
      },
      {
        "name": "toDoRelations",
        "toMany": {
          "type": "ToDoRelation",
          "column": "cntct_number",
          "inverse": "contact"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Prospect",
    "table": "crmacct",
    "isExtension": true,
    "isChild": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "crmacct_prospect_id",
        "inverse": "id"
      }
    ],
    "properties": [
     {
        "name": "account",
        "attr": {
         "type": "String",
         "column": "crmacct_number"
        }
     }
    ],
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "ToDo",
    "table": "xt.todoiteminfo",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "todoitem_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "incident",
        "toOne": {
          "isNested": true,
          "type": "IncidentRelation",
          "column": "todoitem_incdt_id"
        }
      },
      {
        "name": "opportunity",
        "toOne": {
          "isNested": true,
          "type": "OpportunityRelation",
          "column": "todoitem_ophead_id"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "ToDoListItem",
    "table": "xt.todoiteminfo",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "todoitem_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "incident",
        "attr": {
          "type": "Number",
          "column": "todoitem_incdt_id"
        }
      },
      {
        "name": "opportunity",
        "attr": {
          "type": "Number",
          "column": "todoitem_ophead_id"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "ToDoRelation",
    "table": "xt.todoiteminfo",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "todoitem_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "incident",
        "attr": {
          "type": "String",
          "column": "incdt_number"
        }
      },
      {
        "name": "opportunity",
        "attr": {
          "type": "String",
          "column": "ophead_number"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Incident",
    "table": "xt.incdtxt",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "incdt_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "toDoRelations",
        "toMany": {
          "type": "ToDoRelation",
          "column": "incdt_number",
          "inverse": "incident"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Characteristic",
    "table": "char",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "char_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "isIncidents",
        "attr": {
          "type": "Boolean",
          "column": "char_incidents"
        }
      },
      {
        "name": "isOpportunities",
        "attr": {
          "type": "Boolean",
          "column": "char_opportunity"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  },
  {
    "context": "crm",
    "nameSpace": "XM",
    "type": "Opportunity",
    "table": "ophead",
    "isExtension": true,
    "comment": "Extended by Crm",
    "relations": [
      {
        "column": "ophead_id",
        "inverse": "id"
      }
    ],
    "properties": [
      {
        "name": "toDoRelations",
        "toMany": {
          "type": "ToDoRelation",
          "column": "ophead_number",
          "inverse": "opportunity"
        }
      }
    ],
    "sequence": 0,
    "isSystem": true
  }
]
