salix/services/client/common/models/client-observation.json

44 lines
761 B
JSON
Raw Normal View History

2017-01-17 09:59:27 +00:00
{
"name": "ClientObservation",
"description": "Client notes",
2017-10-11 13:36:47 +00:00
"base": "VnModel",
"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"
}
},
"relations": {
"worker": {
2017-05-12 09:20:32 +00:00
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
2017-05-12 09:20:32 +00:00
},
2017-05-12 11:36:12 +00:00
"client": {
"type": "hasOne",
2017-05-12 09:14:55 +00:00
"model": "Client",
"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": {
"include": "worker"
2017-05-12 09:20:32 +00:00
}
2017-01-17 09:59:27 +00:00
}