40 lines
823 B
JSON
40 lines
823 B
JSON
{
|
|
"name": "ClaimObservation",
|
|
"base": "Loggable",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "claimObservation"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"claimFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"claim": {
|
|
"type": "belongsTo",
|
|
"model": "Claim",
|
|
"foreignKey": "claimFk"
|
|
}
|
|
}
|
|
}
|