{ "name": "UserPhone", "base": "Loggable", "log": { "model":"UserLog" }, "options": { "mysql": { "table": "userPhone" } }, "properties": { "id": { "id": true, "type": "String" }, "phone": { "type": "Number", "required": true } }, "relations": { "user": { "type": "belongsTo", "model": "Account", "foreignKey": "userFk" }, "type": { "type": "belongsTo", "model": "UserPhoneType", "foreignKey": "typeFk" } } }