2022-10-21 06:00:48 +00:00
|
|
|
{
|
|
|
|
"name": "Business",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "business"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
2024-04-09 10:30:25 +00:00
|
|
|
},
|
|
|
|
"workcenterFk" : {
|
|
|
|
"type": "number"
|
2024-05-28 13:46:44 +00:00
|
|
|
},
|
|
|
|
"companyCodeFk" : {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"started" : {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"ended" : {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"workerBusiness" : {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"reasonEndFk" : {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"payedHolidays" : {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"occupationCodeFk" : {
|
2024-06-10 07:29:37 +00:00
|
|
|
"type": "string"
|
2024-05-28 13:46:44 +00:00
|
|
|
},
|
|
|
|
"workerFk" : {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"notes" : {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"departmentFk": {
|
2024-06-25 08:21:24 +00:00
|
|
|
"type": "string"
|
2024-05-28 13:46:44 +00:00
|
|
|
},
|
|
|
|
"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"
|
2022-10-21 06:00:48 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"department": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Department",
|
|
|
|
"foreignKey": "departmentFk"
|
2024-05-29 13:56:27 +00:00
|
|
|
},
|
|
|
|
"workCenter": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "WorkCenter",
|
|
|
|
"foreignKey": "workcenterFk"
|
|
|
|
},
|
|
|
|
"companyCode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
2024-06-25 08:21:24 +00:00
|
|
|
"foreignKey": "companyCodeFk",
|
|
|
|
"primaryKey": "code"
|
2024-05-29 13:56:27 +00:00
|
|
|
},
|
|
|
|
"reasonEnd": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "BusinessReasonEnd",
|
|
|
|
"foreignKey": "reasonEndFk"
|
|
|
|
},
|
|
|
|
"occupationCode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "OccupationCode",
|
2024-06-25 08:21:24 +00:00
|
|
|
"foreignKey":"occupationCodeFk",
|
|
|
|
"primaryKey": "code"
|
2024-05-29 13:56:27 +00:00
|
|
|
},
|
2024-06-05 08:43:53 +00:00
|
|
|
"payrollCategory": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "PayrollCategory",
|
|
|
|
"foreignKey":"workerBusinessCategoryFk"
|
|
|
|
},
|
2024-05-29 13:56:27 +00:00
|
|
|
"workerBusinessProfessionalCategory": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "WorkerBusinessProfessionalCategory",
|
|
|
|
"foreignKey": "workerBusinessProfessionalCategoryFk"
|
2024-06-05 08:43:53 +00:00
|
|
|
},
|
2024-05-29 13:56:27 +00:00
|
|
|
"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"
|
2022-10-21 06:00:48 +00:00
|
|
|
}
|
2024-05-29 13:56:27 +00:00
|
|
|
|
2022-10-21 06:00:48 +00:00
|
|
|
}
|
2024-04-09 10:30:25 +00:00
|
|
|
}
|