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

54 lines
951 B
JSON

{
"name": "Agency",
"base": "VnModel",
"options": {
"mysql": {
"table": "agency"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"forceId": false
},
"name": {
"type": "string",
"required": false
},
"warehouseFk": {
"type": "number",
"required": false
},
"isOwn": {
"type": "boolean",
"required": false
},
"workCenterFk": {
"type": "number",
"required": false
},
"isAnyVolumeAllowed": {
"type": "boolean",
"required": false
}
},
"relations": {
"supplierAgencyTerm": {
"type": "hasOne",
"model": "SupplierAgencyTerm",
"foreignKey": "agencyFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"workCenter": {
"type": "belongsTo",
"model": "WorkCenter",
"foreignKey": "workCenterFk"
}
}
}