salix/back/models/warehouse.json

49 lines
864 B
JSON

{
"name": "Warehouse",
"description": "Warehouses from where orders are sent",
"base": "VnModel",
"options": {
"mysql": {
"table": "warehouse"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"forceId": false
},
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"isInventory": {
"type": "number"
},
"isManaged":{
"type": "boolean"
},
"countryFk": {
"type": "number"
}
},
"relations": {
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
"scope" : {"where": {"isForTicket": {"neq": 0}}}
}