34 lines
686 B
JSON
34 lines
686 B
JSON
{
|
|
"name": "AddressObservation",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "addressObservation",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
|