{ "name": "MessageInbox", "base": "VnModel", "options": { "mysql": { "table": "messageInbox" } }, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "sender": { "type": "String", "required": true }, "recipient": { "type": "String", "required": true }, "finalRecipient": { "type": "String", "required": true }, "message": { "type": "String" } }, "relations": { "remitter": { "type": "belongsTo", "model": "User", "foreignKey": "sender" }, "receptor": { "type": "belongsTo", "model": "User", "foreignKey": "recipient" } } }