33 lines
718 B
JSON
33 lines
718 B
JSON
{
|
|
"name": "AddressObservation",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "addressObservation"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"address": {
|
|
"type": "belongsTo",
|
|
"model": "Address",
|
|
"foreignKey": "addressFk"
|
|
},
|
|
"observationType": {
|
|
"type": "belongsTo",
|
|
"model": "ObservationType",
|
|
"foreignKey": "observationTypeFk"
|
|
}
|
|
}
|
|
}
|
|
|