salix/modules/item/back/models/item-category.json

45 lines
878 B
JSON
Raw Normal View History

2018-08-21 11:38:16 +00:00
{
"name": "ItemCategory",
"base": "VnModel",
"options": {
"mysql": {
"table": "itemCategory"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
},
"display": {
"type": "Boolean"
},
"icon": {
"type": "String"
}
},
"relations": {
"itemTypes": {
"type": "hasMany",
"model": "ItemType",
"foreignKey": "categoryFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
"scope": {
"where": {
"display": {"gte": 1}
}
}
}