26 lines
484 B
JSON
26 lines
484 B
JSON
{
|
|
"name": "WorkerDepartment",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "personDepartment"
|
|
}
|
|
},
|
|
"properties": {
|
|
"workerFk": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"department": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
}
|