{ "name": "Sip", "base": "VnModel", "options": { "mysql": { "table": "pbx.sip" } }, "properties": { "userFk": { "type": "number", "id": true, "description": "The user id", "mysql": { "columnName": "user_id" } }, "extension": { "type": "string", "required": true } }, "relations": { "user": { "type": "belongsTo", "model": "VnUser", "foreignKey": "user_id" }, "queueMember": { "type": "belongsTo", "model": "QueueMember", "foreignKey": "extension", "primaryKey": "extension" } } }