salix/services/client/common/models/address-observation.json

34 lines
686 B
JSON
Raw Normal View History

{
"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"
}
}
}