2019-06-25 08:23:12 +00:00
|
|
|
{
|
|
|
|
"name": "ItemCategory",
|
|
|
|
"base": "PersistedModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "itemCategory"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"display": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": "String"
|
2019-06-26 11:19:03 +00:00
|
|
|
},
|
|
|
|
"color": {
|
|
|
|
"type": "String"
|
2019-06-25 08:23:12 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"itemTypes": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemType",
|
|
|
|
"foreignKey": "categoryFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"scope": {
|
|
|
|
"where": {
|
|
|
|
"display": {"gte": 1}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|