salix/services/loopback/common/models/ticket-tracking.json

38 lines
717 B
JSON
Raw Normal View History

2017-12-12 11:26:18 +00:00
{
"name": "TicketTracking",
2017-12-12 11:26:18 +00:00
"base": "VnModel",
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "ticketTracking"
}
},
2017-12-12 11:26:18 +00:00
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"created": {
"type": "Date",
"required": false
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
2017-12-12 11:26:18 +00:00
"foreignKey": "workerFk"
}
}
}