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

54 lines
1001 B
JSON
Raw Normal View History

2017-01-17 09:59:27 +00:00
{
"name": "ClientObservation",
"description": "Notas de los clientes.",
2017-05-17 12:58:23 +00:00
"base": "MyModel",
2017-01-17 09:59:27 +00:00
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
2017-05-09 12:04:44 +00:00
"clientFk": {
"type": "Number"
},
2017-01-17 09:59:27 +00:00
"text": {
"type": "string",
2017-01-18 13:48:35 +00:00
"description": "Text"
2017-01-17 09:59:27 +00:00
},
2017-05-12 13:21:37 +00:00
"created": {
2017-01-17 09:59:27 +00:00
"type": "date",
2017-05-09 12:04:44 +00:00
"description": "Creation date and time"
}
},
"relations": {
2017-05-12 11:36:12 +00:00
"employee": {
2017-05-12 09:20:32 +00:00
"type": "belongsTo",
"model": "Employee",
"foreignKey": "employeeFk"
},
2017-05-12 11:36:12 +00:00
"client": {
"type": "hasOne",
2017-05-12 09:14:55 +00:00
"model": "Client",
"foreignKey": "id"
2017-01-17 09:59:27 +00:00
}
2017-03-14 12:08:55 +00:00
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
2017-05-30 12:17:01 +00:00
"principalId": "$everyone",
"permission": "DENY"
2017-05-18 15:54:23 +00:00
},
{
"accessType": "*",
"principalType": "ROLE",
2017-05-30 12:17:01 +00:00
"principalId": "root",
"permission": "ALLOW"
2017-03-14 12:08:55 +00:00
}
2017-05-12 09:20:32 +00:00
],
"scope": {
2017-05-12 11:58:08 +00:00
"include": "employee"
2017-05-12 09:20:32 +00:00
}
2017-01-17 09:59:27 +00:00
}