48 lines
888 B
JSON
48 lines
888 B
JSON
{
|
|
"name": "ClientObservation",
|
|
"description": "Notas de los clientes.",
|
|
"base": "PersistedModel",
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"clientFk": {
|
|
"type": "Number"
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"description": "Text"
|
|
},
|
|
"creationTime": {
|
|
"type": "date",
|
|
"description": "Creation date and time"
|
|
}
|
|
},
|
|
"relations": {
|
|
"employee": {
|
|
"type": "belongsTo",
|
|
"model": "Employee",
|
|
"foreignKey": "employeeFk"
|
|
},
|
|
"client": {
|
|
"type": "hasOne",
|
|
"model": "Client",
|
|
"foreignKey": "id"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
],
|
|
"scope": {
|
|
"include": "employee"
|
|
}
|
|
}
|