salix/modules/ticket/back/models/ticket-observation.json

39 lines
851 B
JSON
Raw Normal View History

{
"name": "TicketObservation",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket"
},
"options": {
2018-03-16 14:06:42 +00:00
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "ticketObservation"
2018-03-16 14:06:42 +00:00
}
},
"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
}