2017-10-13 14:22:45 +00:00
|
|
|
{
|
|
|
|
"name": "Agency",
|
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "agency"
|
|
|
|
}
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number",
|
2017-10-13 14:22:45 +00:00
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"name": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "string",
|
2017-10-13 14:22:45 +00:00
|
|
|
"required": false
|
2024-04-04 05:27:27 +00:00
|
|
|
},
|
|
|
|
"warehouseFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": false
|
|
|
|
},
|
|
|
|
"isOwn": {
|
|
|
|
"type": "boolean",
|
|
|
|
"required": false
|
|
|
|
},
|
|
|
|
"workCenterFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": false
|
|
|
|
},
|
|
|
|
"isAnyVolumeAllowed": {
|
|
|
|
"type": "boolean",
|
|
|
|
"required": false
|
2017-10-13 14:22:45 +00:00
|
|
|
}
|
2022-03-15 08:36:48 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"supplierAgencyTerm": {
|
2022-03-15 13:50:09 +00:00
|
|
|
"type": "hasOne",
|
2022-03-15 08:36:48 +00:00
|
|
|
"model": "SupplierAgencyTerm",
|
|
|
|
"foreignKey": "agencyFk"
|
2024-04-04 05:27:27 +00:00
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
},
|
|
|
|
"workCenter": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "WorkCenter",
|
|
|
|
"foreignKey": "workCenterFk"
|
|
|
|
}
|
2017-10-13 14:22:45 +00:00
|
|
|
}
|
|
|
|
}
|