48 lines
838 B
JSON
48 lines
838 B
JSON
{
|
|
"name": "ClientObservation",
|
|
"description": "Client notes",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ClientLog",
|
|
"relation": "client"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientObservation"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"clientFk": {
|
|
"type": "Number"
|
|
},
|
|
"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": "worker"
|
|
}
|
|
}
|