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

48 lines
888 B
JSON
Raw Normal View History

2017-01-17 09:59:27 +00:00
{
"name": "ClientObservation",
"description": "Notas de los clientes.",
"base": "PersistedModel",
"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-09 12:04:44 +00:00
"creationTime": {
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",
"principalId": "$everyone",
"permission": "ALLOW"
}
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
}