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