{ "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": "string" }, "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" } }, "relations": { "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "department": { "type": "belongsTo", "model": "Department", "foreignKey": "departmentFk" }, "workCenter": { "type": "belongsTo", "model": "WorkCenter", "foreignKey": "workcenterFk" }, "companyCode": { "type": "belongsTo", "model": "Company", "foreignKey": "companyCodeFk" }, "reasonEnd": { "type": "belongsTo", "model": "BusinessReasonEnd", "foreignKey": "reasonEndFk" }, "occupationCode": { "type": "belongsTo", "model": "OccupationCode", "foreignKey":"occupationCodeFk" }, "payrollCategory": { "type": "belongsTo", "model": "PayrollCategory", "foreignKey":"workerBusinessCategoryFk" }, "workerBusinessProfessionalCategory": { "type": "belongsTo", "model": "WorkerBusinessProfessionalCategory", "foreignKey": "workerBusinessProfessionalCategoryFk" }, "calendarType": { "type": "belongsTo", "model": "CalendarType", "foreignKey": "calendarTypeFk" }, "workerBusinessCategory": { "type": "belongsTo", "model": "WorkerBusinessCategory", "foreignKey": "workerBusinessCategoryFk" }, "workerBusinessType": { "type": "belongsTo", "model": "WorkerBusinessType", "foreignKey": "workerBusinessTypeFk" }, "workerBusinessAgreement": { "type": "belongsTo", "model": "WorkerBusinessAgreement", "foreignKey": "workerBusinessAgreementFk" } } }