44 lines
771 B
JSON
44 lines
771 B
JSON
{
|
|
"name": "ClientObservation",
|
|
"description": "Notas de los clientes.",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientObservation"
|
|
}
|
|
},
|
|
"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": {
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"client": {
|
|
"type": "hasOne",
|
|
"model": "Client",
|
|
"foreignKey": "id"
|
|
}
|
|
},
|
|
"scope": {
|
|
"include": "worker"
|
|
}
|
|
}
|