{ "name": "WorkerIncome", "base": "VnModel", "options": { "mysql": { "table": "workerIncome" } }, "properties": { "id": { "id": true, "type": "number" }, "debit": { "type": "number" }, "credit": { "type": "number" }, "incomeTypeFk": { "type": "number" }, "paymentDate": { "type": "date" }, "workerFk": { "type": "number" }, "concept": { "type": "string" } }, "relations": { "payrollComponent": { "type": "belongsTo", "model": "PayrollComponent", "foreignKey": "id" }, "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" } } }