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"
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2017-05-12 09:20:32 +00:00
|
|
|
"employeeFk": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Employee",
|
|
|
|
"foreignKey": "employeeFk"
|
|
|
|
},
|
2017-05-12 09:14:55 +00:00
|
|
|
"clientFk": {
|
2017-04-28 13:04:29 +00:00
|
|
|
"type": "hasOne",
|
2017-05-12 09:14:55 +00:00
|
|
|
"model": "Client",
|
2017-01-31 13:13:06 +00:00
|
|
|
"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": {
|
|
|
|
"include": "employeeFk"
|
|
|
|
}
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|