2024-05-24 13:55:23 +00:00
|
|
|
{
|
|
|
|
"name": "TrainingCourse",
|
|
|
|
"description": "List of workers who have completed training",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "trainingCourse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"trainingCourseTypeFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"centerFk": {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"started": {
|
|
|
|
"type" : "date"
|
|
|
|
},
|
|
|
|
"ended": {
|
|
|
|
"type" : "date"
|
|
|
|
},
|
|
|
|
"invoice": {
|
|
|
|
"type" : "string"
|
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"remark": {
|
|
|
|
"type" : "boolean"
|
|
|
|
},
|
|
|
|
"hasDiscount": {
|
|
|
|
"type" : "boolean"
|
|
|
|
},
|
|
|
|
"hasDiploma": {
|
|
|
|
"type" : "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"trainingCourseType": {
|
|
|
|
"type": "belongsTo",
|
2024-05-28 10:22:11 +00:00
|
|
|
"model": "TrainingCourseType",
|
2024-05-24 13:55:23 +00:00
|
|
|
"foreignKey": "trainingCourseTypeFk"
|
|
|
|
},
|
2024-05-28 10:22:11 +00:00
|
|
|
"trainingCenter": {
|
2024-05-24 13:55:23 +00:00
|
|
|
"type": "belongsTo",
|
2024-05-28 10:22:11 +00:00
|
|
|
"model": "TrainingCenter",
|
2024-05-24 13:55:23 +00:00
|
|
|
"foreignKey": "centerFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|