salix/services/ticket/common/models/ticketObservation.json

35 lines
771 B
JSON
Raw Normal View History

{
"name": "TicketObservation",
"base": "VnModel",
"options": {
2018-03-16 14:06:42 +00:00
"mysql": {
"table": "ticketObservation"
}
},
"properties": {
2018-03-16 14:06:42 +00:00
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"description": {
"type": "String",
"required": true
}
},
"relations": {
2018-03-16 14:06:42 +00:00
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk",
"required": true
},
"observationType": {
"type": "belongsTo",
"model": "ObservationType",
"foreignKey": "observationTypeFk",
"required": true
}
}
2018-03-16 14:06:42 +00:00
}