salix/services/client/common/models/Employee.json

37 lines
662 B
JSON
Raw Normal View History

{
"name": "Employee",
2017-05-17 12:58:23 +00:00
"base": "MyModel",
2017-01-18 12:49:04 +00:00
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "string",
2017-01-12 10:02:22 +00:00
"required": true
2017-05-12 09:14:55 +00:00
}
},
"relations": {
2017-05-12 11:36:12 +00:00
"user": {
2017-05-12 09:14:55 +00:00
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
2017-03-14 12:08:55 +00:00
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
2017-05-18 15:54:23 +00:00
"principalId": "$authenticated",
2017-03-14 12:08:55 +00:00
"permission": "ALLOW"
2017-05-18 15:54:23 +00:00
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
2017-03-14 12:08:55 +00:00
}
]
}