{
  "name": "Major",
  "base": "PersistedModel",
  "idInjection": true,
  "properties": {
    "code": {
      "type": "string",
      "required": true
    },
    "name": {
      "type": "string",
      "required": true
    }
  },
  "validations": [],
  "relations": {
    "companies": {
      "type": "hasMany",
      "model": "Company",
      "foreignKey": "companyId",
      "through": "CompanyMajor"
    }
  },
  "acls": [],
  "methods": []
}

{
  "name": "Major",
  "base": "PersistedModel",
  "idInjection": true,
  "properties": {
    "code": {
      "type": "string",
      "required": true
    },
    "name": {
      "type": "string",
      "required": true
    }
  },
  "validations": [],
  "relations": {
    "college": {
      "type": "belongsTo",
      "model": "College",
      "foreignKey": ""
    },
    "companies": {
      "type": "hasMany",
      "model": "Company",
      "foreignKey": "companyId",
      "through": "CompanyMajor"
    }
  },
  "acls": [],
  "methods": []
}

Add Major belongsTo relation to College
Add Major belongsTo relation to College
