2020-12-23 11:25:12 +00:00
|
|
|
{
|
|
|
|
"name": "EntryObservation",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2020-12-23 11:25:12 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|