{ "name": "Business", "base": "VnModel", "options": { "mysql": { "table": "business" } }, "properties": { "id": { "type": "number", "id": true }, "workcenterFk" : { "type": "number" }, "companyCodeFk" : { "type": "string" }, "started" : { "type": "date" }, "ended" : { "type": "date" }, "workerBusiness" : { "type": "string" }, "reasonEndFk" : { "type": "number" }, "payedHolidays" : { "type": "number" }, "occupationCodeFk" : { "type": "number" }, "workerFk" : { "type": "number" }, "notes" : { "type": "string" }, "departmentFk": { "type": "number" }, "workerBusinessProfessionalCategoryFk": { "type": "number" }, "calendarTypeFk": { "type": "string" }, "isHourlyLabor": { "type": "boolean" }, "rate": { "type": "number" }, "workerBusinessCategoryFk": { "type": "number" }, "workerBusinessTypeFk": { "type": "number" }, "amount": { "type": "number" }, "workerBusinessAgreementFk": { "type": "number" }, "basicSalary": { "type": "number" }, "editorFk": { "type": "number" } }, "relations": { "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "department": { "type": "belongsTo", "model": "Department", "foreignKey": "departmentFk" } } }