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