salix/back/models/warehouse.json

49 lines
864 B
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
"name": "Warehouse",
"description": "Warehouses from where orders are sent",
2017-10-13 14:22:45 +00:00
"base": "VnModel",
"options": {
"mysql": {
"table": "warehouse"
}
},
2017-10-13 14:22:45 +00:00
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2017-10-13 14:22:45 +00:00
"forceId": false
},
"name": {
2022-05-12 07:47:47 +00:00
"type": "string"
2017-10-13 14:22:45 +00:00
},
"code": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"isInventory": {
2022-05-12 07:47:47 +00:00
"type": "number"
2017-10-13 14:22:45 +00:00
},
"isManaged":{
"type": "boolean"
2024-05-23 07:22:19 +00:00
},
"countryFk": {
"type": "number"
}
},
"relations": {
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
2017-10-13 14:22:45 +00:00
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
2019-06-07 06:05:34 +00:00
"scope" : {"where": {"isForTicket": {"neq": 0}}}
2017-10-13 14:22:45 +00:00
}