salix/back/models/warehouse.json

60 lines
993 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": {
2024-05-31 11:08:48 +00:00
"id": true,
"type": "number",
"forceId": false
2017-10-13 14:22:45 +00:00
},
"name": {
2024-05-31 11:08:48 +00:00
"type": "string"
2017-10-13 14:22:45 +00:00
},
"code": {
2024-05-31 11:08:48 +00:00
"type": "string"
},
"isInventory": {
2024-05-31 11:08:48 +00:00
"type": "number"
2017-10-13 14:22:45 +00:00
},
2024-05-31 11:08:48 +00:00
"isManaged": {
"type": "boolean"
2024-05-23 07:22:19 +00:00
},
"countryFk": {
"type": "number"
2024-05-23 07:22:19 +00:00
}
},
"relations": {
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
},
2024-05-31 11:08:48 +00:00
"address": {
"type": "belongsTo",
"model": "Address",
"foreignKey": "addressFk"
2017-10-13 14:22:45 +00:00
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
2024-05-31 11:08:48 +00:00
"scope": {
"where": {
"isForTicket": {
"neq": 0
}
}
}
}