salix/modules/worker/back/models/worker-department.json

31 lines
630 B
JSON
Raw Normal View History

2019-01-29 15:37:59 +00:00
{
"name": "WorkerDepartment",
"base": "VnModel",
"options": {
"mysql": {
2019-01-31 08:12:29 +00:00
"table": "workerDepartment"
2019-01-29 15:37:59 +00:00
}
},
"properties": {
"workerFk": {
"id": true,
"type": "Number"
},
2019-02-01 08:31:01 +00:00
"departmentFk": {
"type": "Number"
2019-01-29 15:37:59 +00:00
}
},
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
2019-02-01 08:31:01 +00:00
},
"department": {
"type": "belongsTo",
"model": "Department",
"foreignKey": "departmentFk"
2019-01-29 15:37:59 +00:00
}
}
}