38 lines
660 B
JSON
38 lines
660 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"
|
|
},
|
|
"isInventory": {
|
|
"type": "Number"
|
|
},
|
|
"isManaged":{
|
|
"type":"boolean"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
],
|
|
"scopes" : {
|
|
"production" : {"where": {"isManaged": {"neq": 0}}}
|
|
}
|
|
}
|