salix/modules/client/back/models/sample.json

44 lines
857 B
JSON

{
"name": "Sample",
"base": "VnModel",
"options": {
"mysql": {
"table": "sample"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"code": {
"type": "String"
},
"description": {
"type": "String"
},
"isVisible": {
"type": "Boolean"
},
"hasCompany": {
"type": "Boolean"
},
"hasPreview": {
"type": "Boolean"
}
},
"scopes": {
"visible": {
"where": {"isVisible": true}
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}