2020-12-23 11:25:12 +00:00
|
|
|
{
|
|
|
|
"name": "EntryObservation",
|
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "EntryLog",
|
|
|
|
"relation": "entry"
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "entryObservation"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-12-23 11:25:12 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2020-12-23 11:25:12 +00:00
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"entry": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Entry",
|
2020-12-23 12:32:58 +00:00
|
|
|
"foreignKey": "entryFk"
|
2020-12-23 11:25:12 +00:00
|
|
|
},
|
|
|
|
"observationType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ObservationType",
|
|
|
|
"foreignKey": "observationTypeFk",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|