loopback/test/fixtures/simple-integration-app/common/models/appointment.json

20 lines
357 B
JSON
Raw Normal View History

{
"name": "appointment",
"properties": {
"date": "date"
},
"options": {
"relations": {
"physician": {
"model": "physician",
"type": "belongsTo",
"foreignKey": "physicianId"
},
"patient": {
"model": "patient",
"type": "belongsTo",
"foreignKey": "patientId"
}
}
}
}