2017-01-17 09:59:27 +00:00
|
|
|
{
|
|
|
|
"name": "ClientObservation",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Client notes",
|
2017-10-11 13:36:47 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "clientObservation"
|
|
|
|
}
|
|
|
|
},
|
2017-01-17 09:59:27 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"clientFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2017-01-17 09:59:27 +00:00
|
|
|
"text": {
|
|
|
|
"type": "string",
|
2017-01-18 13:48:35 +00:00
|
|
|
"description": "Text"
|
2017-01-17 09:59:27 +00:00
|
|
|
},
|
2017-05-12 13:21:37 +00:00
|
|
|
"created": {
|
2017-01-17 09:59:27 +00:00
|
|
|
"type": "date",
|
2017-05-09 12:04:44 +00:00
|
|
|
"description": "Creation date and time"
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2018-01-29 11:37:54 +00:00
|
|
|
"worker": {
|
2017-05-12 09:20:32 +00:00
|
|
|
"type": "belongsTo",
|
2018-01-29 11:37:54 +00:00
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
2017-05-12 09:20:32 +00:00
|
|
|
},
|
2017-05-12 11:36:12 +00:00
|
|
|
"client": {
|
2017-04-28 13:04:29 +00:00
|
|
|
"type": "hasOne",
|
2017-05-12 09:14:55 +00:00
|
|
|
"model": "Client",
|
2017-01-31 13:13:06 +00:00
|
|
|
"foreignKey": "id"
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|
2017-03-14 12:08:55 +00:00
|
|
|
},
|
2017-05-12 09:20:32 +00:00
|
|
|
"scope": {
|
2018-01-29 11:37:54 +00:00
|
|
|
"include": "worker"
|
2017-05-12 09:20:32 +00:00
|
|
|
}
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|