39 lines
703 B
JSON
39 lines
703 B
JSON
{
|
|
"name": "ClientObservation",
|
|
"description": "Notas de los clientes.",
|
|
"base": "VnModel",
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"clientFk": {
|
|
"type": "Number"
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"description": "Text"
|
|
},
|
|
"created": {
|
|
"type": "date",
|
|
"description": "Creation date and time"
|
|
}
|
|
},
|
|
"relations": {
|
|
"employee": {
|
|
"type": "belongsTo",
|
|
"model": "Employee",
|
|
"foreignKey": "employeeFk"
|
|
},
|
|
"client": {
|
|
"type": "hasOne",
|
|
"model": "Client",
|
|
"foreignKey": "id"
|
|
}
|
|
},
|
|
"scope": {
|
|
"include": "employee"
|
|
}
|
|
}
|