{ "name": "Claim", "base": "VnModel", "options": { "mysql": { "table": "claim", "database": "vn" } }, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "observation": { "type": "String" }, "ticketCreated": { "type": "date", "required": true }, "isChargedToMana": { "type": "boolean" }, "created": { "type": "date" }, "responsibility": { "type": "Number" }, "ticketFk": { "type": "Number" }, "claimStateFk": { "type": "Number" }, "clientFk": { "type": "Number" }, "workerFk": { "type": "Number" } }, "relations": { "claimState": { "type": "belongsTo", "model": "ClaimState", "foreignKey": "claimStateFk" }, "client": { "type": "belongsTo", "model": "Client", "foreignKey": "clientFk" }, "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "ticket": { "type": "belongsTo", "model": "Ticket", "foreignKey": "ticketFk" } } }