2017-01-17 09:59:27 +00:00
|
|
|
{
|
2019-01-31 13:14:39 +00:00
|
|
|
"name": "ClientObservation",
|
|
|
|
"description": "Client notes",
|
|
|
|
"base": "Loggable",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "clientObservation"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-01-31 13:14:39 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"clientFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"text": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Text"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date",
|
|
|
|
"description": "Creation date and time"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"include": {
|
|
|
|
"relation": "worker",
|
|
|
|
"scope": {
|
2023-09-21 10:50:07 +00:00
|
|
|
"fields": ["id"],
|
2019-01-31 13:14:39 +00:00
|
|
|
"include": {
|
|
|
|
"relation": "user",
|
|
|
|
"scope": {
|
|
|
|
"fields": ["nickname"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|