42 lines
686 B
JSON
42 lines
686 B
JSON
{
|
|
"name": "AgencyWorkCenter",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "agencyWorkCenter"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"forceId": false
|
|
},
|
|
"agencyFk": {
|
|
"type": "number",
|
|
"required": false
|
|
},
|
|
"workCenterFk": {
|
|
"type": "number",
|
|
"required": false
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "WorkCenter",
|
|
"foreignKey": "agencyFk"
|
|
},
|
|
"workCenter": {
|
|
"type": "belongsTo",
|
|
"model": "WorkCenter",
|
|
"foreignKey": "workCenterFk"
|
|
}
|
|
},
|
|
"scope": {
|
|
"include":{
|
|
"relation": "workCenter"
|
|
}
|
|
}
|
|
}
|