2017-01-17 09:59:27 +00:00
|
|
|
{
|
2024-09-26 07:08:42 +00:00
|
|
|
"name": "ClientObservation",
|
2019-01-31 13:14:39 +00:00
|
|
|
"description": "Client notes",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
2024-09-26 07:08:42 +00:00
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2019-01-31 13:14:39 +00:00
|
|
|
"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"
|
2024-09-26 07:08:42 +00:00
|
|
|
},
|
|
|
|
"observationTypeFk": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "Type of observation"
|
2019-01-31 13:14:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"include": {
|
|
|
|
"relation": "worker",
|
|
|
|
"scope": {
|
2024-09-26 07:08:42 +00:00
|
|
|
"fields": [
|
|
|
|
"id"
|
|
|
|
],
|
2019-01-31 13:14:39 +00:00
|
|
|
"include": {
|
|
|
|
"relation": "user",
|
|
|
|
"scope": {
|
2024-09-26 07:08:42 +00:00
|
|
|
"fields": [
|
2024-11-14 14:54:53 +00:00
|
|
|
"name"
|
2024-09-26 07:08:42 +00:00
|
|
|
]
|
2019-01-31 13:14:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-26 07:08:42 +00:00
|
|
|
}
|