salix/modules/client/back/models/client-observation.json

65 lines
994 B
JSON
Raw Normal View History

2017-01-17 09:59:27 +00:00
{
"name": "ClientObservation",
"description": "Client notes",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "clientObservation"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
"id": true,
"description": "Identifier"
},
"clientFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"text": {
"type": "string",
"description": "Text"
},
"created": {
"type": "date",
"description": "Creation date and time"
},
"observationTypeFk": {
"type": "number",
"description": "Type of observation"
}
},
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
}
},
"scope": {
"include": {
"relation": "worker",
"scope": {
"fields": [
"id"
],
"include": {
"relation": "user",
"scope": {
"fields": [
2024-11-14 14:54:53 +00:00
"name"
]
}
}
}
}
}
}