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

31 lines
630 B
JSON
Raw Permalink 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,
2022-05-12 07:47:47 +00:00
"type": "number"
2019-01-29 15:37:59 +00:00
},
2019-02-01 08:31:01 +00:00
"departmentFk": {
2022-05-12 07:47:47 +00:00
"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
}
}
}