Select Git revision
category.json
category.json 1.08 KiB
{
"name": "category",
"plural": "categories",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"category_name": {
"type": "string"
},
"category_description": {
"type": "string"
}
},
"validations": [],
"relations": {
"locations": {
"type": "hasMany",
"model": "geolocation",
"foreignKey": "category_id"
},
"user": {
"type": "belongsTo",
"model": "end_user",
"foreignKey": "id"
}
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "admin",
"permission": "ALLOW"
},
{
"accessType": "count",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
}
],
"methods": {}
}