salix/modules/zone/back/models/agency.json

54 lines
951 B
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
"name": "Agency",
"base": "VnModel",
"options": {
"mysql": {
"table": "agency"
}
},
2017-10-13 14:22:45 +00:00
"properties": {
"id": {
"id": true,
"type": "number",
2017-10-13 14:22:45 +00:00
"forceId": false
},
"name": {
"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
}
}