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